mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[decomp] cleanup default-menu, fix dangerous IOP bug, autoconvert ints in pairs to/from bintegers (#997)
* fix a couple macros in ref tests * `default-menu` cleanup * add `find-instance-by-name` func * improve debugger slightly hopefully * fix IOP PLAY buffer overrun bug * fix `default-menu` more * automatically convert ints in static pairs to/from bintegers * fix test * clang * fix a few more lambdas * update refs * add custom menu cuz cool * oopsie! also make `default-level` and `halfpipe` go away * add camera teleport menu * update types in debug menu
This commit is contained in:
@@ -1193,7 +1193,7 @@ goos::Object decompile_pair_elt(const LinkedWord& word,
|
||||
} else if (word.kind() == LinkedWord::EMPTY_PTR) {
|
||||
return pretty_print::to_symbol("'()");
|
||||
} else if (word.kind() == LinkedWord::PLAIN_DATA && (word.data & 0b111) == 0) {
|
||||
return pretty_print::to_symbol(fmt::format("(the binteger {})", ((s32)word.data) >> 3));
|
||||
return pretty_print::to_symbol(fmt::format("{}", ((s32)word.data) >> 3)); // binteger assumed
|
||||
} else if (word.kind() == LinkedWord::PLAIN_DATA) {
|
||||
return pretty_print::to_symbol(fmt::format("#x{:x}", word.data));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user