diff options
author | Kari Salminen | 2009-08-03 17:18:18 +0000 |
---|---|---|
committer | Kari Salminen | 2009-08-03 17:18:18 +0000 |
commit | 9931fb6a443571f104109f0c8a4116d892648a09 (patch) | |
tree | bc7e4aff24f83bddf5508e0750476059d1bd07f2 /engines/agi/detection.cpp | |
parent | 1cf0eb172732232664f88a16ae6c78061e675f5d (diff) | |
download | scummvm-rg350-9931fb6a443571f104109f0c8a4116d892648a09.tar.gz scummvm-rg350-9931fb6a443571f104109f0c8a4116d892648a09.tar.bz2 scummvm-rg350-9931fb6a443571f104109f0c8a4116d892648a09.zip |
Fix for bug #2828333 (AGI: KQ1: Greensleeves always plays):
- Made all savegame loading in AGI do the same pre-load and post-load stuff.
- Moved load/saveGameState from AgiBase to AgiEngine
- Added rudimentary error handling to load/saveGameState
- Incidentally also fixes the hanging note from bug #2798797.
svn-id: r43025
Diffstat (limited to 'engines/agi/detection.cpp')
-rw-r--r-- | engines/agi/detection.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 6bd46ea812..553e42f88e 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -1290,20 +1290,6 @@ const ADGameDescription *AgiMetaEngine::fallbackDetect(const Common::FSList &fsl namespace Agi { -Common::Error AgiBase::loadGameState(int slot) { - static char saveLoadSlot[12]; - sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), slot); - loadGame(saveLoadSlot); - return Common::kNoError; // TODO: return success/failure -} - -Common::Error AgiBase::saveGameState(int slot, const char *desc) { - static char saveLoadSlot[12]; - sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), slot); - saveGame(saveLoadSlot, desc); - return Common::kNoError; // TODO: return success/failure -} - bool AgiBase::canLoadGameStateCurrently() { return (!(getGameType() == GType_PreAGI) && getflag(fMenusWork) && !_noSaveLoadAllowed); } |