mirror of
https://github.com/open-goal/jak-project
synced 2026-08-05 01:30:22 -04:00
[decomp] fix up gun decomp (#2067)
I did some manual modifications in a few places to work around some truly mysterious control flow, and some unsupported stack array stuff. Also fixes a bug in decompiling static improper lists. As far as I can tell, guns work, other than some graphical issues and the crazy particle spawning issue, but I strongly suspect these are problems with the sparticle/graphics side.
This commit is contained in:
@@ -574,7 +574,8 @@ bool try_splitting_nested_sc(FormPool& pool, Function& func, ShortCircuitElement
|
||||
ASSERT(ir->entries.at(i).branch_delay.has_value());
|
||||
bool is_and = delay_slot_sets_false(branch.first, *ir->entries.at(i).branch_delay);
|
||||
bool is_or = delay_slot_sets_truthy(branch.first, *ir->entries.at(i).branch_delay);
|
||||
ASSERT_MSG(is_and != is_or, fmt::format("bad nested sc in {}", func.name()));
|
||||
ASSERT_MSG(is_and != is_or,
|
||||
fmt::format("bad nested sc in {}: {}", func.name(), ir->to_string(func.ir2.env)));
|
||||
|
||||
if (first_different == -1) {
|
||||
// haven't seen a change yet.
|
||||
|
||||
Reference in New Issue
Block a user