- put the entire filesystem code into a namespace and created some subdirectories.
This commit is contained in:
parent
94c9ee4593
commit
ebb71cebf1
108 changed files with 308 additions and 225 deletions
|
|
@ -66,8 +66,8 @@ void FSavegameManager::ReadSaveStrings()
|
|||
|
||||
LastSaved = LastAccessed = -1;
|
||||
quickSaveSlot = nullptr;
|
||||
FileList list;
|
||||
if (ScanDirectory(list, G_GetSavegamesFolder().GetChars(), "*." SAVEGAME_EXT, true))
|
||||
FileSys::FileList list;
|
||||
if (FileSys::ScanDirectory(list, G_GetSavegamesFolder().GetChars(), "*." SAVEGAME_EXT, true))
|
||||
{
|
||||
for (auto& entry : list)
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ void FSavegameManager::ReadSaveStrings()
|
|||
{
|
||||
bool oldVer = false;
|
||||
bool missing = false;
|
||||
FResourceLump *info = savegame->FindLump("info.json");
|
||||
auto info = savegame->FindLump("info.json");
|
||||
if (info == nullptr)
|
||||
{
|
||||
// savegame info not found. This is not a savegame so leave it alone.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue