Patch #2122869: ALL: Common load dialog

svn-id: r34883
This commit is contained in:
Max Horn 2008-11-03 18:32:16 +00:00
parent 6466661252
commit 55c10e0ec6
24 changed files with 251 additions and 55 deletions

View file

@ -340,7 +340,7 @@ bool ToucheEngine::saveGameState(int num, const char *description) {
return saveOk;
}
bool ToucheEngine::loadGameState(int num) {
int ToucheEngine::loadGameState(int num) {
bool loadOk = false;
char gameStateFileName[64];
generateGameStateFileName(num, gameStateFileName, 63);
@ -360,7 +360,7 @@ bool ToucheEngine::loadGameState(int num) {
}
delete f;
}
return loadOk;
return loadOk ? 0 : 1;
}
void ToucheEngine::readGameStateDescription(int num, char *description, int len) {