mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
Fix debug print on non-Windows platforms and Quick-save message (#400)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+10
-10
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user