mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- added checks for the special hacky quicksave marker.
This commit is contained in:
parent
a53861e27e
commit
6cc9434788
2 changed files with 4 additions and 4 deletions
|
@ -342,7 +342,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
||||||
node->bMissingWads = false;
|
node->bMissingWads = false;
|
||||||
if (okForQuicksave)
|
if (okForQuicksave)
|
||||||
{
|
{
|
||||||
if (quickSaveSlot == nullptr || forceQuicksave) quickSaveSlot = node;
|
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||||
LastAccessed = LastSaved = i;
|
LastAccessed = LastSaved = i;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -358,7 +358,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
||||||
|
|
||||||
if (okForQuicksave)
|
if (okForQuicksave)
|
||||||
{
|
{
|
||||||
if (quickSaveSlot == nullptr || forceQuicksave) quickSaveSlot = node;
|
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||||
LastAccessed = LastSaved = index;
|
LastAccessed = LastSaved = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,7 +183,7 @@ CCMD (quicksave)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (savegameManager.quickSaveSlot == NULL)
|
if (savegameManager.quickSaveSlot == NULL || savegameManager.quickSaveSlot == (FSaveGameNode*)1)
|
||||||
{
|
{
|
||||||
S_Sound(CHAN_VOICE | CHAN_UI, "menu/activate", snd_menuvolume, ATTN_NONE);
|
S_Sound(CHAN_VOICE | CHAN_UI, "menu/activate", snd_menuvolume, ATTN_NONE);
|
||||||
M_StartControlPanel(false);
|
M_StartControlPanel(false);
|
||||||
|
@ -228,7 +228,7 @@ CCMD (quickload)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (savegameManager.quickSaveSlot == NULL)
|
if (savegameManager.quickSaveSlot == NULL || savegameManager.quickSaveSlot == (FSaveGameNode*)1)
|
||||||
{
|
{
|
||||||
M_StartControlPanel(true);
|
M_StartControlPanel(true);
|
||||||
// signal that whatever gets loaded should be the new quicksave
|
// signal that whatever gets loaded should be the new quicksave
|
||||||
|
|
Loading…
Reference in a new issue