CTR-ModSDK/include/common.h

131 lines
2.9 KiB
C
Raw Permalink Normal View History

#ifndef COMMON_H
#define COMMON_H
2023-09-17 20:47:31 +00:00
// toggle these in decompile
2024-10-14 19:16:47 +00:00
//#define USE_60FPS // 60 frames per second
//#define USE_16BY9 // Widescreen
2024-05-08 07:21:19 +00:00
//#define USE_NEW2P // Requires 16BY9: Side-By-Side 2P
//#define USE_OXIDE // Unlock Oxide
//#define USE_PENTA // Penta Max Stats
//#define USE_HARDER // Difficulty Selector (Arcade)
//#define USE_NEWCUPS // Cup Randomizer
//#define USE_BOOSTBAR // Super's reserve bar
2024-05-10 13:10:16 +00:00
//#define USE_RAMEX // 8mb RAM expansion
//#define USE_BIGQUEUE // Requires RAMEX: Extended loading queue
//#define USE_HIGH1P // Requires BIGQUEUE: All high model drivers
//#define USE_RANDOM // Requires HIGH1P: Character Randomizer
2024-11-26 02:47:46 +00:00
//#define USE_ONLINE // Requires HIGH1P: Online Multiplayer
//#define USE_HIGHMP // Requires RAMEX: Multiplayer Maxed mod
//#define USE_VR // Virtual Reality
2024-06-05 05:02:46 +00:00
#ifdef USE_ONLINE
//#define USE_60FPS
#define USE_BOOSTBAR
2024-06-05 05:02:46 +00:00
#define USE_16BY9
#define USE_RAMEX
#define USE_BIGQUEUE
#define USE_HIGH1P
//note: if you disable this, you'll need to fix anything related to the `ROOM_...` defines in global.h
#define USE_RETROFUELED //enabled only in certain rooms.
2024-06-05 05:02:46 +00:00
#endif
#ifdef USE_60FPS
2024-10-14 19:16:13 +00:00
#define USE_HIGH1P // patch LODs
2024-01-13 02:31:58 +00:00
#define FPS_DOUBLE(x) ((x)*2)
#define FPS_HALF(x) ((x)/2)
#define FPS_LEFTSHIFT(x) ((x)-1)
#define FPS_RIGHTSHIFT(x) ((x)+1)
#else
#define FPS_DOUBLE(x) (x)
#define FPS_HALF(x) (x)
#define FPS_LEFTSHIFT(x) (x)
#define FPS_RIGHTSHIFT(x) (x)
#endif
2024-01-13 23:16:09 +00:00
// WIDE_PICK:
// param1 - normal
// param2 - widescreen
#ifdef USE_16BY9
2024-10-14 19:16:13 +00:00
#define WIDE_34(x) ((((x)*750))/1000)
2024-01-13 23:16:09 +00:00
#define WIDE_PICK(x,y) (y)
#else
2024-06-20 00:25:42 +00:00
#define WIDE_34(x) (x)
2024-01-13 23:16:09 +00:00
#define WIDE_PICK(x,y) (x)
#endif
2023-11-06 22:00:54 +00:00
#ifndef REBUILD_PC
2023-03-25 00:11:23 +00:00
#include <gccHeaders.h>
2023-11-06 22:00:54 +00:00
#endif
2023-03-25 00:11:23 +00:00
#include <macros.h>
#include <ctr_math.h>
2024-11-26 02:42:21 +00:00
#ifndef REBUILD_PC
#include <ctr_gte.h>
2024-11-26 02:42:21 +00:00
#endif
2024-06-20 00:25:42 +00:00
#include <prim.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// =============================
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// Alphabetical order was rearranged
2024-06-20 00:25:42 +00:00
// so that the PCH file can be built
2023-03-25 00:11:23 +00:00
// properly. In the end this should
// be fixed so they can be alphabetical
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// =============================
2023-02-08 04:08:13 +00:00
2023-03-25 00:11:23 +00:00
#include <namespace_Bots.h>
#include <namespace_Camera.h>
#include <namespace_Cdsys.h>
#include <namespace_Coll.h>
#include <namespace_Decal.h>
#include <namespace_Display.h>
#include <namespace_Gamepad.h>
2023-08-07 02:01:59 +00:00
#include <namespace_Ghost.h>
2023-03-25 00:11:23 +00:00
#include <namespace_Howl.h>
#include <namespace_Instance.h>
2023-03-07 18:54:55 +00:00
2023-03-25 00:11:23 +00:00
// jitpool should be here
2023-03-25 00:11:23 +00:00
#include <namespace_Level.h>
#include <namespace_List.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// should not be here
#include <namespace_JitPool.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
#include <namespace_Load.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// main should be here
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
#include <namespace_Memcard.h>
#include <namespace_Mempack.h>
2022-08-23 18:24:09 +00:00
2024-03-31 13:53:29 +00:00
#include <namespace_Particle.h>
#include <namespace_Proc.h>
#include <namespace_PushBuffer.h>
#include <namespace_RectMenu.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
// should not be here
#include <namespace_Main.h>
2022-08-23 18:24:09 +00:00
2023-03-25 00:11:23 +00:00
#include <namespace_UI.h>
#include <namespace_Vehicle.h>
#include <ovr_230.h>
#include <ovr_231.h>
#include <ovr_232.h>
#include <ovr_233.h>
#include <regionsEXE.h>
2023-11-06 22:00:54 +00:00
#ifndef REBUILD_PC
#include <functions.h>
2023-11-06 22:00:54 +00:00
#endif
#include <decomp_functions.h>
#include <gpu.h>
#endif