Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/Dummy/DummyCore.hpp
1174 views
1
#if RETRO_REV02
2
3
// This is the "dummy" struct, it serves as the base in the event a suitable API isn't loaded (such as in this decomp)
4
// This struct should never be removed, other structs such as "SteamUserCore" would be added and "userCore" would be set to that instead
5
struct DummyCore : UserCore {
6
DummyCore()
7
{
8
// are sonic mania plus features enabled?
9
values[0] = false;
10
valueCount = 1;
11
12
#if !RSDK_AUTOBUILD
13
// enable dlc
14
for (int32 v = 0; v < valueCount; ++v) values[v] = true;
15
#endif
16
}
17
18
void StageLoad();
19
bool32 CheckFocusLost();
20
int32 GetUserLanguage();
21
int32 GetUserRegion();
22
int32 GetUserPlatform();
23
bool32 GetConfirmButtonFlip();
24
void LaunchManual();
25
void ExitGame();
26
int32 GetDefaultGamepadType();
27
bool32 IsOverlayEnabled(uint32 overlay) { return false; }
28
#if RETRO_VER_EGS
29
bool32 CanShowExtensionOverlay(int32 overlay)
30
{
31
PrintLog(PRINT_POPUP, "Can Show Extension Overlay?: %d", overlay);
32
return true;
33
}
34
bool32 ShowExtensionOverlay(int32 overlay)
35
{
36
PrintLog(PRINT_POPUP, "Show Extension Overlay: %d", overlay);
37
return true;
38
}
39
bool32 CanShowAltExtensionOverlay(int32 overlay)
40
{
41
PrintLog(PRINT_POPUP, "Can Show Alternate Extension Overlay?: %d", overlay);
42
return false;
43
}
44
bool32 ShowAltExtensionOverlay(int32 overlay)
45
{
46
PrintLog(PRINT_POPUP, "Show Alternate Extension Overlay: %d", overlay);
47
return ShowExtensionOverlay(overlay);
48
}
49
int32 GetConnectingStringID() { return -1; }
50
bool32 ShowLimitedVideoOptions(int32 id)
51
{
52
PrintLog(PRINT_POPUP, "Show Limited Video Options?");
53
return false;
54
}
55
void InitInputDevices() {}
56
#else
57
bool32 ShowExtensionOverlay(int32 overlay)
58
{
59
switch (overlay) {
60
default: PrintLog(PRINT_POPUP, "Show Unknown Extension Overlay: %d", overlay); break;
61
case 0: PrintLog(PRINT_POPUP, "Show Extension Overlay: %d (Plus Upsell Screen)", overlay); break;
62
}
63
64
return false;
65
}
66
#endif
67
};
68
69
extern DummyCore *dummyCore;
70
71
DummyCore *InitDummyCore();
72
73
#endif
74
75
// these are rev02 only but keeping em helps organization
76
uint32 GetAPIValueID(const char *identifier, int32 charIndex);
77
int32 GetAPIValue(uint32 id);
78
79