mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Allow loading saved games in editor
This commit is contained in:
@@ -309,7 +309,14 @@ static int editor_load_landscape_from_sc4(const char *path)
|
||||
*/
|
||||
static int editor_read_s6(const char *path)
|
||||
{
|
||||
if (!scenario_load(path)) {
|
||||
bool loadResult;
|
||||
const char *extension = path_get_extension(path);
|
||||
if (_stricmp(extension, ".sc6") == 0) {
|
||||
loadResult = scenario_load(path);
|
||||
} else if (_stricmp(extension, ".sv6") == 0) {
|
||||
loadResult = game_load_sv6_path(path);
|
||||
}
|
||||
if (!loadResult) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user