Functions

launcher.cpp File Reference

This file is part of the Portable Code::Blocks Launcher. More...

#include <cstdio>
#include <windows.h>
#include <tlhelp32.h>
#include <wchar.h>
Include dependency graph for launcher.cpp:

Functions

bool isCodeblocksRunning ()
 tests if Code::Blocks is already running
bool setAppData ()
 Modifies the system APPDATA% environment variable to point to subdirectory AppData of Code::Blocks.
bool setToolPath ()
 Add the tool subdirectories of Code::Blocks to the system path. The tool subdirectory and its subdirectories or the bin subdir of its subdirectories.
int addFontsFrom (wchar_t fontsPath[])
 Add Code::Blocks fonts to system fonts if they exist in the given directory, or recursively in its subdirectories.
bool addFonts ()
 Add Code::Blocks fonts to system fonts if they exist in the given directory

  • Assume fonts (if any) are available in /share/CodeBlocks/fonts directory.

int removeFontsFrom (wchar_t fontsPath[])
 Remove Code::Blocks fonts from system fonts if they exist in given directory, or recursively in its subdirectories, assuming they were previously added.
int removeFonts ()
 Remove Code::Blocks fonts from system fonts if they were installed

  • Assume fonts were added from the /share/CodeBlocks/fonts subdirectory of CB and its subdirectories.

int main ()

Detailed Description

This file is part of the Portable Code::Blocks Launcher.

Version:
0.1.7

Function Documentation

bool addFonts ( )

Add Code::Blocks fonts to system fonts if they exist in the given directory

  • Assume fonts (if any) are available in /share/CodeBlocks/fonts directory.

Returns:
success (true) or failure (false)

Here is the call graph for this function:

int addFontsFrom ( wchar_t  fontsPath[])

Add Code::Blocks fonts to system fonts if they exist in the given directory, or recursively in its subdirectories.

Parameters:
fontsPathdirectory (potentially) containing .ttf or .otf fonts
Returns:
The number of fonts actually added
bool isCodeblocksRunning ( )

tests if Code::Blocks is already running

Returns:
true if CB is already running
int removeFonts ( )

Remove Code::Blocks fonts from system fonts if they were installed

  • Assume fonts were added from the /share/CodeBlocks/fonts subdirectory of CB and its subdirectories.

Returns:
The number of fonts actually removed

Here is the call graph for this function:

int removeFontsFrom ( wchar_t  fontsPath[])

Remove Code::Blocks fonts from system fonts if they exist in given directory, or recursively in its subdirectories, assuming they were previously added.

Parameters:
fontsPathdirectory (potentially) containing .ttf or .otf fonts
Returns:
The number of fonts actually removed
bool setAppData ( )

Modifies the system APPDATA% environment variable to point to subdirectory AppData of Code::Blocks.

Returns:
success (true) or failure (false)
bool setToolPath ( )

Add the tool subdirectories of Code::Blocks to the system path. The tool subdirectory and its subdirectories or the bin subdir of its subdirectories.

Returns:
success (true) or failure (false)
 All Files Functions