ManDude
66e395d547
[decompiler] detect seek! and seekl! macros ( #1317 )
...
* detect `seek!` and `seekl!`
* fancy struct instead of pair mess
* fixes
* i think this was wrong?
* update refs
* update source
* More logical branching
* even better branching
2022-04-18 15:01:44 -04:00
ManDude
0cdeed9be7
minor windows fixes ( #1311 )
...
* [pp2] put `define` dest on a single line
* update source!
* Update type_analysis.cpp
* update old credits & racer code
* change clang-cl args (REALLY force avx)
* Update credits_REF.gc
* comment small unused code
* add timer to decompiler
* fix unnecessary copy-constructors (no speed increase)
* fixes
* Update expression_build.cpp
* wtf is this thing anyway
* im bored.
* clang
* fix!
* Revert "fix!"
This reverts commit 5b1ce6c718 .
* Revert "clang"
This reverts commit 5e67d9ccd1 .
* Revert "im bored."
This reverts commit 070e957ce8 .
* Revert "Update expression_build.cpp"
This reverts commit b94d092fc5 .
* Revert "fixes"
This reverts commit f3d871f60a .
* Revert "fix unnecessary copy-constructors (no speed increase)"
This reverts commit 9100725802 .
* Keep the random inoffensive changes
* Revert "Update type_analysis.cpp"
This reverts commit d2456a5c75 .
* Update type_analysis.cpp
2022-04-17 21:11:09 -04:00
ManDude
a7eee4fdc9
[game] pc port progress menu ( #1281 )
...
* fix typo
* more typo
* shorten discord rpc text
* allow expanding enums after the fact (untested)
* make `game_text` work similar to subtitles
* update progress decomp
* update some types + `do-not-decompile` in bitfield
* fixes and fall back to original progress code
* update `progress` decomp with new enums
* update config files
* fix enums and debug menu
* always allocate (but not use) a lot of particles
* small rework to display mode options
* revert resolution/aspect-ratio symbol mess
* begin the override stuff
* make `progress-draw` more readable
* more fixes
* codacy good boy points
* first step overriding code
* finish progress overrides, game options menu fully functional!
* minor fixes
* Update game.gp
* Update sparticle-launcher.gc
* clang
* change camera controls text
* oops
* some cleanup
* derp
* nice job
* implement menu scrolling lol
* make scrollable menus less cramped, fix arrows
* make some carousell things i guess
* add msaa carousell to test
* oops
* Update progress-pc.gc
* make `pc-get-screen-size` (untested)
* resolution menu
* input fixes
* return when selecting resolution
* scroll fixes
* Update progress-pc.gc
* add "fit to screen" button
* bug
* complete resolutions menu
* aspect ratio menu
* subtitles language
* subtitle speaker
* final adjustments
* ref test
* fix tests
* fix ref!
* reduce redundancy a bit
* fix mem leaks?
* save settings on progress exit
* fix init reorder
* remove unused code
* rename goal project-like files to the project extension
* sha display toggle
* aspect ratio settings fixes
* dont store text db's in compiler
* properly save+load native aspect stuff
2022-04-11 18:38:54 -04:00
ManDude
24578b64b9
proper support for hardcoded "time" types ( #1141 )
...
* hardcode `time-frame`things
* Update cam-states_REF.gc
* Update level-info_REF.gc
* update refs 1
* update refs 2
* update refs 3
* update refs 4
* update refs 5
* update detection and casting
* Update FormExpressionAnalysis.cpp
* update refs 6
* update mood decomp
* update refs 7
* update refs 8
* remove temp entity birth code
* update time-frame casts
* fix compiler
* hardcode stuff and fix some types
* fix some bitfield detection being wrong
* bug fixes
* detect seconds on adds with immediate
* update refs 9
* fix casts and rand-vu-int-range bugs (update refs 10)
* update refs 11
* update 12
* update 13
* update 14
* Update game-info_REF.gc
* improve cpad macros detection
* remove unused code
* update refs
* clang
* update source code
* Update cam-states.gc
* `lavatube-energy` finish
* update refs
* fix actor bank stuff
* Update navigate.gc
* reduce entity default stack size
* Update transformq-h.gc
* oops forgot these
* fix code and tests
* fix mood sound stuff
* Update load-dgo.gc
* Update README.md
2022-02-12 12:26:19 -05:00
ManDude
5b44aece75
random fixes + support clang-cl on visual studio ( #1129 )
...
* delete unused shaders
* hide some options in debug menu
* change fullscreen logic a bit
* add "all actors" toggle
* borderless fix and fix alpha in direct renderer untextured (do we need a separate shader for that?)
* fix fuel cell orbit icons in widescreen
* fix `curve` types
* refs
* fix levitator task...
* fix some task stuff
* update font code a bit (temp)
* cmake, third-party and visual studio overhaul
* Update .gitmodules
* update modules
* clone repos
* fix encoding in zydis
* where did these come from
* try again
* add submodule
* Update 11zip
* Update 11zip
* Update 11zip
* delete
* try again
* clang
* update compiler flags
* delete 11zip. go away.
* Create memory-dump-p2s.py
* properly
* fix minimum architecture c++ compiler flags
* fix zydis
* oops
* Update all-types.gc
* fix clang-cl tests
* make "all actors" work better, entity debug qol
* update game-text conversion code to be more modularized
* Create vendor.txt
* fix typos and minor things
* update refs
* clang
* Attempt to add clang-cl support to vs2019 and CI
* vs2022 + clang-cl
* srsly? fix clang build
* Update launch.vs.json
* extend windows CI timer
2022-02-07 19:15:37 -05:00
Tyler Wilding
142961a747
decomp: the majority of navigate and rolling-lightning-mole ( #741 )
...
* decomp: Add texture-upload to ref tests
* maybe 50% done?
* 5 functions to go!
* decomp: stuck in `navigate`
* work-around fp issue
* some cleanup and label casts
* working on supporting asm instructions -- this is currently WRONG
* support ASM operations
* fixes for asm op support
* decomp: finish the vast majority of `navigate`
* format
* update test though i think this suggests a regression!
* decomp: cleanup some more of navigate
* decomp: finish `rolling-lightning-mole`
* revert `r0` handling for `pcpyud` and `pextuw`
* update ref tests
* lint
* fix a failing test
* help
* navigate mostly works now, with some potential bugs
* remove my debugging logs
* update ref tests
* review feedback cleanup
* these are all likely fine
* can't get the crab to chase me anymore
* the crab is back
2022-01-18 01:14:47 -05:00
water111
c043367094
[goalc] fix 0 in xmm128, be more strict with none in comparison ( #1079 )
...
* fix a few small bugs
* merge fixup
* 0 constant fix
2022-01-15 22:33:53 -05:00
Tyler Wilding
89980bd61d
decomp: finish mother-spider ( #1014 )
...
* decomp: finish `mother-spider`
* address feedback
2021-12-18 01:32:46 -05:00
Tyler Wilding
7edfc8bcec
decomp: Re-attempting previously blocked state decomp files ( #907 )
...
* blocked: `part-tester` - `code` handler thinks it returns nothing
* blocked: `crates` finished but `go` is returning none causing issues
* blocked: `(event ram-boss-idle)::snow-ram-boss` expression building fails due to delay slot issue
* decomp: finish `snow-ram` | `seagull` blocked, new static data issue
* decomp: finish `snow-bumper`
* stuck: `snow-ball` close, can't figure out a type made on the stack
* decomp: finish `spider-egg`
* decomp: finish `puffer`
* decomp: finish `driller-lurker`
* decomp: finish `dark-crystal`
* stuck: `kermit` - mostly done but stuck on a joint related callback arg
* decomp: finish `gnawer`
* decomp: finish `mother-spider-egg`
* decomp: finish `swamp-blimp`
* stuck: `mistycannon` prebind function signature
* decomp: finish `citb-plat`
* decomp: finish `darkvine`
* blocked: `jungle-mirrors` - issues with `link` macro
* decomp: finish `launcherdoor`
* decomp: finish `quicksandlurker` except for 1 unused function
* stuck: `balloonlurker` - `(code balloonlurker-mine-explode)` has some weird joint related code
* stuck: need to decompile an asm func in `orbit-plat`
* decomp: finish `voicebox`
* blocked: `mother-spider` has issues where `go` returns none
* decomp: finish `bully`
* decomp: finish `seagull`
* fixed up after merge conflicts
* decomp: finish `jungle-mirrors`
* update gsrc
* double checked files, fixed issues
* decomp: revert change to projectile methods
* decomp: some more fixes
* address feedback
* fix up remaining method calls in `cam-states`
* fix jungle-mirrors
2021-12-11 13:27:24 -05:00
water111
dbc266c00b
New Pretty Printer ( #994 )
...
* begin work on improved pretty printer
* update ref
* finish pretty printer
* force line break for defstate
2021-12-04 16:06:01 -05:00
ManDude
80a002f8c0
[decomp] entity birth ( #964 )
...
* make birthing work
* fix float representation on defskelgroup
* test
* update
* debugger improvements & dont upload aux sprites
* ?
* fix progress
* fixes
* fixes
* Create bea.gd
* fix test
* fix xmm reg clobbering in kernel (water)
* cleanup cam-start
* clear gamepad state every frame
* allow controller connects and disconnects while running
2021-11-15 19:05:28 -05:00
Tyler Wilding
c8a31d4d1b
decomp: Pass of the final remaining gameplay related files ( #921 )
...
* blocked: `plant-boss` has `go` returning none issues
* blocked: `ice-cube` return value getting forced to none
* blocked: `ropebridge` has static data isue
* blocked: `double-lurker` handle cast issues
* decomp: finish `billy`
* decomp: finish `lurkerworm`
* blocked: `pelican` handle casts
* decomp: finish `citb-bunny`
* blocked: inherited states in `snow-bunny`
* blocked: CFG resolution in `lavatube-energy`
* decomp: finish `citadel-sages`
* progress: working through `collectables`
* blocked: finished as much as currently possible in `collectables`
- process-tree's 10 method pparently has a 3rd arg -- im doubtful
- set-to-run function
- branch delay unimplemented case
- weird method 21 eco-collectable
* pre-merge
* decomp: update source files / ref tests
* decomp: finish `floating-launcher`, `shover`, `steam-cap`, `sun-iris-door`, `whirlpool`
* decomp: address feedback
* update ref tests and gsrc
2021-11-14 11:14:43 -05:00
water111
911a8e32a4
[decomp] minor type cleanup ( #874 )
...
* clean up some types
* clean up settings
2021-10-02 11:50:12 -04:00
Tyler Wilding
dd959d0d0d
decomp: Continuing full pass of gameplay code ( #839 )
...
* decomp: finish `babak` - :code is called in `(code nav-enemy-patrol babak)`
* decomp: almost finish `process-taskable`
* blocked: mistycannon / pelican
* decomp: finish `babak-with-cannon` write a script to fix gsrc
* decomp: finish `process-taskable`
* decomp: finish `flutflut` and `yakow`
* decomp: finish `fishermans-boat`
* blocked: state decomp `training-obs`
* decomp: finish `muse`
* decomp: finish `bonelurker`
* blocked: state decomp in `quicksandlurker`| `balloonlurker`
* decomp: finish `assistant-village2`
* scripts: script to help updating goal_src
* starting to update goal_src
* tests: update ref tests
* src: more src updating
* src: waiting on `process-taskable` and `muse`
* blocked: `citb-plat` state decomp
* decomp: finish `square-platform`
* blocked: `orbit-plat` due to overlays + static data
* decomp: finish `qbert-plat`
* blocked: almost finish `misty-conveyor`, sparticle-callback
* blocked: jungle-mirrors
* blocked: state decomp in `swamp-blimp`
* decomp: finish `swamp-bat`
* decomp: finish `swamp-rat`
* decomp: finish `swamp-rat-nest`
* blocked: state decomp `kermit`
* decomp: finish `cavecrystal-light`
* decomp: finish `spiderwebs`
* blocked: state decomp `dark-crystal`
* decomp: finish `baby-spider`
* decomp: finish `mother-spider-h`
* decomp: finish `mother-spider-proj`
* blocked: state decomp in `gnawer`
* blocked: state decomp in `driller-lurker`
* blocked: `sun-exit-chamber` breaks when adding handle cast
* decomp: finish `sunken-water`
* blocked: `target-tube` ShortCircuitElement::push_to_stack
* decomp: finish `sunken-fish`
* blocked: `minecart` decomp crash when adding stack cast
* decomp: finish `assistant-village3`
* decomp: finish `sage-village3`
* blocked: `cave-trap` done but ran into `go` issue
* blocked: `spider-egg` state decomp
* decomp: finish `target-snowball`
* blocked/stuck: `target-ice` decomp issue around cpad
* pausing: ice-cube has some weird collide-shape-prim handling
* blocked: `snow-ball` state decomp
* blocked: `snow-bumper` state decomp
* decomp: finish `snow-ram-h`
* decomp: finish `yeti`
* decomp: finish `assistant-lavatube`
* re-enable the float cast log
* decomp: updating to new sparticle definitions
* decomp: address feedback up to `swamp-rat-nest`
* address remaining feedback
* all-types: move the `pointer` def
* add back temporary `hud-hidden?`
2021-09-28 20:42:00 -04:00
Tyler Wilding
d1f16b34ff
decomp: another batch of easy files ( #823 )
...
* decomp: finish `sharkey`
* decomp: finish `lurkercrab`
* decomp: finish `lurkerpuppy`
* decomp: finish `assistant-citadel`
* decomp: finish `static-screen`
* decomp: finish `robotboss-h`
* decomp: finish `final-door`
* decomp: finish `aphid`
* addressed review
2021-09-06 15:34:31 -04:00
water111
c2c6d3ba46
[decompiler] detect res-lump macros ( #796 )
...
* support res lump float
* handle data macro
* rest of res macros
* add vi3 to the build system
* missing close paren
2021-08-31 15:01:54 -04:00
water111
34e8afa0ee
get started on entity ( #793 )
2021-08-31 11:05:03 -04:00
water111
11e11d2c04
[decompiler] Several small fixes ( #775 )
...
* fix assorted bugs
* stricter return types
* only look for functions in code files
2021-08-19 20:35:12 -04:00
Tyler Wilding
253d7996e8
decomp: almost all of the NPCs! ( #748 )
...
* all-types: add all missing `:heap-base`s
* decomp: error encountered when compiling `mayor`
`IR_StoreConstOffset::do_codegen can't handle this` for method `play-anim!`
* decomp: finalize `mayor`
* decomp: finish `bird-lady`
* decomp: finish `bird-lady-beach`
* decomp: finish `sculptor`
* decomp: finish `geologist`
* decomp: finish `oracle`
* decomp: finish `farmer` | `explorer` | almost `assistant`
blocked on sparticle-launch-group
* decomp: finish `sage`
* decomp: finish `gambler`
* decomp: finish `warrior`
* decomp: mostly finish `miners`, blocked by sp-launch-group
* fix issue in `sage`
* fix all the reference tests to use the new state stuff
* fix all of goal_src
* address feedback
* re-gen with `until` fixes
2021-08-18 21:33:31 -04:00
water111
97ab6a4e12
add support for non virtual states ( #764 )
...
* add support for non virtual states
* typecheck go
* start on virtual states
* more support for virtual states
* offline passes
* fix tests
* use behavior shortcut instead of lambda
* final cleanup of virtual go
* unused var warnings and fix inconsistent enum decompile order on win vs linux
* fix thread safety bug with goal symbol table and vif1 interrupt handler
* fix type mistake
2021-08-17 20:54:03 -04:00
ManDude
ff3174f292
more cpad stuff + make font-flags
2021-08-16 03:50:36 +01:00
water
e473ede677
sort enum bit fields
2021-08-14 13:17:24 -04:00
water
51dd1bdae8
Merge branch 'master' of github.com:water111/jak-project into w/sprite-distort-stub
2021-08-14 13:07:17 -04:00
water
097ae07bb8
clean up font color
2021-08-14 13:06:43 -04:00
Tyler Wilding
b3dc755f06
address _almost_ all feedback
2021-08-14 12:45:25 -04:00
Tyler Wilding
eaee7e1451
finalizing
2021-08-13 21:14:05 -04:00
water111
12446037bd
[decompiler] Make addition nicer ( #733 )
...
* temp
* update refs
* update reference
* fix tests
2021-08-01 18:24:58 -04:00
water111
95366d21df
Get started on collide-func and clean up log forms in decompiler ( #713 )
...
* wip
* temp
* temp2
* first part of log macros
* more log macros
* logtest
* clean up
* dont initialize game info because we are missing stuff
2021-07-23 20:51:26 -04:00
water111
b70fcb2f7a
support non-virtual gos in decompiler ( #707 )
2021-07-17 18:07:21 -04:00
water111
f6d5952498
[decompiler] handle nested conditionals and gotos better ( #693 )
...
* diff check
* try that again
* more small fixes
2021-07-11 21:59:27 -04:00
water111
0a9cc68a27
[decompiler] Use meters, degrees, and seconds ( #689 )
...
* use meters degrees and seconds
* update changelog
2021-07-11 18:19:41 -04:00
Tyler Wilding
0e4a9d2679
decomp: finish path ( #685 )
...
* decomp: finish `path`
* address feedback
2021-07-10 10:18:48 -04:00
water111
1898c7c52a
[decomp] texture ( #684 )
...
* temp
* more cleanup
* fix merge issue
* handle no texture correctly
2021-07-09 22:20:37 -04:00
ManDude
1af0f4a1a7
[decomp] most of level and some game loop functions + couple decomp… ( #651 )
...
* [decomp] most of `level` and some game loop functions + couple decompiler fixes
* add ART.CGO to fake-iso
2021-06-29 20:30:52 -04:00
water111
a6d5c4eda3
[decompiler] clean up vector detection and add vector float product detection ( #638 )
...
* change
* recognize vector float product and update tests
2021-06-27 17:24:35 -04:00
water111
06ae38d464
[decomp] clean up type def formatting and remove all-forward-definitions.gc ( #608 )
...
* clean up
* fix test
2021-06-19 15:50:52 -04:00
water111
0aa474f12b
[decomp] finish actor-link-h and a few more ( #592 )
...
* finish actor-link-h
* decompile files
* fix pp issue
2021-06-14 20:46:54 -04:00