diff --git a/src/nsui_banner_fixer.cpp b/src/nsui_banner_fixer.cpp index 08e7fc0..e7b7f87 100644 --- a/src/nsui_banner_fixer.cpp +++ b/src/nsui_banner_fixer.cpp @@ -5,7 +5,7 @@ #include #include -#include +#include #include "Game.hpp" #include "Settings.hpp" @@ -145,9 +145,26 @@ int main(int argc, char* argv[]) return 0; } + struct resultS { + fs::path cia; + bool result; + }; + std::vector results; + for (const auto &path : cia_paths) { - Game(path, set).fix_banner(); + struct resultS res = {path, false}; + res.result = Game(path, set).fix_banner(); + results.push_back(res); + } + + for (const auto &res : results) { + if (res.result == false) { + std::cerr << "ERROR: There was a problem processing " << res.cia << "\n"; + return 1; + } } + pause_if_double_clicked(); + return 0; }