Skip to content

Commit

Permalink
Decompile: prototype | video | vol-h | air-h | nav-enemy-h
Browse files Browse the repository at this point in the history
…| `rigid-body-h` (#575)

* decomp: `prototype` done

* tests/ref: Update all reference tests

* decomp: `video` done

* decomp: Add `video` to src

* decomp: `vol-h` done

* tests/ref: Update reference tests again

* decomp: Add `vol-h` to ref tests, leave `entity` in process as a `basic` for now!

* decomp: `air-h` done, compiler issue though

* decomp: `nav-enemy-h` done, compiler issue though

* decomp: `rigid-body-h` done, compiler issue though

* Address feedback and fix the failing to compile files

* linting

* finish `video` off
  • Loading branch information
xTVaser authored Jun 13, 2021
1 parent 8faded6 commit 506b5d8
Show file tree
Hide file tree
Showing 30 changed files with 1,989 additions and 325 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ tasks:
cmds:
- cmd: ./out/build/Release/bin/offline-test.exe "./iso_data/jak1" --dump-mode
ignore_error: true
- python ./scripts/update_decomp_reference.py ./failures\ ./test/decompiler/reference/
- python ./scripts/update_decomp_reference.py ./failures ./test/decompiler/reference/
- task: offline-tests

4 changes: 2 additions & 2 deletions common/type_system/TypeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ void TypeSystem::add_builtin_types() {
declare_method(obj_type, "copy", false, make_function_typespec({"_type_", "symbol"}, "_type_"));
declare_method(obj_type, "relocate", false, make_function_typespec({"_type_", "int"}, "_type_"));
declare_method(obj_type, "mem-usage", false,
make_function_typespec({"_type_", "memory-usage-block"}, "_type_"));
make_function_typespec({"_type_", "memory-usage-block", "int"}, "_type_"));

// STRUCTURE
// structure new doesn't support dynamic sizing, which is kinda weird - it grabs the size from
Expand Down Expand Up @@ -1598,4 +1598,4 @@ bool TypeSystem::should_use_virtual_methods(const Type* type, int method_id) con

bool TypeSystem::should_use_virtual_methods(const TypeSpec& type, int method_id) const {
return should_use_virtual_methods(lookup_type(type), method_id);
}
}
Loading

0 comments on commit 506b5d8

Please sign in to comment.