sm64/include/config.h

59 lines
2.4 KiB
C
Raw Permalink Normal View History

2019-10-05 15:08:05 -04:00
#ifndef CONFIG_H
#define CONFIG_H
2019-08-25 00:46:40 -04:00
/**
* @file config.h
* A catch-all file for configuring various bugfixes and other settings
* (maybe eventually) in SM64
*/
// Bug Fixes
2021-07-12 23:17:54 -04:00
// --| Post-JP Version Nintendo Bug Fixes
2019-08-25 00:46:40 -04:00
/// Fixes bug where obtaining over 999 coins sets the number of lives to 999 (or -25)
2023-08-17 08:56:02 -04:00
#define BUGFIX_MAX_LIVES (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2019-11-03 14:36:27 -05:00
/// Fixes bug where the Boss music won't fade out after defeating King Bob-omb
2023-08-17 08:56:02 -04:00
#define BUGFIX_KING_BOB_OMB_FADE_MUSIC (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
/// Fixes bug in Bob-omb Battlefield where entering a warp stops the Koopa race music
#define BUGFIX_KOOPA_RACE_MUSIC (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2019-08-25 00:46:40 -04:00
/// Fixes bug where Piranha Plants do not reset their action state when the
/// player exits their activation radius.
2023-08-17 08:56:02 -04:00
#define BUGFIX_PIRANHA_PLANT_STATE_RESET (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2019-08-25 00:46:40 -04:00
/// Fixes bug where sleeping Piranha Plants damage players that bump into them
2023-08-17 08:56:02 -04:00
#define BUGFIX_PIRANHA_PLANT_SLEEP_DAMAGE (0 || VERSION_US || VERSION_SH || VERSION_CN)
2019-08-25 00:46:40 -04:00
/// Fixes bug where it shows a star when you grab a key in bowser battle stages
2023-08-17 08:56:02 -04:00
#define BUGFIX_STAR_BOWSER_KEY (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2021-07-12 23:17:54 -04:00
/// Fixes bug that enables Mario in time stop even if is not ready to speak
2023-08-17 08:56:02 -04:00
#define BUGFIX_DIALOG_TIME_STOP (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2021-10-14 15:25:30 -04:00
/// Fixes bug that causes Mario to still collide with Bowser in BitS after his defeat
2023-08-17 08:56:02 -04:00
#define BUGFIX_BOWSER_COLLIDE_BITS_DEAD (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2021-07-12 23:17:54 -04:00
/// Fixes bug where Bowser wouldn't reset his speed when fallen off (and adds missing checks)
2023-08-17 08:56:02 -04:00
#define BUGFIX_BOWSER_FALLEN_OFF_STAGE (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2021-07-12 23:17:54 -04:00
/// Fixes bug where Bowser would look weird while fading out
2023-08-17 08:56:02 -04:00
#define BUGFIX_BOWSER_FADING_OUT (0 || VERSION_US || VERSION_EU || VERSION_SH || VERSION_CN)
2021-07-12 23:17:54 -04:00
// Support Rumble Pak
2023-08-17 08:56:02 -04:00
#define ENABLE_RUMBLE (0 || VERSION_SH || VERSION_CN)
2019-08-25 00:46:40 -04:00
2019-10-05 15:08:05 -04:00
// Screen Size Defines
2019-08-25 00:46:40 -04:00
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
2023-08-17 08:56:02 -04:00
// Stack Size Defines
#define IDLE_STACKSIZE 0x800
#define STACKSIZE 0x2000
#define UNUSED_STACKSIZE 0x1400
2019-10-05 15:08:05 -04:00
// Border Height Define for NTSC Versions
2020-06-02 12:44:34 -04:00
#ifdef TARGET_N64
2020-02-03 00:51:26 -05:00
#ifndef VERSION_EU
2019-08-25 00:46:40 -04:00
#define BORDER_HEIGHT 8
2020-02-03 00:51:26 -05:00
#else
#define BORDER_HEIGHT 1
#endif
2020-06-02 12:44:34 -04:00
#else
// What's the point of having a border?
#define BORDER_HEIGHT 0
2019-08-25 00:46:40 -04:00
#endif
2020-06-02 12:44:34 -04:00
#endif // CONFIG_H