diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-23 22:01:44 +0300 |
commit | 3c404128c4669a1f4f190e20a89553677717fc50 (patch) | |
tree | 2db4e5031089c800c4e00fd6244e578f44a7c910 /src/configmanager.cpp | |
parent | 89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff) | |
download | ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2 ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz ManaVerse-3c404128c4669a1f4f190e20a89553677717fc50.zip |
Add missing comments into defines.
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r-- | src/configmanager.cpp | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 013750e15..9f67ad2c5 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -85,7 +85,7 @@ void ConfigManager::initConfiguration() { #ifdef DEBUG_CONFIG config.setIsMain(true); -#endif +#endif // DEBUG_CONFIG // Fill configuration with defaults config.setValue("hwaccel", false); @@ -96,12 +96,15 @@ void ConfigManager::initConfiguration() config.setValue("opengl", CAST_S32(RENDER_GLES_OPENGL)); #elif (defined WIN32) config.setValue("opengl", CAST_S32(RENDER_SAFE_OPENGL)); -#else +#else // (defined __APPLE__) + config.setValue("opengl", CAST_S32(RENDER_SOFTWARE)); -#endif -#else +#endif // (defined __APPLE__) +#else // USE_OPENGL + config.setValue("opengl", CAST_S32(RENDER_SOFTWARE)); -#endif +#endif // USE_OPENGL + config.setValue("screen", false); config.setValue("sound", true); config.setValue("guialpha", 0.8F); @@ -289,9 +292,10 @@ void ConfigManager::storeSafeParameters() } #if defined(__APPLE__) config.setValue("opengl", CAST_S32(RENDER_NORMAL_OPENGL)); -#else +#else // defined(__APPLE__) + config.setValue("opengl", CAST_S32(RENDER_SOFTWARE)); -#endif +#endif // defined(__APPLE__) config.write(); @@ -330,7 +334,7 @@ void ConfigManager::storeSafeParameters() config.setValue("screenheight", height); } } -#endif +#endif // __native_client__ #define unassignKey(key, value) \ if (config.getStringValue(prefix + key) == value) \ @@ -358,13 +362,13 @@ void ConfigManager::checkConfigVersion() config.setValue("audioFrequency", 44100); #ifdef ANDROID config.setValue("customcursor", false); -#endif +#endif // ANDROID } if (version < 4) { #ifdef ANDROID config.setValue("showDidYouKnow", false); -#endif +#endif // ANDROID } if (version < 5) { @@ -392,9 +396,11 @@ void ConfigManager::checkConfigVersion() { #ifdef USE_SDL2 const std::string prefix = std::string("sdl2"); -#else +#else // USE_SDL2 + const std::string prefix = std::string(); -#endif +#endif // USE_SDL2 + unassignKey("keyDirectUp", "k108"); unassignKey("keyDirectDown", "k59"); unassignKey("keyDirectLeft", "k107"); @@ -404,9 +410,11 @@ void ConfigManager::checkConfigVersion() { #ifdef USE_SDL2 const std::string prefix = std::string("sdl2"); -#else +#else // USE_SDL2 + const std::string prefix = std::string(); -#endif +#endif // USE_SDL2 + unassignKey("keyAttack", "k120"); } |