mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
Revert "- Fixed: the new savegame order didn't take into account custom filenames. Try to catch most custom names."
This reverts commit f48c52291c
.
This is not needed anymore, also the last commit actually removed custom filenames.
This commit is contained in:
parent
40d7897108
commit
aa26dc9d2b
1 changed files with 9 additions and 16 deletions
|
@ -123,36 +123,29 @@ DEFINE_ACTION_FUNCTION(FSavegameManager, RemoveSaveSlot)
|
|||
|
||||
int FSavegameManager::InsertSaveNode(FSaveGameNode *node)
|
||||
{
|
||||
if (SaveGames.Size() == 0 || node->bOldVersion)
|
||||
if (SaveGames.Size() == 0)
|
||||
{
|
||||
return SaveGames.Push(node);
|
||||
}
|
||||
|
||||
if (node->bOldVersion)
|
||||
{ // Add node at bottom of list
|
||||
return SaveGames.Push(node);
|
||||
}
|
||||
else
|
||||
{ // Add node at top of list
|
||||
unsigned int i = 0;
|
||||
if (strstr(node->Filename.GetChars(),"save"))
|
||||
if (!strstr(node->Filename.GetChars(),"auto"))
|
||||
{
|
||||
for (i; i < SaveGames.Size(); i++)
|
||||
for (i = 0; i < SaveGames.Size(); i++)
|
||||
{
|
||||
//if (SaveGames[i]->bOldVersion || node->SaveTitle.CompareNoCase(SaveGames[i]->SaveTitle) <= 0)
|
||||
if (strstr(SaveGames[i]->Filename.GetChars(),"save") && node->Filename.CompareNoCase(SaveGames[i]->Filename) >= 0)
|
||||
if (!strstr(SaveGames[i]->Filename.GetChars(),"auto") && node->Filename.CompareNoCase(SaveGames[i]->Filename) >= 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!strstr(node->Filename.GetChars(),"auto"))
|
||||
{
|
||||
for (i; strstr(SaveGames[i]->Filename.GetChars(),"auto") && i < SaveGames.Size(); i++)
|
||||
{}
|
||||
for (i; i < SaveGames.Size(); i++)
|
||||
{
|
||||
if (strstr(SaveGames[i]->Filename.GetChars(),"save") || (!strstr(SaveGames[i]->Filename.GetChars(),"save") && node->Filename.CompareNoCase(SaveGames[i]->Filename) <= 0))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
SaveGames.Insert(i, node);
|
||||
|
||||
return i;
|
||||
|
|
Loading…
Reference in a new issue