1
0
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:
Ted John
2016-10-03 19:14:26 +01:00
parent 9359379d29
commit 5e554ebdcb
3 changed files with 44 additions and 1 deletions

View File

@@ -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;
}