From d04d0128e3e53f982e9af75f62158cfcaf560051 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 8 Mar 2018 03:55:28 +0000 Subject: [PATCH] ReadSaveGameHeaders at start and close git-svn-id: https://svn.eduke32.com/eduke32@6746 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/duke3d/src/game.cpp b/source/duke3d/src/game.cpp index fc6509d8a..d32335f35 100644 --- a/source/duke3d/src/game.cpp +++ b/source/duke3d/src/game.cpp @@ -5535,6 +5535,8 @@ static void G_FreeHashAnim(const char *UNUSED(string), intptr_t key) static void G_Cleanup(void) { + ReadSaveGameHeaders(); // for culling + int32_t i; for (i=(MAXLEVELS*(MAXVOLUMES+1))-1; i>=0; i--) // +1 volume for "intro", "briefing" music @@ -6569,6 +6571,8 @@ int app_main(int argc, char const * const * argv) Menu_Init(); } + ReadSaveGameHeaders(); + #if 0 // previously, passing -0 through -9 on the command line would load the save in that slot # // this code should be reusable for a new parameter that takes a filename, if desired