mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
- savegame name generation fix for SW.
This commit is contained in:
parent
3bd36bfb9d
commit
a4c5fbe295
1 changed files with 2 additions and 4 deletions
|
@ -245,8 +245,7 @@ bool GameInterface::SaveGame(FSaveGameNode *sv)
|
||||||
Saveable_Init();
|
Saveable_Init();
|
||||||
|
|
||||||
|
|
||||||
auto game_name = G_BuildSaveName(sv->Filename);
|
OpenSaveGameForWrite(sv->Filename);
|
||||||
OpenSaveGameForWrite(game_name);
|
|
||||||
// workaround until the level info here has been transitioned.
|
// workaround until the level info here has been transitioned.
|
||||||
G_WriteSaveHeader(sv->SaveTitle);
|
G_WriteSaveHeader(sv->SaveTitle);
|
||||||
fil = WriteSavegameChunk("snapshot.sw");
|
fil = WriteSavegameChunk("snapshot.sw");
|
||||||
|
@ -720,8 +719,7 @@ bool GameInterface::LoadGame(FSaveGameNode* sv)
|
||||||
|
|
||||||
Saveable_Init();
|
Saveable_Init();
|
||||||
|
|
||||||
auto game_name = G_BuildSaveName(sv->Filename);
|
OpenSaveGameForRead(sv->Filename);
|
||||||
OpenSaveGameForRead(game_name);
|
|
||||||
|
|
||||||
auto filr = ReadSavegameChunk("snapshot.sw");
|
auto filr = ReadSavegameChunk("snapshot.sw");
|
||||||
if (!filr.isOpen()) return false;
|
if (!filr.isOpen()) return false;
|
||||||
|
|
Loading…
Reference in a new issue