mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs * Fix all the users * clang-format fix * Fix linux builds
This commit is contained in:
@@ -413,7 +413,7 @@ namespace OpenRCT2
|
||||
// If there are difference write a log to the desyncs folder
|
||||
if (res != cmpData.spriteChanges.end())
|
||||
{
|
||||
std::string outputPath = GetContext()->GetPlatformEnvironment()->GetDirectoryPath(
|
||||
std::string outputPath = GetContext()->GetPlatformEnvironment().GetDirectoryPath(
|
||||
DirBase::user, DirId::desyncLogs);
|
||||
char uniqueFileName[128] = {};
|
||||
snprintf(uniqueFileName, sizeof(uniqueFileName), "replay_desync_%u.txt", currentTicks);
|
||||
@@ -624,7 +624,7 @@ namespace OpenRCT2
|
||||
fileName += ".parkrep";
|
||||
}
|
||||
|
||||
std::string outPath = GetContext()->GetPlatformEnvironment()->GetDirectoryPath(
|
||||
std::string outPath = GetContext()->GetPlatformEnvironment().GetDirectoryPath(
|
||||
DirBase::user, DirId::replayRecordings);
|
||||
std::string outFile = Path::Combine(outPath, fileName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user