mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 12:32:34 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user