mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-14 08:12:19 +00:00
Check if mod context is good in mod tool (#113)
This commit is contained in:
parent
17438755a1
commit
0d0e93e979
1 changed files with 5 additions and 0 deletions
|
@ -1087,6 +1087,11 @@ int main(int argc, const char** argv) {
|
||||||
|
|
||||||
bool mod_context_good;
|
bool mod_context_good;
|
||||||
N64Recomp::Context mod_context = build_mod_context(context, mod_context_good);
|
N64Recomp::Context mod_context = build_mod_context(context, mod_context_good);
|
||||||
|
if (!mod_context_good) {
|
||||||
|
fmt::print(stderr, "Failed to create mod context\n");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<uint8_t> symbols_bin = N64Recomp::symbols_to_bin_v1(mod_context);
|
std::vector<uint8_t> symbols_bin = N64Recomp::symbols_to_bin_v1(mod_context);
|
||||||
if (symbols_bin.empty()) {
|
if (symbols_bin.empty()) {
|
||||||
fmt::print(stderr, "Failed to create symbol file\n");
|
fmt::print(stderr, "Failed to create symbol file\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue