[Scummvm-cvs-logs] SF.net SVN: scummvm:[45256] scummvm/trunk/engines/agi/saveload.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Oct 20 00:52:01 CEST 2009
Revision: 45256
http://scummvm.svn.sourceforge.net/scummvm/?rev=45256&view=rev
Author: fingolfin
Date: 2009-10-19 22:52:01 +0000 (Mon, 19 Oct 2009)
Log Message:
-----------
AGI: cleanup
Modified Paths:
--------------
scummvm/trunk/engines/agi/saveload.cpp
Modified: scummvm/trunk/engines/agi/saveload.cpp
===================================================================
--- scummvm/trunk/engines/agi/saveload.cpp 2009-10-19 22:51:37 UTC (rev 45255)
+++ scummvm/trunk/engines/agi/saveload.cpp 2009-10-19 22:52:01 UTC (rev 45256)
@@ -874,10 +874,7 @@
}
int AgiEngine::saveGameSimple() {
- char fileName[MAXPATHLEN];
-
- sprintf(fileName, "%s", getSavegameFilename(0));
- int result = saveGame(fileName, "Default savegame");
+ int result = saveGame(getSavegameFilename(0), "Default savegame");
if (result != errOK)
messageBox("Error saving game.");
return result;
@@ -989,7 +986,7 @@
if (ConfMan.hasKey("save_slot")) {
char saveNameBuffer[256];
- snprintf (saveNameBuffer, 256, "%s.%03d", _targetName.c_str(), ConfMan.getInt("save_slot"));
+ snprintf(saveNameBuffer, 256, "%s.%03d", _targetName.c_str(), ConfMan.getInt("save_slot"));
_sprites->eraseBoth();
_sound->stopSound();
@@ -1002,7 +999,7 @@
}
Common::Error AgiEngine::loadGameState(int slot) {
- static char saveLoadSlot[12];
+ char saveLoadSlot[12];
sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), slot);
_sprites->eraseBoth();
@@ -1018,7 +1015,7 @@
}
Common::Error AgiEngine::saveGameState(int slot, const char *desc) {
- static char saveLoadSlot[12];
+ char saveLoadSlot[12];
sprintf(saveLoadSlot, "%s.%.3d", _targetName.c_str(), slot);
if (saveGame(saveLoadSlot, desc) == errOK)
return Common::kNoError;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list