1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Rename DIRBASE and its members

This commit is contained in:
Gymnasiast
2025-03-25 22:27:57 +01:00
parent 0437329690
commit 622a8dc525
33 changed files with 123 additions and 123 deletions

View File

@@ -1019,7 +1019,7 @@ void NetworkBase::SaveGroups()
if (GetMode() == NETWORK_MODE_SERVER)
{
auto env = GetContext().GetPlatformEnvironment();
auto path = Path::Combine(env->GetDirectoryPath(DIRBASE::USER), u8"groups.json");
auto path = Path::Combine(env->GetDirectoryPath(DirBase::user), u8"groups.json");
json_t jsonGroups = json_t::array();
for (auto& group : group_list)
@@ -1079,7 +1079,7 @@ void NetworkBase::LoadGroups()
group_list.clear();
auto env = GetContext().GetPlatformEnvironment();
auto path = Path::Combine(env->GetDirectoryPath(DIRBASE::USER), u8"groups.json");
auto path = Path::Combine(env->GetDirectoryPath(DirBase::user), u8"groups.json");
json_t jsonGroupConfig;
if (File::Exists(path))
@@ -1166,7 +1166,7 @@ void NetworkBase::AppendLog(std::ostream& fs, std::string_view s)
void NetworkBase::BeginChatLog()
{
auto env = GetContext().GetPlatformEnvironment();
auto directory = env->GetDirectoryPath(DIRBASE::USER, DIRID::LOG_CHAT);
auto directory = env->GetDirectoryPath(DirBase::user, DIRID::LOG_CHAT);
_chatLogPath = BeginLog(directory, "", _chatLogFilenameFormat);
_chat_log_fs.open(fs::u8path(_chatLogPath), std::ios::out | std::ios::app);
}
@@ -1187,7 +1187,7 @@ void NetworkBase::CloseChatLog()
void NetworkBase::BeginServerLog()
{
auto env = GetContext().GetPlatformEnvironment();
auto directory = env->GetDirectoryPath(DIRBASE::USER, DIRID::LOG_SERVER);
auto directory = env->GetDirectoryPath(DirBase::user, DIRID::LOG_SERVER);
_serverLogPath = BeginLog(directory, ServerName, _serverLogFilenameFormat);
_server_log_fs.open(fs::u8path(_serverLogPath), std::ios::out | std::ios::app | std::ios::binary);
@@ -2556,7 +2556,7 @@ void NetworkBase::Client_Handle_GAMESTATE(NetworkConnection& connection, Network
{
GameStateCompareData cmpData = snapshots->Compare(serverSnapshot, *desyncSnapshot);
std::string outputPath = GetContext().GetPlatformEnvironment()->GetDirectoryPath(DIRBASE::USER, DIRID::LOG_DESYNCS);
std::string outputPath = GetContext().GetPlatformEnvironment()->GetDirectoryPath(DirBase::user, DIRID::LOG_DESYNCS);
Path::CreateDirectory(outputPath);
@@ -4011,7 +4011,7 @@ void NetworkAppendServerLog(const utf8* text)
static u8string NetworkGetKeysDirectory()
{
auto env = GetContext()->GetPlatformEnvironment();
return Path::Combine(env->GetDirectoryPath(DIRBASE::USER), u8"keys");
return Path::Combine(env->GetDirectoryPath(DirBase::user), u8"keys");
}
static u8string NetworkGetPrivateKeyPath(u8string_view playerName)