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:
parent
b10c489418
commit
5ac681ca73
|
@ -2400,7 +2400,7 @@ int glestMain(int argc, char** argv) {
|
|||
ExceptionHandler exceptionHandler;
|
||||
exceptionHandler.install( getCrashDumpFileName() );
|
||||
|
||||
const int shutdownFadeSoundMilliseconds = 3500;
|
||||
int shutdownFadeSoundMilliseconds = 1750;
|
||||
Chrono chronoshutdownFadeSound;
|
||||
SimpleTaskThread *soundThreadManager = NULL;
|
||||
|
||||
|
@ -2415,6 +2415,8 @@ int glestMain(int argc, char** argv) {
|
|||
Config &config = Config::getInstance();
|
||||
setupGameItemPaths(argc, argv, &config);
|
||||
|
||||
shutdownFadeSoundMilliseconds = config.getInt("ShutdownFadeSoundMilliseconds",intToStr(shutdownFadeSoundMilliseconds).c_str());
|
||||
|
||||
string userData = config.getString("UserData_Root","");
|
||||
if(userData != "") {
|
||||
endPathWithSlash(userData);
|
||||
|
|
Loading…
Reference in New Issue
Block a user