Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/Steam/SteamCore.hpp
1168 views
1
#if RETRO_REV02
2
3
struct SteamCore : UserCore {
4
void Shutdown()
5
{
6
// closes steam API
7
}
8
bool32 CheckAPIInitialized()
9
{
10
// check if steam is running
11
return true;
12
}
13
bool32 CheckFocusLost()
14
{
15
// return field_38;
16
return false;
17
}
18
void FrameInit()
19
{
20
UserCore::StageLoad();
21
// SteamAPI_RunCallbacks()
22
}
23
int32 GetUserLanguage()
24
{
25
// gets the language from steam
26
return LANGUAGE_EN;
27
}
28
int32 GetUserRegion() { return REGION_US; }
29
int32 GetUserPlatform() { return PLATFORM_PC; }
30
bool32 GetConfirmButtonFlip() { return false; }
31
void LaunchManual() {}
32
void ExitGame() { RenderDevice::isRunning = false; }
33
bool32 IsOverlayEnabled(uint32 overlay)
34
{
35
for (int32 i = 0; i < inputDeviceCount; ++i) {
36
if (inputDeviceList[i] && inputDeviceList[i]->id == overlay) {
37
if (((inputDeviceList[i]->gamepadType >> 16) & 0xFF) != DEVICE_API_STEAM)
38
return false;
39
40
return false; // not implemented, sorry!
41
}
42
}
43
44
return false;
45
}
46
bool32 ShowExtensionOverlay(uint8 overlay)
47
{
48
// show steam overlay
49
return true;
50
}
51
52
bool32 initialized = false;
53
};
54
55
SteamCore *InitSteamCore();
56
#endif
57
58