mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 14:03:38 -04:00
decomp3: more misc files (#3349)
- `pat-h` - `engines` - `res-h` - `res` - `fact-h` - `game-info-h` - `wind-h` - `merc-h` - `shadow-vu1-h` - `shadow-cpu-h` - `dynamics-h` - `memcard-h` - `surface-h` - part of `gui-h` - `ambient-h` - `speech-h` - `prototype-h` - `smush-control-h` - `generic-merc-h` - `generic-work-h` - `collide-func-h` - `collide-mesh-h` - `collide-shape-h` (only missing the `new` method for `collide-shape` because we don't have `process-drawable` yet and that also needs joint stuff etc.) - `collide-touch-h` - `collide-edge-grab-h` - `lightning-h` This also adds argument name remaps for the `relocate` and `mem-usage` methods (Jak 1 and 2 ref tests were updated, but not the gsrc).
This commit is contained in:
@@ -30,10 +30,19 @@ bool convert_to_expressions(
|
||||
} else if (f.guessed_name.kind == FunctionName::FunctionKind::METHOD) {
|
||||
auto method_type =
|
||||
dts.ts.lookup_method(f.guessed_name.type_name, f.guessed_name.method_id).type;
|
||||
if (f.guessed_name.method_id == GOAL_NEW_METHOD) {
|
||||
f.ir2.env.set_remap_for_new_method(method_type);
|
||||
} else {
|
||||
f.ir2.env.set_remap_for_method(method_type);
|
||||
switch (f.guessed_name.method_id) {
|
||||
case GOAL_NEW_METHOD:
|
||||
f.ir2.env.set_remap_for_new_method(method_type);
|
||||
break;
|
||||
case GOAL_RELOC_METHOD:
|
||||
f.ir2.env.set_remap_for_relocate_method(method_type);
|
||||
break;
|
||||
case GOAL_MEMUSAGE_METHOD:
|
||||
f.ir2.env.set_remap_for_memusage_method(method_type);
|
||||
break;
|
||||
default:
|
||||
f.ir2.env.set_remap_for_method(method_type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user