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:
Hat Kid
2024-02-01 00:25:06 +01:00
committed by GitHub
parent 1979f94e45
commit ea93d32acc
279 changed files with 27215 additions and 3313 deletions
+13 -4
View File
@@ -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;
}
}