diff options
| author | Joost Peters | 2004-09-06 11:09:25 +0000 |
|---|---|---|
| committer | Joost Peters | 2004-09-06 11:09:25 +0000 |
| commit | 85bd972d89e470c3ab67e1e1a4bafa68cb0311b7 (patch) | |
| tree | b88bf8953768d1be6e296f49e4ecf59b3c17c654 /sky | |
| parent | 3a4d9dc6899ad148476e3662d856e67d268b002a (diff) | |
| download | scummvm-rg350-85bd972d89e470c3ab67e1e1a4bafa68cb0311b7.tar.gz scummvm-rg350-85bd972d89e470c3ab67e1e1a4bafa68cb0311b7.tar.bz2 scummvm-rg350-85bd972d89e470c3ab67e1e1a4bafa68cb0311b7.zip | |
Save setting of the text toggle when quitting, fixes bug #855542
svn-id: r14933
Diffstat (limited to 'sky')
| -rw-r--r-- | sky/control.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sky/control.cpp b/sky/control.cpp index b200dcd79e..02c6d52d6a 100644 --- a/sky/control.cpp +++ b/sky/control.cpp @@ -22,6 +22,7 @@ #include "common/file.h" #include "common/util.h" #include "common/system.h" +#include "common/config-manager.h" #include "gui/message.h" #include "sky/compact.h" #include "sky/control.h" @@ -726,6 +727,8 @@ uint16 Control::toggleText(void) { _statusBar->setToText(0x7000 + 35); // text only } + ConfMan.set("subtitles", (bool)(flags & SF_ALLOW_TEXT)); + SkyEngine::_systemVars.systemFlags |= flags; drawTextCross(flags); @@ -1758,6 +1761,7 @@ void Control::showGameQuitMsg(bool useScreen) { _skyScreen->showScreen(screenData); free(textBuf1); free(textBuf2); delay(1500); + ConfMan.flushToDisk(); _system->quit(); } |
