ReadSaveGameHeaders at start and close

git-svn-id: https://svn.eduke32.com/eduke32@6746 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-03-08 03:55:28 +00:00
parent 867b4db1a0
commit d04d0128e3

View file

@ -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