From 2a2240da9ac509bc75552afdd1548b11a24f1fa8 Mon Sep 17 00:00:00 2001 From: LittleCube Date: Wed, 11 Sep 2024 03:00:37 -0400 Subject: [PATCH] Exit on linux if zip command is not found --- RecompModTool/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RecompModTool/main.cpp b/RecompModTool/main.cpp index 30faa7a..a632dd2 100644 --- a/RecompModTool/main.cpp +++ b/RecompModTool/main.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "fmt/format.h" #include "fmt/ostream.h" #include "n64recomp.h" @@ -975,6 +976,7 @@ bool create_mod_zip(const std::filesystem::path& output_dir, const ModConfig& co // This is the child process, so exec zip with the arguments. if (execvp(arg_pointers[0], arg_pointers.data()) == -1) { fmt::print(stderr, "Failed to run \"zip\" ({})\n", errno); + exit(-1); } } else {