diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 4bc6e7eef9..e9cb9ae8f3 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -541,6 +541,18 @@ namespace OpenRCT2 const std::string& path, bool loadTitleScreenOnFail = false, bool asScenario = false) final override { log_verbose("Context::LoadParkFromFile(%s)", path.c_str()); + + // Register the file for crash upload if it asserts while loading. + crash_register_additional_file("load_park", path); + // Deregister park file in case it was processed without hitting an assert. + struct foo + { + ~foo() + { + crash_unregister_additional_file("load_park"); + } + } f; + try { if (String::Equals(Path::GetExtension(path), ".sea", true))