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

This commit is contained in:
Duncan authored and GitHub committed 2021-12-22 16:19:02 +01:00
1 parent 24567290ad
commit ee297e9ed3
3 files changed
+17 -6

No files matched your search

@@ -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))
{