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