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:
@@ -475,7 +475,7 @@ void SaveGameCmd(u8string_view name /* = {} */)
|
||||
else
|
||||
{
|
||||
auto env = GetContext()->GetPlatformEnvironment();
|
||||
auto savePath = Path::Combine(env->GetDirectoryPath(DIRBASE::USER, DIRID::SAVE), u8string(name) + u8".park");
|
||||
auto savePath = Path::Combine(env->GetDirectoryPath(DirBase::user, DIRID::SAVE), u8string(name) + u8".park");
|
||||
SaveGameWithName(savePath);
|
||||
}
|
||||
}
|
||||
@@ -518,11 +518,11 @@ static void LimitAutosaveCount(const size_t numberOfFilesToKeep, bool processLan
|
||||
size_t numAutosavesToDelete = 0;
|
||||
|
||||
auto environment = GetContext()->GetPlatformEnvironment();
|
||||
auto folderDirectory = environment->GetDirectoryPath(DIRBASE::USER, DIRID::SAVE);
|
||||
auto folderDirectory = environment->GetDirectoryPath(DirBase::user, DIRID::SAVE);
|
||||
char const* fileFilter = "autosave_*.park";
|
||||
if (processLandscapeFolder)
|
||||
{
|
||||
folderDirectory = environment->GetDirectoryPath(DIRBASE::USER, DIRID::LANDSCAPE);
|
||||
folderDirectory = environment->GetDirectoryPath(DirBase::user, DIRID::LANDSCAPE);
|
||||
fileFilter = "autosave_*.park";
|
||||
}
|
||||
|
||||
@@ -596,7 +596,7 @@ void GameAutosave()
|
||||
LimitAutosaveCount(autosavesToKeep - 1, isInEditorMode());
|
||||
|
||||
auto env = GetContext()->GetPlatformEnvironment();
|
||||
auto autosaveDir = Path::Combine(env->GetDirectoryPath(DIRBASE::USER, subDirectory), u8"autosave");
|
||||
auto autosaveDir = Path::Combine(env->GetDirectoryPath(DirBase::user, subDirectory), u8"autosave");
|
||||
Path::CreateDirectory(autosaveDir);
|
||||
|
||||
auto path = Path::Combine(autosaveDir, timeName);
|
||||
@@ -711,7 +711,7 @@ void GameLoadOrQuitNoSavePrompt()
|
||||
void StartSilentRecord()
|
||||
{
|
||||
std::string name = Path::Combine(
|
||||
OpenRCT2::GetContext()->GetPlatformEnvironment()->GetDirectoryPath(OpenRCT2::DIRBASE::USER), u8"debug_replay.parkrep");
|
||||
OpenRCT2::GetContext()->GetPlatformEnvironment()->GetDirectoryPath(OpenRCT2::DirBase::user), u8"debug_replay.parkrep");
|
||||
auto* replayManager = OpenRCT2::GetContext()->GetReplayManager();
|
||||
if (replayManager->StartRecording(name, OpenRCT2::k_MaxReplayTicks, OpenRCT2::IReplayManager::RecordType::SILENT))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user