aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorD G Turner2012-06-07 13:20:53 +0100
committerD G Turner2012-06-07 13:20:53 +0100
commit6cda28adc9e1adb5b05bdb58baf449f2e24b9945 (patch)
treefd96eeb9e81ded5aace0eb4a447c185f072894a6 /engines/toon
parent8deb8b3d42927d1d6e73350f96353eda1b10a1fc (diff)
downloadscummvm-rg350-6cda28adc9e1adb5b05bdb58baf449f2e24b9945.tar.gz
scummvm-rg350-6cda28adc9e1adb5b05bdb58baf449f2e24b9945.tar.bz2
scummvm-rg350-6cda28adc9e1adb5b05bdb58baf449f2e24b9945.zip
TOON: Remove unecessary usages of g_system.
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/toon.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 657e18635f..9e7aa65265 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -168,7 +168,7 @@ void ToonEngine::waitForScriptStep() {
// Wait after a specified number of script steps when executing a script
// to lower CPU usage
if (++_scriptStep >= 40) {
- g_system->delayMillis(1);
+ _system->delayMillis(1);
_scriptStep = 0;
}
}
@@ -2979,8 +2979,7 @@ bool ToonEngine::saveGame(int32 slot, const Common::String &saveGameDesc) {
return false; // dialog aborted
Common::String savegameFile = getSavegameName(savegameId);
- Common::SaveFileManager *saveMan = g_system->getSavefileManager();
- Common::OutSaveFile *saveFile = saveMan->openForSaving(savegameFile);
+ Common::OutSaveFile *saveFile = _saveFileMan->openForSaving(savegameFile);
if (!saveFile)
return false;
@@ -3068,8 +3067,7 @@ bool ToonEngine::loadGame(int32 slot) {
return false; // dialog aborted
Common::String savegameFile = getSavegameName(savegameId);
- Common::SaveFileManager *saveMan = g_system->getSavefileManager();
- Common::InSaveFile *loadFile = saveMan->openForLoading(savegameFile);
+ Common::InSaveFile *loadFile = _saveFileMan->openForLoading(savegameFile);
if (!loadFile)
return false;