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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user