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:
Matt authored and GitHub committed 2025-05-15 22:46:06 +03:00
1 parent c2e042e5e1
commit 42df41efdb
68 files changed
+286 -303

No files matched your search

+2 -2
View File
@@ -508,8 +508,8 @@ namespace OpenRCT2::ObjectFactory
static bool isUsingClassic()
{
auto env = OpenRCT2::GetContext()->GetPlatformEnvironment();
return env->IsUsingClassic();
auto& env = OpenRCT2::GetContext()->GetPlatformEnvironment();
return env.IsUsingClassic();
}
std::unique_ptr<Object> CreateObjectFromJson(