void Settings::postLoad() { //POST-PROCESS lunaAppsPath....there may be multiple paths embedded //int splitStringOnKey(std::vector<std::string>& returnSplitSubstrings,const std::string& baseStr,const std::string& delims); int numPaths = splitStringOnKey(lunaAppsPaths,lunaAppsPath,":"); g_warning("Settings::load(): %d application paths defined: ",numPaths); std::vector<std::string>::iterator iter = lunaAppsPaths.begin(); while (iter != lunaAppsPaths.end()) { SETTINGS_TRACE("%s ",(*iter).c_str()); ++iter; } SETTINGS_TRACE("\n"); //reset the lunaAppsPath (LEGACY compatibility) lunaAppsPath = lunaAppsPaths.at(0); createNeededFolders(); // packageInstallBase has to be == to appInstallBase for now (at least in version=blowfish timeframe) packageInstallBase = appInstallBase; // Piranha flags PSoftContext2D::SetGlobalAttribute(0, debug_piranhaDisplayFps); PSoftContext2D::SetGlobalAttribute(1, debug_piranhaDrawColoredOutlines); #if defined(DIRECT_RENDERING) PGLESContext2D::SetGlobalAttribute(0, debug_piranhaDisplayFps); PGLESContext2D::SetGlobalAttribute(1, debug_piranhaDrawColoredOutlines); #endif }
Settings::Settings() : schemaValidationOption(0) { (void)initValues(); (void)load(kSettingsFile); (void)load(kSettingsFilePlatform); (void)createNeededFolders(); (void)postLoad(); }