2023-09-20 16:50:12 +00:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
2023-09-17 20:47:31 +00:00
|
|
|
|
2024-01-12 11:42:22 +00:00
|
|
|
// toggle these in decompile
|
2024-04-29 23:25:47 +00:00
|
|
|
|
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
|
2024-04-29 23:25:47 +00:00
|
|
|
//#define USE_RANDOM // Requires HIGH1P: Character Randomizer
|
2024-11-26 02:47:46 +00:00
|
|
|
//#define USE_ONLINE // Requires HIGH1P: Online Multiplayer
|
2024-04-29 23:25:47 +00:00
|
|
|
//#define USE_HIGHMP // Requires RAMEX: Multiplayer Maxed mod
|
|
|
|
|
|
|
|
//#define USE_VR // Virtual Reality
|
|
|
|
|
2024-06-05 05:02:46 +00:00
|
|
|
#ifdef USE_ONLINE
|
2024-07-21 00:07:40 +00:00
|
|
|
//#define USE_60FPS
|
2024-06-20 04:38:48 +00:00
|
|
|
#define USE_BOOSTBAR
|
2024-06-05 05:02:46 +00:00
|
|
|
#define USE_16BY9
|
|
|
|
#define USE_RAMEX
|
|
|
|
#define USE_BIGQUEUE
|
OnlineCTR v1020 (#194)
* onlinectr v1020 initial commit. some singleplayer testing seems to work, need to integrate with launcher, more multiplayer testing, update hosted assets, notify server hosts, write discord announcement.
* add back gpu defer.
* fix "load" screen crash when pressing select.
* Enable items on page 2.
* retrofueled working
* collisions no longer happen in itemless rooms.
* remove gpu defer
* disable online beta mode, fix launcher not applying settings.ini correctly.
* fix domain target
* bump launcher version
* some more testing, remove dead code, spectator mode now has player name at bottom of screen instead of jittery names3d
* special case to allow v1020 clients to connect to v1019 servers (they're compatible), change filehost domain, reduce client.exe startup delay by 2s
* uncomment USE_ONLINE from the merge.
* update filehost back to www.online-ctr.com
2024-11-02 14:08:06 +00:00
|
|
|
#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
|
2024-01-12 11:42:22 +00:00
|
|
|
|
|
|
|
#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)
|
2024-01-12 11:42:22 +00:00
|
|
|
#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>
|
2024-07-07 23:47:44 +00:00
|
|
|
#include <ctr_math.h>
|
2024-11-26 02:42:21 +00:00
|
|
|
|
|
|
|
#ifndef REBUILD_PC
|
2024-07-07 23:47:44 +00:00
|
|
|
#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-08 01:23:19 +00:00
|
|
|
|
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
|
2023-04-09 01:51:34 +00:00
|
|
|
#include <functions.h>
|
2023-11-06 22:00:54 +00:00
|
|
|
#endif
|
|
|
|
|
2023-09-20 16:50:12 +00:00
|
|
|
#include <decomp_functions.h>
|
2023-06-28 18:02:06 +00:00
|
|
|
#include <gpu.h>
|
2023-09-20 16:50:12 +00:00
|
|
|
|
|
|
|
#endif
|