diff options
Diffstat (limited to 'engines/touche')
-rw-r--r-- | engines/touche/detection.cpp | 1 | ||||
-rw-r--r-- | engines/touche/graphics.cpp | 1 | ||||
-rw-r--r-- | engines/touche/midi.cpp | 1 | ||||
-rw-r--r-- | engines/touche/opcodes.cpp | 2 | ||||
-rw-r--r-- | engines/touche/resource.cpp | 2 | ||||
-rw-r--r-- | engines/touche/saveload.cpp | 2 | ||||
-rw-r--r-- | engines/touche/staticres.cpp | 2 | ||||
-rw-r--r-- | engines/touche/touche.cpp | 2 | ||||
-rw-r--r-- | engines/touche/ui.cpp | 16 |
9 files changed, 13 insertions, 16 deletions
diff --git a/engines/touche/detection.cpp b/engines/touche/detection.cpp index 8e8de71e9c..af5a9f7908 100644 --- a/engines/touche/detection.cpp +++ b/engines/touche/detection.cpp @@ -23,7 +23,6 @@ * */ -#include "common/stdafx.h" #include "common/config-manager.h" #include "common/advancedDetector.h" diff --git a/engines/touche/graphics.cpp b/engines/touche/graphics.cpp index 2ca11a1f95..0298028e6a 100644 --- a/engines/touche/graphics.cpp +++ b/engines/touche/graphics.cpp @@ -23,7 +23,6 @@ * */ -#include "common/stdafx.h" #include "common/endian.h" #include "touche/graphics.h" diff --git a/engines/touche/midi.cpp b/engines/touche/midi.cpp index b90d4082c5..14cb85912a 100644 --- a/engines/touche/midi.cpp +++ b/engines/touche/midi.cpp @@ -23,7 +23,6 @@ * */ -#include "common/stdafx.h" #include "common/stream.h" #include "sound/midiparser.h" diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index 2680ab0fae..4405c614ac 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/system.h" #include "touche/touche.h" diff --git a/engines/touche/resource.cpp b/engines/touche/resource.cpp index cd2124806d..0dcf7505d7 100644 --- a/engines/touche/resource.cpp +++ b/engines/touche/resource.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "sound/flac.h" #include "sound/mixer.h" diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp index 5ff749fa68..7901e5c31f 100644 --- a/engines/touche/saveload.cpp +++ b/engines/touche/saveload.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/savefile.h" #include "touche/graphics.h" diff --git a/engines/touche/staticres.cpp b/engines/touche/staticres.cpp index eb3ddc15ff..29c22ce6a8 100644 --- a/engines/touche/staticres.cpp +++ b/engines/touche/staticres.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "touche/graphics.h" #include "touche/touche.h" diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index c276cebbe8..27ab830ef7 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/config-manager.h" #include "common/events.h" #include "common/system.h" diff --git a/engines/touche/ui.cpp b/engines/touche/ui.cpp index 62fcf9d4ee..06e64ba1b0 100644 --- a/engines/touche/ui.cpp +++ b/engines/touche/ui.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/events.h" #include "common/system.h" #include "common/savefile.h" @@ -371,32 +371,32 @@ void ToucheEngine::handleOptions(int forceDisplay) { curMode = menuData.mode; if (menuData.mode == kMenuLoadStateMode || menuData.mode == kMenuSaveStateMode) { assert(menuData.saveLoadMarks); - + char gameStateFileName[16]; generateGameStateFileName(999, gameStateFileName, 15, true); char slot[2]; int slotNum; Common::StringList filenames; - - memset(menuData.saveLoadMarks, false, 100 * sizeof(bool)); //assume no savegames for this title + + memset(menuData.saveLoadMarks, false, 100 * sizeof(bool)); //assume no savegames for this title filenames = _saveFileMan->listSavefiles(gameStateFileName); - + for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); file++){ //Obtain the last 1 or 2 digits of the filename, since they correspond to the save slot //This engine can save games either with one or two digits, hence the additional if statement slot[0] = file->c_str()[file->size()-2]; slot[1] = file->c_str()[file->size()-1]; - + if (!atoi(&slot[0])){ slotNum = atoi(&slot[1]); } else { slotNum = atoi(slot); } - + if (slotNum >= 0 && slotNum < 100) menuData.saveLoadMarks[slotNum] = true; //mark this slot as valid } - + for (int i = 0; i < 100; ++i) { menuData.saveLoadDescriptionsTable[i][0] = 0; if (menuData.saveLoadMarks[i]) { |