Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 41 additions & 17 deletions src/include/settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,53 @@

#include <gctypes.h>

// whether to display the on-screen display by default
#define OSD_DEFAULT true

// whether to display the loads by default
#define LOADS_DEFAULT false

// whether to display the items in the monitor window by default
#define MONITOR_DEFAULT true

// whether to display the memory window by default
#define MEMORY_DEFAULT false

// whether to display the inputs by default
#define INPUT_DEFAULT true

#ifdef DEBUG
#define DEBUG_TRUE true
#else
#define DEBUG_TRUE false
#undef LOADS_DEFAULT
#define LOADS_DEFAULT true
#endif

struct Settings {
bool OSD_show : 1 {true};
bool OSD_showFrameTime : 1 {false};
bool OSD_showMemoryInfo : 1 {false};
bool OSD_showMemoryGraph : 1 {false};
bool OSD_showInput : 1 {true};
bool OSD_showVelocity : 1 {true};
bool OSD_showRotationalVelocity : 1 {false};
bool OSD_showPos : 1 {true};
bool OSD_showIGT : 1 {true};
bool OSD_showCurrentRoomTime : 1 {true};
bool OSD_showPreviousRoomTime : 1 {true};
bool OSD_showLoads : 1 {DEBUG_TRUE};
bool OSD_showJumpState : 1 {false};
#ifdef RANDOMIZER
#undef OSD_DEFAULT
#define OSD_DEFAULT false
#endif

struct Settings {
bool OSD_show : 1 {OSD_DEFAULT};
bool OSD_showFrameTime : 1 {MONITOR_DEFAULT && false};
bool OSD_showMemoryInfo : 1 {MEMORY_DEFAULT && false};
bool OSD_showMemoryGraph : 1 {MEMORY_DEFAULT && false};
bool OSD_showInput : 1 {INPUT_DEFAULT};
bool OSD_showVelocity : 1 {MONITOR_DEFAULT && true};
bool OSD_showRotationalVelocity : 1 {MONITOR_DEFAULT && false};
bool OSD_showPos : 1 {MONITOR_DEFAULT && true};
bool OSD_showIGT : 1 {MONITOR_DEFAULT && true};
bool OSD_showCurrentRoomTime : 1 {MONITOR_DEFAULT && true};
bool OSD_showPreviousRoomTime : 1 {MONITOR_DEFAULT && true};
bool OSD_showLoads : 1 {LOADS_DEFAULT};
bool OSD_showJumpState : 1 {MONITOR_DEFAULT && false};

bool RNG_lockSeed{false};
};

extern Settings SETTINGS;

#undef OSD_DEFAULT
#undef LOADS_DEFAULT
#undef MONITOR_DEFAULT
#undef MEMORY_DEFAULT
#undef INPUT_DEFAULT