* Imminent fixes for bugs found on master branch (#512)
* The vanilla level checks define for Yoshi is inverted, causing him to require 120 stars when it is off and appear at 0 stars when it's on
* The downwarp fix results in Mario levitating in midair when grabbing Bowser midair. While downwarps should still be fixed, the change should be reverted immediately until a better fix is made.
* Some checks of Mario's floor class were using the wrong defines, which can lead to unexpected behavior in the event anyone wants to reorder surface types. By default the SURFACE_CLASS_SLIPPERY and SURFACE_SLIPPERY defines have the same value, which is why this mistake is hard to notice.
* The firsty frames define was implemented poorly, not allowing for vanilla firsty behavior no matter what the values were set to. This has been reverted, while avoiding the UB in the original vanilla code.
* Removed the ledge grab changes that fix QSLGs and change the false ledgegrab define since Arceveti wanted to in his PR
* Update version to 2.0.4 (#515)
* HackerSM64 2.0.5 (#517)
* Bugfix: race condition with accessing cleared audio memory pools
* Bugfix: skyboxes access tiles out of range when looking straight down (#518)
* Vscode fixes (#516)
* Revert s32 angles and remove Angle typedef usage (#529)
* Fix some surface shadowing (#531)
* Delete rtc.h
* Remove `wait_for_audio_frames()`
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
Co-authored-by: Arceveti <73617174+Arceveti@users.noreply.github.com>
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
* Update VERSION.txt (#534)
* HackerSM64 2.0.6 (#539)
* revert random_u16 to be a u16 (#538)
* Added safety gcc math flags (#537)
* removed useless compilation flags that could cause performance loss
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
Co-authored-by: thecozies <collinpferguson@gmail.com>
* Update VERSION.txt
HackerSM64 2.0.6
* Add GCC opt flag to suppress warnings
* v2.0.7
* 2.0.8 (fix more compiler warnings) (#543)
* fix Waddress in mario_step.c
* fix Winfinite-recursion in unused dynlist_proc function
* in fact remove the offending function entirely
* fix warnings in RNC decompress functions
* update version
* fix version in VERSION.txt
premature on my part, will update it to 2.0.10 next time
Co-authored-by: someone2639 <someone2639@gmail.com>
Co-authored-by: arthurtilly <32559225+arthurtilly@users.noreply.github.com>
Co-authored-by: axollyon <20480418+axollyon@users.noreply.github.com>
Co-authored-by: Gregory Heskett <gheskett@gmail.com>
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
Co-authored-by: thecozies <collinpferguson@gmail.com>
Co-authored-by: Reonu <danileon95@gmail.com>
Co-authored-by: someone2639 <someone2639@users.noreply.github.com>
Co-authored-by: someone2639 <someone2639@gmail.com>
* Imminent fixes for bugs found on master branch (#512)
* The vanilla level checks define for Yoshi is inverted, causing him to require 120 stars when it is off and appear at 0 stars when it's on
* The downwarp fix results in Mario levitating in midair when grabbing Bowser midair. While downwarps should still be fixed, the change should be reverted immediately until a better fix is made.
* Some checks of Mario's floor class were using the wrong defines, which can lead to unexpected behavior in the event anyone wants to reorder surface types. By default the SURFACE_CLASS_SLIPPERY and SURFACE_SLIPPERY defines have the same value, which is why this mistake is hard to notice.
* The firsty frames define was implemented poorly, not allowing for vanilla firsty behavior no matter what the values were set to. This has been reverted, while avoiding the UB in the original vanilla code.
* Removed the ledge grab changes that fix QSLGs and change the false ledgegrab define since Arceveti wanted to in his PR
* Update version to 2.0.4 (#515)
* HackerSM64 2.0.5 (#517)
* Bugfix: race condition with accessing cleared audio memory pools
* Bugfix: skyboxes access tiles out of range when looking straight down (#518)
* Vscode fixes (#516)
* Revert s32 angles and remove Angle typedef usage (#529)
* Fix some surface shadowing (#531)
* Delete rtc.h
* Remove `wait_for_audio_frames()`
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
Co-authored-by: Arceveti <73617174+Arceveti@users.noreply.github.com>
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
* Update VERSION.txt (#534)
Co-authored-by: arthurtilly <32559225+arthurtilly@users.noreply.github.com>
Co-authored-by: axollyon <20480418+axollyon@users.noreply.github.com>
Co-authored-by: Gregory Heskett <gheskett@gmail.com>
Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com>
Co-authored-by: JoshDuMan <40190173+JoshDuMan@users.noreply.github.com>
* Added super slippery surface·
* fix requested changes
* add comment for forcing mario to belly slide
* hi arthur
* society
* adress nitpick
Co-authored-by: aglab2 <aglab3@gmail.com>
* Implemented native Gamecube controller support and corresponding emulator hint in ROM header
* Added X and Y buttons to VALID_BUTTONS in sm64.h
* Added workaround in controller type detection for mupen bug
* read GC controllers from port 2
* L to Z logic for GC controller uses a threshold
* Changed threshold for L trig to around 33%
Changed threshold based on feedback
* Added gGamecubeControllerPort
* fixed wrong check
* Bugfix: Game crashes when less than 2 controllers are connected
* Suppress compiler warnings
* Bugfix: button swapping still takes place on non-GC controllers
* Wrap port 2 stuff in console check
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
* GC console check
* Funny emulator crash moment
* block comment moment
* Added centering for the gamecube controller, support reset command (#511)
* Added centering for the gamecube controller, support reset command
* Use struct 'ControllerCenters' for 'gGamecubeControllerCenters'
* Store gamecube controller centers per controller
* Clamp GC controller stick values to s8
* the
formatting changes
Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
Co-authored-by: Reonu <danileon95@gmail.com>
Co-authored-by: Denis Kopyrin <aglab3@gmail.com>
* Add define to disable pitch shifting of Mario sound effects
* Point new voice sequence macros to existing ones
* Remove pitch shifting sequence macros from peach sounds
* Combined ENABLE_LIVES and DEFAULT_NUM_LIVES, and removed SAVE_NUM_LIVES
* removed commented out lines
* numLives no longer modified by default when lives are disabled
This allows for the variable to be repurposed more easily
* Remove SAVE_NUM_LIVES define
* Remove SAVE_NUM_LIVES and DISABLE_LIVES define (Take 2)
* Apply MAX_NUM_LIVES and MAX_NUM_COINS to update_hud_values()
Co-authored-by: gheskett <gheskett@gmail.com>
* Implemented native Gamecube controller support and corresponding emulator hint in ROM header
* Added X and Y buttons to VALID_BUTTONS in sm64.h
* Added workaround in controller type detection for mupen bug
* read GC controllers from port 2
* L to Z logic for GC controller uses a threshold
* Changed threshold for L trig to around 33%
Changed threshold based on feedback
* Added gGamecubeControllerPort
* fixed wrong check
Co-authored-by: Reonu <danileon95@gmail.com>
* Implemented new lightweight CPU/RDP profiler
* Added RSP profiling to the lightweight profiler
* Added CPU audio to lightweight profiler
* Changed lingering manual light struct definitions to gdSPDefLights1, made a dummy light for Koopa's pink shorts
* Ran script to convert all light commands to lightcolor commands
* Added define guards for the profiler
* Wrote function for setting up global light direction in the frame
* Moved camera matrix into projection stack
* Corrected cameraToObject for the new matrix stack (fixes culling and sound)
* Fixed billboarding with new matrix stack
* Fixed shadows with new matrix stack
* Fixed some areas where the game was previously extracting the camera matrix from various matrices
* Restored vanilla light and env map directions under new matrix stack
* Fix goddard crash
* Fix geo_process_level_of_detail
* Remove 'construct_float' from 'geo_process_level_of_detail'
* Removed some accidentally added files
* Removed unnecessary matrix multiplications in geo_process_object
* Added fixlights script to build system for fixing custom assets and added option to disable it if needed
* Fixed visual debug with new matstack and cleaned up visual debug code
* Fixed handling of WORLD_SCALE in view matrix so it doesn't get cancelled out
* Fixed clip planes not scaling based on WORLD_SCALE
Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
Co-authored-by: Arceveti <arceveti@gmail.com>
Co-authored-by: thecozies <collinpferguson@gmail.com>