1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Use C++ filesystem for more file/path functions

This commit is contained in:
Gymnasiast
2022-01-08 18:38:09 +01:00
parent 10301507a9
commit 6bcf848b2f
26 changed files with 62 additions and 176 deletions

View File

@@ -12,6 +12,7 @@
# include "NetworkUser.h"
# include "../core/Console.hpp"
# include "../core/File.h"
# include "../core/Guard.hpp"
# include "../core/Json.hpp"
# include "../core/Path.hpp"
@@ -80,7 +81,7 @@ void NetworkUserManager::Load()
utf8 path[MAX_PATH];
GetStorePath(path, sizeof(path));
if (Platform::FileExists(path))
if (File::Exists(path))
{
DisposeUsers();
@@ -114,7 +115,7 @@ void NetworkUserManager::Save()
json_t jsonUsers;
try
{
if (Platform::FileExists(path))
if (File::Exists(path))
{
jsonUsers = Json::ReadFromFile(path);
}