- savegame name generation fix for SW.

This commit is contained in:
Christoph Oelckers 2019-12-27 10:48:43 +01:00
parent 3bd36bfb9d
commit a4c5fbe295

View file

@ -245,8 +245,7 @@ bool GameInterface::SaveGame(FSaveGameNode *sv)
Saveable_Init();
auto game_name = G_BuildSaveName(sv->Filename);
OpenSaveGameForWrite(game_name);
OpenSaveGameForWrite(sv->Filename);
// workaround until the level info here has been transitioned.
G_WriteSaveHeader(sv->SaveTitle);
fil = WriteSavegameChunk("snapshot.sw");
@ -720,8 +719,7 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
Saveable_Init();
auto game_name = G_BuildSaveName(sv->Filename);
OpenSaveGameForRead(game_name);
OpenSaveGameForRead(sv->Filename);
auto filr = ReadSavegameChunk("snapshot.sw");
if (!filr.isOpen()) return false;