1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Fix #16287: Incorrect sv6 extension using console or system browser

This commit is contained in:
Duncan
2021-12-22 15:19:02 +00:00
committed by GitHub
parent 24567290ad
commit ee297e9ed3
3 changed files with 17 additions and 6 deletions

View File

@@ -1365,9 +1365,10 @@ static int32_t cc_load_park([[maybe_unused]] InteractiveConsole& console, [[mayb
{
safe_strcpy(savePath, argv[0].c_str(), sizeof(savePath));
}
if (!String::EndsWith(savePath, ".sv6", true) && !String::EndsWith(savePath, ".sc6", true))
if (!String::EndsWith(savePath, ".sv6", true) && !String::EndsWith(savePath, ".sc6", true)
&& !String::EndsWith(savePath, ".park", true))
{
path_append_extension(savePath, ".sv6", sizeof(savePath));
path_append_extension(savePath, ".park", sizeof(savePath));
}
if (context_load_park_from_file(savePath))
{