add xbe patch translator shell

This commit is contained in:
Martin Michelsen
2024-02-25 17:21:41 -08:00
parent e2e5875c8d
commit 79f85f46dc
4 changed files with 256 additions and 4 deletions
+8
View File
@@ -2280,6 +2280,14 @@ Action a_ar_code_translator(
}
run_ar_code_translator(dir, args.get<string>(2, false), args.get<string>(3, false));
});
Action a_xbe_patch_translator(
"xbe-patch-translator", nullptr, +[](Arguments& args) {
const string& dir = args.get<string>(1, false);
if (dir.empty() || (dir == "-")) {
throw invalid_argument("a directory name is required");
}
run_xbe_patch_translator(dir, args.get<string>(2, false), args.get<string>(3, false));
});
Action a_diff_dol_files(
"diff-dol-files", nullptr, +[](Arguments& args) {