changed app exit sound fade to 1.75 seconds and allow it to be set via new optiona lini setting: ShutdownFadeSoundMilliseconds

This commit is contained in:
Mark Vejvoda
2011-10-21 22:36:36 +00:00
parent b10c489418
commit 5ac681ca73

View File

@@ -2400,7 +2400,7 @@ int glestMain(int argc, char** argv) {
ExceptionHandler exceptionHandler; ExceptionHandler exceptionHandler;
exceptionHandler.install( getCrashDumpFileName() ); exceptionHandler.install( getCrashDumpFileName() );
const int shutdownFadeSoundMilliseconds = 3500; int shutdownFadeSoundMilliseconds = 1750;
Chrono chronoshutdownFadeSound; Chrono chronoshutdownFadeSound;
SimpleTaskThread *soundThreadManager = NULL; SimpleTaskThread *soundThreadManager = NULL;
@@ -2415,6 +2415,8 @@ int glestMain(int argc, char** argv) {
Config &config = Config::getInstance(); Config &config = Config::getInstance();
setupGameItemPaths(argc, argv, &config); setupGameItemPaths(argc, argv, &config);
shutdownFadeSoundMilliseconds = config.getInt("ShutdownFadeSoundMilliseconds",intToStr(shutdownFadeSoundMilliseconds).c_str());
string userData = config.getString("UserData_Root",""); string userData = config.getString("UserData_Root","");
if(userData != "") { if(userData != "") {
endPathWithSlash(userData); endPathWithSlash(userData);