Path: blob/master/SonicMania/Game.h
338 views
#ifndef GAME_H1#define GAME_H23// =====================================================================4// RSDK Project: Sonic Mania (Plus)5// Decompiled by: Rubberduckycooly & RMGRich6// =====================================================================78// -------------------------9// ENGINE VERSIONS10// -------------------------1112#ifndef RETRO_REVISION13#define RETRO_REVISION (3)14#endif1516#define RETRO_REV01 (RETRO_REVISION == 1)1718// RSDKv5 was revised & updated for plus onwards19// this is basically the same functionality as "MANIA_USE_PLUS"20// but I split this one to be more specific about engine changes vs game changes21#define RETRO_REV02 (RETRO_REVISION >= 2)2223// RSDKv5 was revised & updated to v5U for sonic origins24// enabling this will add the RSDKv5U funcs and allow this to run properly on that engine ver25#define RETRO_REV0U (RETRO_REVISION >= 3)262728// Controls whether EditorLoad & EditorDraw should be included in the final product or not29// This is a copy of what the original game likely had, as the original game does not include EditorLoad or EditorDraw funcs for any objects30#ifndef GAME_INCLUDE_EDITOR31#ifdef RETRO_INCLUDE_EDITOR32#define GAME_INCLUDE_EDITOR RETRO_INCLUDE_EDITOR33#else34#define GAME_INCLUDE_EDITOR (1)35#endif36#endif3738#ifndef RETRO_USE_MOD_LOADER39#define RETRO_USE_MOD_LOADER (1)40#endif4142#ifndef RETRO_MOD_LOADER_VER43#define RETRO_MOD_LOADER_VER (2)44#endif4546// -------------------------47// GAME VERSIONS48// -------------------------4950#define VER_100 (0) // 1.00 (initial console release)51#define VER_103 (3) // 1.03 (PC release/console patch)52#define VER_105 (5) // 1.04/1.05 (mania plus release)53#define VER_106 (6) // 1.06 (steam denuvo removal update)54#define VER_107 (7) // 1.07 (EGS/Origin releases)5556#if MANIA_PREPLUS5758#if MANIA_FIRST_RELEASE5960#undef GAME_VERSION61#define GAME_VERSION VER_10062#undef RETRO_REVISION63#define RETRO_REVISION (1)6465#else6667#undef GAME_VERSION68#define GAME_VERSION VER_10369#undef RETRO_REVISION70#define RETRO_REVISION (1)7172#endif7374#else7576#ifndef GAME_VERSION77#define GAME_VERSION VER_10678#endif7980#endif8182#define MANIA_USE_PLUS (GAME_VERSION >= VER_105)83#define MANIA_USE_EGS (GAME_VERSION == VER_107)8485// -------------------------86// GAME LOGIC87// -------------------------8889#include "GameLink.h"90#include "GameVariables.h"91#include "GameObjects.h"9293#endif //! GAME_H949596