Skip to content

Commit

Permalink
fix(gsc): don't exit failure on non-gsc files for compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Dec 26, 2023
1 parent b1798f8 commit 23af3de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit 23af3de

Please sign in to comment.