From 8590df65f863afedb8b9f984f82464ae03a758fe Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 10 Jan 2025 15:27:19 -0600 Subject: [PATCH] error message when trying to launch from header.exs --- src/scenedit/scen.main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scenedit/scen.main.cpp b/src/scenedit/scen.main.cpp index e0371783..5e06e1ea 100644 --- a/src/scenedit/scen.main.cpp +++ b/src/scenedit/scen.main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include "cli.hpp" #include "scen.global.hpp" @@ -94,6 +95,11 @@ fs::path game_binary; extern std::string last_load_file; void launch_scenario() { + if(boost::ends_with(last_load_file, ".exs")){ + showError("The scenario editor cannot launch an unpacked scenario directly. You'll need to re-open the scenario from its .boes archive."); + return; + } + // Make sure scenario is loaded and currently editing the terrain of a town or outdoor section if(overall_mode >= MODE_MAIN_SCREEN){ showError("Must be viewing the terrain of a town or outdoor section at the place where you want to put the debug party.");