diff --git a/src/tool/main.cpp b/src/tool/main.cpp index 34571dea..4b54143c 100644 --- a/src/tool/main.cpp +++ b/src/tool/main.cpp @@ -255,7 +255,10 @@ auto compile_file(game game, mach mach, fs::path file, fs::path rel) -> int try { if (file.extension() != ".gsc") - throw std::runtime_error("expected .gsc file"); + { + std::cerr << fmt::format("{} at {}\n", "expected .gsc file", file.generic_string()); + return 0; + } rel = fs::path{ games_rev.at(game) } / rel / file.filename().replace_extension((zonetool ? ".cgsc" : ".gscbin"));