mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2025-02-23 06:40:55 +00:00
Fix debug print on non-Windows platforms and Quick-save message (#400)
This commit is contained in:
parent
f443e365cc
commit
5956227dcb
@ -138,7 +138,7 @@ int debugPrint(const char* format, ...)
|
||||
|
||||
rc = gDebugPrintProc(string);
|
||||
} else {
|
||||
#ifdef _DEBUG
|
||||
#ifndef NDEBUG
|
||||
SDL_LogMessageV(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, format, args);
|
||||
#endif
|
||||
rc = -1;
|
||||
|
@ -390,6 +390,16 @@ int lsgSaveGame(int mode)
|
||||
fileClose(_flptr);
|
||||
}
|
||||
|
||||
if (!messageListInit(&gLoadSaveMessageList)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
char path[COMPAT_MAX_PATH];
|
||||
snprintf(path, sizeof(path), "%s%s", asc_5186C8, "LSGAME.MSG");
|
||||
if (!messageListLoad(&gLoadSaveMessageList, path)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
_snapshotBuf = nullptr;
|
||||
int v6 = _QuickSnapShot();
|
||||
if (v6 == 1) {
|
||||
@ -409,16 +419,6 @@ int lsgSaveGame(int mode)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!messageListInit(&gLoadSaveMessageList)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
char path[COMPAT_MAX_PATH];
|
||||
snprintf(path, sizeof(path), "%s%s", asc_5186C8, "LSGAME.MSG");
|
||||
if (!messageListLoad(&gLoadSaveMessageList, path)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
soundPlayFile("iisxxxx1");
|
||||
|
||||
// Error saving game!
|
||||
|
Loading…
x
Reference in New Issue
Block a user