water111
a572587a0e
add types ( #559 )
2021-06-05 16:58:32 -04:00
water111
2851cae13b
[decompile] fact-h ( #556 )
...
* decompile fact-h
* fix unused var
* codacy again
2021-06-05 11:15:34 -04:00
water111
542edfb164
[compiler/decompiler] Take the address of a variable ( #554 )
...
* support taking the address of variables
* partially working stack variables
* implement type cast stuff
* remove final
2021-06-04 13:43:19 -04:00
ManDude
9b905f903c
random clean-up ( #551 )
...
* clean-up various files, do `game-h` and `generic-obs-h`
* cleanup `smush-control-h`
* cleanup `collide-edge-grab-h`, `collide-mesh-h`, `collide-shape-h`
* [goal lib]organize minor things
* Fix a library command before I forget again
* fix
2021-06-04 13:22:50 -04:00
Tyler Wilding
2bfe13d0be
decomp: entity-h
, camera-h
, cam-update-h
and cam-interface[-h]
( #501 )
...
* waiting for `entity-camera` / `entity-ambient` issue
* stash
* add missing definitions
* decomp: `cam-interface`
* as far as i can get with `path-h`, how do you specify pointers on the stack?
* correction, no way these are just simple integers but `etype`is still a mystery...
* decomp: `camera-h` | `cam-interface` | `cam-interface-h` and `entity-h`
* revert change to `process` doesn't seem likely
2021-06-02 20:09:04 -04:00
Tyler Wilding
2b3c4d957a
Organize all types ( #523 )
...
* get a full mapping of all `symbol:file-name` for jak1
* cleanup before any additional work is done
* more pre-organize changes
* scripts: script written to cleanup all-types...but what will cleanup the script...
* resolve clashing enum symbol names
* some manual changes to symbol order
* very close! don't completely lose types that are fully commented out
* scripts: New symbol mapping and further script polishing
* changes needed to make the script function properly
* brand new all-types!
* remove now irrelevant symbol definitions
* formatting cpp
* decompiler: Remove symbol dumping feature, not accurate anyway
2021-06-01 22:41:37 -04:00
ManDude
784119188c
[decomp] even more res
( #529 )
...
* [decomp] even more `res`
* [decompiler] make `logand` with pointers and constants return pointer
* [decomp] more work
* update offline tests
* fix tests(?)
* `*res-static-buf*`
* fixes
* fix reference
* [opengoal] make `logand` work directly with pointers
* [decomp] `inspect res-lump`
* use the inline methods
* don't use a math mode for pointers
* [compiler] allow optionally setting disassembly output file
* [x86 disasm] Keep casing consistent between instructions and offsets
2021-06-01 16:07:45 -04:00
water111
3d8013633a
[decompiler] Fix rlet in top level and detect matrix and stack inline construction ( #547 )
...
* top level in rlet
* detect matrix and vector inline 0
* pretty print the symbol map
2021-05-31 18:14:18 -04:00
water111
84c0522102
[decompiler] Add pass to generate a symbol definition map file ( #546 )
...
* add symbol order file
* class to struct fix for windows
2021-05-31 10:43:25 -04:00
water111
c4f44e265f
[decompiler] Better support for non-virtual methods ( #543 )
...
* fix up nonvirtual method calls and stack new method calls
* look at final in compiler too
2021-05-30 22:52:40 -04:00
water111
b1a76b2291
[decomp] Small fixes ( #541 )
...
* fix a few bugs
* fix local vars missing in top level
* more small fixes
* support missing inline array access case
* one more fix
2021-05-30 19:57:11 -04:00
Tyler Wilding
c910a22c1b
decomp: a bunch of files ( #532 )
...
* decomp: `eye-h`
* decomp: `projectile-h`
* decomp: `sky-utils`
* decomp: decompile `water-h` and add `smush-control-h` to ref tests
* decomp: `task-control-h`
2021-05-28 20:11:06 -04:00
Tyler Wilding
fb939726e8
decomp: Decompile ripple
( #512 )
...
* decomp: Decompile `ripple`
* decomp: Finish decompiling `ripple`
* update necessary src files
2021-05-26 19:40:12 -04:00
ManDude
ec45182b42
[decomp] more of res
+ change a few macros ( #527 )
...
* disable asan for windows because it is too slow
* add `deref` and `&deref` macros, change `case` construct
* update `res`
* update `case` usages
* Fix some `res` methods
* `res-lump` method 9
2021-05-25 16:36:36 -04:00
water111
0f0902eabf
add config option for changing cond splitting behavior ( #522 )
2021-05-24 19:52:19 -04:00
water111
d719bf5677
[decompiler] support break ( #516 )
...
* support break
* finish implementation of break, decomp method 19 of res
2021-05-23 20:16:34 -04:00
water111
a96710f0c5
VU micro mode disassembler ( #517 )
...
* wip
* more
* the rest of the disassembler
2021-05-23 16:59:09 -04:00
water111
3fbdd662dc
[decompiler] Support accessing 128-bit bitfields ( #514 )
...
* support some 128-bit bitfield stuff
* fix bug
* support type stuff correctly
2021-05-21 20:36:04 -04:00
ManDude
6ac399ca33
decomp some of res
to get started ( #439 )
...
* decomp some of `res` to get started
* update scripts
2021-05-21 10:41:50 -04:00
water111
46e5d1928b
support float stack spills ( #513 )
2021-05-21 10:29:05 -04:00
water111
663b5c7899
[OpenGOAL] Support for 128-bit arguments and return values (WIP) ( #510 )
...
* xmm call and return working, needs some careful double checking and tests
* clean up and test
2021-05-20 20:12:49 -04:00
Tyler Wilding
174a079dbd
decomp: Decompile stats-h
( #504 )
...
* decomp: Decompile `stats-h`
* linting
2021-05-20 13:53:19 -04:00
Tyler Wilding
ce6ebc385c
decomp: decompile trajectory
( #499 )
...
* decomp: decompile `trajectory`
* address review feedback
* some more corrections
2021-05-18 21:50:08 -04:00
water111
ec412c7777
[decomp] ramdisk, load-dgo and rpc-h ( #496 )
...
* decompile ramdisk load-dgo and rpc-h
* add a bunch of offline tests
* clang-format
2021-05-16 21:07:22 -04:00
Tyler Wilding
b75a64fc29
(init-vf0-vector)
to make vector code a bit more readable (#494 )
...
* decomp: Use a macro for loading VF0 (maybe should be in goal-lib.gc?)
* update references
* lint: format
* delete now unused file
2021-05-16 13:49:24 -04:00
Tyler Wilding
bf6e9fc9e9
decomp: Decompile transformq
( #492 )
...
* decomp: type changes for `transformq`
* decomp: decompile `transformq`
* address feedback
2021-05-16 12:43:50 -04:00
water111
79d10979da
[decomp] math-camera
( #491 )
...
* decompile math camera
* missing line
2021-05-15 20:08:08 -04:00
Tyler Wilding
af2836c452
decomp: Decompile aligner-h
( #490 )
...
* scripts: Automatically re-decompile if all-types is modified
* decomp: `aligner-h`
* remove inspect method
2021-05-15 19:42:23 -04:00
water111
d73501cf19
[decompiler] Get rid of FormStack peek and fix virtual method calls ( #488 )
...
* fix, but it was too easy
* try again
2021-05-15 13:11:20 -04:00
water111
613efbd768
[decomp] transformq-h, clean up trig, and offline test for trig ( #485 )
...
* clean up
* fix store vf fallback errors
2021-05-15 10:38:14 -04:00
water111
c95e501cec
handle zero case in enum comparison ( #484 )
2021-05-14 20:12:59 -04:00
water111
d9f9d36f37
[OpenGOAL] make multiplication/divsion like GOAL and support in decompiler ( #483 )
...
* support in compiler
* multiplication in the decompiler
* update divisions
2021-05-14 18:43:12 -04:00
water111
b3eb05e37f
[decompiler] fix (gpr->fpr
when an integer arg is converted to float ( #482 )
...
* fix gpr fpr bug
* remove unused variable
2021-05-14 14:33:08 -04:00
Tyler Wilding
790e65a78c
decomp: Decompile wind
( #480 )
...
* decomp: Decompile `wind`
* include `<limits>`
2021-05-13 20:46:37 -04:00
water111
0ab916e122
fix quote issue and decompile level-info ( #474 )
2021-05-12 21:57:19 -04:00
ManDude
7d69311552
[decomp] some of fact-h
( #473 )
...
* update scripts
* decomp some of `fact-h`
2021-05-12 21:45:36 -04:00
water111
129ab54fd4
[decompiler] clean up if/when/cond and recognize define-perm ( #472 )
...
* clean up if and when and cond decisions
* recognize define perm
2021-05-12 19:46:17 -04:00
Tyler Wilding
3897258753
decomp: mood-tables
( #460 )
...
* decomp: Decompile `mood-tables`
* decomp: Cleanup `mood-tables` and add REF file
* all-types cleanup
* decomp: Add missing float types (that may be optional now)
* linting / formatting
2021-05-12 19:33:29 -04:00
water111
8d4b644a14
fix cond with else that is empty bug ( #470 )
2021-05-12 15:54:33 -04:00
water111
223adeeb0c
Automatically get float label type in most cases ( #463 )
...
* automatically get float type in most cases
* try harder to print json errors
* fix test
2021-05-11 21:57:05 -04:00
water111
0599d144f8
[decompiler] Clean up config more ( #458 )
...
* remove global config
* fix dir
2021-05-11 20:49:54 -04:00
water111
d7d563814f
clean up config ( #456 )
2021-05-11 19:19:23 -04:00
water111
433993074a
Clean up some errors/crashes in decompiler ( #452 )
...
* fix offline tests, clean up some warnings
* clean up warnings during decomp
* fix remaining crash issues
2021-05-11 16:43:13 -04:00
Tyler Wilding
4c788b7f50
Decompilation: shadow-h
and target-h
( #428 )
...
* decomp: `target-h`
* decomp: `shadow-h`
* decomp: Add reference / source files
* Use `define-perm` in goal_src file
2021-05-11 00:01:37 -04:00
ManDude
fef9b139d7
Force-enable assert
on release mode Windows build ( #440 )
2021-05-10 23:03:56 -04:00
water
c5922df12e
Merge branch 'decomp/cleanup-alltypes' of https://github.com/xTVaser/jak-project into xTVaser-decomp/cleanup-alltypes2
2021-05-09 17:09:40 -04:00
Tyler Wilding
2a315419de
tests: Automate the offline reference tests better ( #427 )
...
* tests: Move all files to new directories
* scripts: Update decomp scripts
* tests: Remove hard-coded list for offline tests
* linting
2021-05-09 17:03:58 -04:00
Tyler Wilding
7cbf6e6174
decomp: Cleanup all unknown-types
that we've actually defined
2021-05-08 22:19:36 -04:00
Tyler Wilding
971e0e3e24
decomp: pov-camera-h
and hud-h
( #425 )
...
* decomp: `pov-camera-h`
* decomp: decompile `hud-h` and update offline tests
* linting
2021-05-07 22:56:37 -04:00
Tyler Wilding
73a4f2c83e
decomp: lights.gc
( #420 )
...
* scripts: Hack script to quickly identify the next goal_src file that hasn't been decomp'd yet
* config: Delete old type_hints file
* decomp: Decompile lights.gc
* decomp-tests: Add offline tests and temporary forward defs
* vs: Rename / add new offline test run config
* decomp: Add formatted lights.gc source
* decomp: Temporary define stub in geometry,gc
* decomp: Cleanup `lights-group` handling
2021-05-07 20:54:20 -04:00