sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

config.h (2503B)


      1 #ifndef CONFIG_H
      2 #define CONFIG_H
      3 
      4 /**
      5  * @file config.h
      6  * A catch-all file for configuring various bugfixes and other settings
      7  * (maybe eventually) in SM64
      8  */
      9 
     10 // Bug Fixes
     11 // --| Post-JP Version Nintendo Bug Fixes
     12 /// Fixes bug where obtaining over 999 coins sets the number of lives to 999 (or -25)
     13 #define BUGFIX_MAX_LIVES (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     14 /// Fixes bug where the Boss music won't fade out after defeating King Bob-omb
     15 #define BUGFIX_KING_BOB_OMB_FADE_MUSIC (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     16 /// Fixes bug in Bob-omb Battlefield where entering a warp stops the Koopa race music
     17 #define BUGFIX_KOOPA_RACE_MUSIC (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     18 /// Fixes bug where Piranha Plants do not reset their action state when the
     19 /// player exits their activation radius.
     20 #define BUGFIX_PIRANHA_PLANT_STATE_RESET (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     21 /// Fixes bug where sleeping Piranha Plants damage players that bump into them
     22 #define BUGFIX_PIRANHA_PLANT_SLEEP_DAMAGE (0 || VERSION_US || VERSION_SH || VERSION_CN)
     23 /// Fixes bug where it shows a star when you grab a key in bowser battle stages
     24 #define BUGFIX_STAR_BOWSER_KEY (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     25 /// Fixes bug that enables Mario in time stop even if is not ready to speak
     26 #define BUGFIX_DIALOG_TIME_STOP (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     27 /// Fixes bug that causes Mario to still collide with Bowser in BitS after his defeat
     28 #define BUGFIX_BOWSER_COLLIDE_BITS_DEAD (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     29 /// Fixes bug where Bowser wouldn't reset his speed when fallen off (and adds missing checks)
     30 #define BUGFIX_BOWSER_FALLEN_OFF_STAGE (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     31 /// Fixes bug where Bowser would look weird while fading out
     32 #define BUGFIX_BOWSER_FADING_OUT (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
     33 
     34 // Support Rumble Pak
     35 #define ENABLE_RUMBLE (0 || VERSION_SH || VERSION_CN)
     36 
     37 // Screen Size Defines
     38 #define SCREEN_WIDTH 320
     39 #define SCREEN_HEIGHT 240
     40 
     41 // Stack Size Defines
     42 #define IDLE_STACKSIZE 0x800
     43 #define STACKSIZE 0x2000
     44 #define UNUSED_STACKSIZE 0x1400
     45 
     46 // Border Height Define for NTSC Versions
     47 #ifdef TARGET_N64
     48 #ifndef VERSION_EU
     49 #define BORDER_HEIGHT 8
     50 #else
     51 #define BORDER_HEIGHT 1
     52 #endif
     53 #else
     54 // What's the point of having a border?
     55 #define BORDER_HEIGHT 0
     56 #endif
     57 
     58 #endif // CONFIG_H