mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Change rct2_path into a C++ string
Co-authored-by: Ted John <ted@brambles.org>
This commit is contained in:
committed by
GitHub
parent
ca27c2181b
commit
ff909cc286
@@ -379,7 +379,7 @@ static exitcode_t HandleCommandSetRCT2(CommandLineArgEnumerator* enumerator)
|
||||
auto configPath = env->GetFilePath(OpenRCT2::PATHID::CONFIG);
|
||||
config_set_defaults();
|
||||
config_open(configPath.c_str());
|
||||
String::DiscardDuplicate(&gConfigGeneral.rct2_path, path);
|
||||
gConfigGeneral.rct2_path = std::string(path);
|
||||
if (config_save(configPath.c_str()))
|
||||
{
|
||||
Console::WriteFormat("Updating RCT2 path to '%s'.", path);
|
||||
|
||||
Reference in New Issue
Block a user