2021-12-30 10:57:51 -06:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/*****************************
|
|
|
|
|
* COMPATIBILITY SAFE GUARDS *
|
|
|
|
|
*****************************/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* NOTE: Only mess with these if you know what you're doing!
|
|
|
|
|
* These are put in place to insure that connected functionality works as intended.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2022-02-25 05:11:16 -05:00
|
|
|
/*****************
|
2022-06-28 12:43:02 -07:00
|
|
|
* config_audio.h
|
2022-02-25 05:11:16 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MAX_SIMULTANEOUS_NOTES_EMULATOR
|
|
|
|
|
#ifdef EXPAND_AUDIO_HEAP
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES_EMULATOR 40
|
|
|
|
|
#else
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES_EMULATOR 20
|
|
|
|
|
#endif
|
|
|
|
|
#endif // MAX_SIMULTANEOUS_NOTES_EMULATOR
|
|
|
|
|
|
|
|
|
|
#ifndef MAX_SIMULTANEOUS_NOTES_CONSOLE
|
|
|
|
|
#ifdef EXPAND_AUDIO_HEAP
|
2022-02-26 03:01:08 -05:00
|
|
|
#define MAX_SIMULTANEOUS_NOTES_CONSOLE 24
|
2022-02-25 05:11:16 -05:00
|
|
|
#else
|
2022-02-26 03:01:08 -05:00
|
|
|
#define MAX_SIMULTANEOUS_NOTES_CONSOLE 16
|
2022-02-25 05:11:16 -05:00
|
|
|
#endif
|
|
|
|
|
#endif // MAX_SIMULTANEOUS_NOTES_CONSOLE
|
|
|
|
|
|
|
|
|
|
#if (MAX_SIMULTANEOUS_NOTES_EMULATOR >= MAX_SIMULTANEOUS_NOTES_CONSOLE)
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES MAX_SIMULTANEOUS_NOTES_EMULATOR
|
|
|
|
|
#else
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES MAX_SIMULTANEOUS_NOTES_CONSOLE
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Anything higher than 64 will most likely crash on boot. Even if it doesn't, it's still dangerous.
|
|
|
|
|
#if (MAX_SIMULTANEOUS_NOTES > 64)
|
|
|
|
|
#undef MAX_SIMULTANEOUS_NOTES
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES 64
|
2022-02-26 01:56:07 -05:00
|
|
|
#elif (MAX_SIMULTANEOUS_NOTES < 0)
|
|
|
|
|
#undef MAX_SIMULTANEOUS_NOTES
|
|
|
|
|
#define MAX_SIMULTANEOUS_NOTES 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(BETTER_REVERB) && !(defined(VERSION_US) || defined(VERSION_JP))
|
|
|
|
|
#undef BETTER_REVERB
|
2022-02-25 05:11:16 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2021-12-30 10:57:51 -06:00
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_graphics.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
2022-01-14 22:13:40 -05:00
|
|
|
#ifndef F3DEX_GBI_2
|
|
|
|
|
#undef OBJECTS_REJ // OBJECTS_REJ requires f3dex2.
|
|
|
|
|
#endif // !F3DEX_GBI_2
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#ifndef F3DEX_GBI_SHARED
|
|
|
|
|
#undef OBJECTS_REJ // Non F3DEX-based ucodes do NOT support ucode switching.
|
|
|
|
|
#endif // !F3DEX_GBI_SHARED
|
|
|
|
|
|
|
|
|
|
#ifdef OBJECTS_REJ
|
2022-01-21 20:00:25 -08:00
|
|
|
// Enable required ucodes.
|
2021-12-30 10:57:51 -06:00
|
|
|
#define F3DEX2_REJ_GBI
|
|
|
|
|
#define F3DLX2_REJ_GBI
|
|
|
|
|
#endif // OBJECTS_REJ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_debug.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
2022-05-01 00:42:58 -04:00
|
|
|
#ifdef DISABLE_ALL
|
|
|
|
|
#undef DEBUG_ALL
|
2023-12-11 01:58:30 -05:00
|
|
|
#undef USE_PROFILER
|
2022-05-01 00:42:58 -04:00
|
|
|
#undef TEST_LEVEL
|
|
|
|
|
#undef DEBUG_LEVEL_SELECT
|
|
|
|
|
#undef ENABLE_DEBUG_FREE_MOVE
|
|
|
|
|
#undef PUPPYPRINT_DEBUG
|
|
|
|
|
#undef PUPPYPRINT_DEBUG_CYCLES
|
2023-12-11 01:58:30 -05:00
|
|
|
#undef VANILLA_STYLE_CUSTOM_DEBUG
|
2022-05-01 00:42:58 -04:00
|
|
|
#undef VISUAL_DEBUG
|
2021-12-30 10:57:51 -06:00
|
|
|
#undef UNLOCK_ALL
|
2022-05-01 00:42:58 -04:00
|
|
|
#undef COMPLETE_SAVE_FILE
|
2023-12-11 01:58:30 -05:00
|
|
|
#undef UNLOCK_FPS
|
|
|
|
|
#undef VANILLA_DEBUG
|
2022-05-01 00:42:58 -04:00
|
|
|
#undef DEBUG_FORCE_CRASH_ON_BOOT
|
2023-12-11 01:58:30 -05:00
|
|
|
#undef DEBUG_ASSERTIONS
|
2022-05-01 00:42:58 -04:00
|
|
|
#endif // DISABLE_ALL
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#ifdef DEBUG_ALL
|
2023-12-11 01:58:30 -05:00
|
|
|
#undef USE_PROFILER
|
|
|
|
|
#define USE_PROFILER
|
|
|
|
|
|
2021-12-30 10:57:51 -06:00
|
|
|
#undef DEBUG_LEVEL_SELECT
|
|
|
|
|
#define DEBUG_LEVEL_SELECT
|
|
|
|
|
|
|
|
|
|
#undef ENABLE_DEBUG_FREE_MOVE
|
|
|
|
|
#define ENABLE_DEBUG_FREE_MOVE
|
|
|
|
|
|
|
|
|
|
#undef PUPPYPRINT
|
|
|
|
|
#define PUPPYPRINT
|
|
|
|
|
|
|
|
|
|
#undef PUPPYPRINT_DEBUG
|
2023-03-12 16:29:08 +00:00
|
|
|
#define PUPPYPRINT_DEBUG
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#undef VISUAL_DEBUG
|
|
|
|
|
#define VISUAL_DEBUG
|
|
|
|
|
|
|
|
|
|
#undef UNLOCK_ALL
|
|
|
|
|
#define UNLOCK_ALL
|
|
|
|
|
|
|
|
|
|
#undef COMPLETE_SAVE_FILE
|
|
|
|
|
#define COMPLETE_SAVE_FILE
|
2023-12-11 01:58:30 -05:00
|
|
|
|
|
|
|
|
#undef DEBUG_ASSERTIONS
|
|
|
|
|
#define DEBUG_ASSERTIONS
|
2021-12-30 10:57:51 -06:00
|
|
|
#endif // DEBUG_ALL
|
|
|
|
|
|
2022-05-01 00:42:58 -04:00
|
|
|
#ifdef PUPPYPRINT_DEBUG
|
|
|
|
|
#undef PUPPYPRINT
|
|
|
|
|
#define PUPPYPRINT
|
|
|
|
|
#undef USE_PROFILER
|
|
|
|
|
#define USE_PROFILER
|
|
|
|
|
#endif // PUPPYPRINT_DEBUG
|
|
|
|
|
|
|
|
|
|
#ifdef COMPLETE_SAVE_FILE
|
2021-12-30 10:57:51 -06:00
|
|
|
#undef UNLOCK_ALL
|
2022-05-01 00:42:58 -04:00
|
|
|
#define UNLOCK_ALL
|
|
|
|
|
#endif // COMPLETE_SAVE_FILE
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_camera.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef FORCED_CAMERA_MODE
|
|
|
|
|
#undef USE_COURSE_DEFAULT_MODE
|
2022-01-21 20:00:25 -08:00
|
|
|
#define USE_COURSE_DEFAULT_MODE // Forced camera mode overwrites the default mode.
|
|
|
|
|
#endif // FORCED_CAMERA_MODE
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#ifndef WATER_SURFACE_CAMERA_MODE
|
|
|
|
|
#define WATER_SURFACE_CAMERA_MODE CAMERA_MODE_WATER_SURFACE
|
2022-01-21 20:00:25 -08:00
|
|
|
#endif // !WATER_SURFACE_CAMERA_MODE
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#ifndef DEEP_WATER_CAMERA_MODE
|
|
|
|
|
#define DEEP_WATER_CAMERA_MODE CAMERA_MODE_BEHIND_MARIO
|
2022-01-21 20:00:25 -08:00
|
|
|
#endif // !DEEP_WATER_CAMERA_MODE
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
#ifndef FLYING_CAMERA_MODE
|
|
|
|
|
#define FLYING_CAMERA_MODE CAMERA_MODE_BEHIND_MARIO
|
2022-01-21 20:00:25 -08:00
|
|
|
#endif // !FLYING_CAMERA_MODE
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_game.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef START_LEVEL
|
|
|
|
|
#define START_LEVEL LEVEL_CASTLE_GROUNDS
|
2022-01-21 20:00:25 -08:00
|
|
|
#endif // !START_LEVEL
|
2021-12-30 10:57:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_goddard.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef KEEP_MARIO_HEAD
|
|
|
|
|
#undef GODDARD_EASTER_EGG
|
|
|
|
|
|
|
|
|
|
#undef DISABLE_DEMO
|
|
|
|
|
#define DISABLE_DEMO
|
|
|
|
|
#endif // !KEEP_MARIO_HEAD
|
|
|
|
|
|
2022-01-21 20:00:25 -08:00
|
|
|
|
2021-12-30 10:57:51 -06:00
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_menu.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef DISABLE_EXIT_COURSE
|
|
|
|
|
#undef EXIT_COURSE_WHILE_MOVING
|
|
|
|
|
#undef EXIT_COURSE_LEVEL
|
|
|
|
|
#undef EXIT_COURSE_AREA
|
|
|
|
|
#undef EXIT_COURSE_NODE
|
|
|
|
|
#endif // DISABLE_EXIT_COURSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_objects.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
2022-01-21 20:00:25 -08:00
|
|
|
// Enable floombas if the intro floombas are enabled.
|
2021-12-30 10:57:51 -06:00
|
|
|
#ifdef INTRO_FLOOMBAS
|
|
|
|
|
#undef FLOOMBAS
|
|
|
|
|
#define FLOOMBAS
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************
|
2022-01-21 20:00:25 -08:00
|
|
|
* config_rom.h
|
2021-12-30 10:57:51 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TARGET_N64
|
|
|
|
|
#undef BORDER_HEIGHT_CONSOLE
|
|
|
|
|
#define BORDER_HEIGHT_CONSOLE 0
|
|
|
|
|
|
|
|
|
|
#undef BORDER_HEIGHT_EMULATOR
|
|
|
|
|
#define BORDER_HEIGHT_EMULATOR 0
|
|
|
|
|
#endif // !TARGET_N64
|