Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/include/config.h
7854 views
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)
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)
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)
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)
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)
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)
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)
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)
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)
31
/// Fixes bug where Bowser would look weird while fading out
32
#define BUGFIX_BOWSER_FADING_OUT (0 || VERSION_US || VERSION_EU || VERSION_SH)
33
34
// Support Rumble Pak
35
#define ENABLE_RUMBLE 1
36
37
// Screen Size Defines
38
#define SCREEN_WIDTH 320
39
#define SCREEN_HEIGHT 240
40
41
// Border Height Define for NTSC Versions
42
#ifdef TARGET_N64
43
#ifndef VERSION_EU
44
#define BORDER_HEIGHT 8
45
#else
46
#define BORDER_HEIGHT 1
47
#endif
48
#else
49
// What's the point of having a border?
50
#define BORDER_HEIGHT 0
51
#endif
52
53
#endif // CONFIG_H
54
55