Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/EOS/EOSCore.hpp
1168 views
1
#if RETRO_REV02
2
3
struct EOSCore : UserCore {
4
void Shutdown()
5
{
6
// closes EGS API
7
}
8
bool32 CheckAPIInitialized()
9
{
10
// check if EGS is running
11
return true;
12
}
13
void FrameInit()
14
{
15
UserCore::StageLoad();
16
// runs EGS callbacks
17
}
18
int32 GetUserLanguage()
19
{
20
// gets the language from EGS
21
return LANGUAGE_EN;
22
}
23
int32 GetUserRegion() { return REGION_US; }
24
int32 GetUserPlatform() { return PLATFORM_PC; }
25
bool32 GetConfirmButtonFlip() { return false; }
26
void LaunchManual() {}
27
void ExitGame() { RenderDevice::isRunning = false; }
28
bool32 IsOverlayEnabled(uint32 overlay) { return false; }
29
30
bool32 SetupExtensionOverlay()
31
{
32
// show a popup or something?
33
return true;
34
}
35
virtual bool32 CanShowExtensionOverlay(int32 overlay) { return false; }
36
virtual bool32 ShowExtensionOverlay(int32 overlay)
37
{
38
// do some EGS api stuff
39
return true;
40
}
41
virtual bool32 CanShowAltExtensionOverlay(int32 overlay) { return true; }
42
virtual bool32 ShowAltExtensionOverlay(int32 overlay)
43
{
44
// show the user: https://store.epicgames.com/en-US/p/sonic-mania--encore-dlc
45
return true;
46
}
47
int32 GetConnectingStringID()
48
{
49
return 68; // STR_CONNECTEGS
50
}
51
virtual bool32 ShowLimitedVideoOptions(int32 id) { return false; }
52
void InitInputDevices() { RSDK::InitInputDevices(); }
53
};
54
55
EOSCore *InitEOSCore();
56
#endif
57
58