Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Rubberduckycooly
GitHub Repository: Rubberduckycooly/RSDKv5-Decompilation
Path: blob/master/RSDKv5/RSDK/User/NX/NXCore.hpp
1174 views
1
#if RETRO_REV02
2
3
struct NXCore : UserCore {
4
void FrameInit();
5
bool32 CheckAPIInitialized() { return true; }
6
bool32 CheckFocusLost() { return focusState != AppletFocusState_InFocus; }
7
bool32 CheckEnginePause() { return false; }
8
int32 GetUserLanguage()
9
{
10
printf("desiredLanguage: %s\n", "en");
11
// get system language
12
return LANGUAGE_EN;
13
}
14
int32 GetUserRegion() { return REGION_US; }
15
int32 GetUserPlatform() { return PLATFORM_SWITCH; }
16
bool32 GetConfirmButtonFlip() { return true; }
17
void LaunchManual()
18
{
19
const char *manualURL = "";
20
switch (curSKU.language) {
21
default:
22
case LANGUAGE_EN: manualURL = "https://www.sonicthehedgehog.com/mania/manual/en/"; break;
23
case LANGUAGE_FR: manualURL = "https://www.sonicthehedgehog.com/mania/manual/fr/"; break;
24
case LANGUAGE_IT: manualURL = "https://www.sonicthehedgehog.com/mania/manual/it/"; break;
25
case LANGUAGE_GE: manualURL = "https://www.sonicthehedgehog.com/mania/manual/de/"; break;
26
case LANGUAGE_SP: manualURL = "https://www.sonicthehedgehog.com/mania/manual/es/"; break;
27
case LANGUAGE_JP: manualURL = "https://manual.sega.jp/sonicmania/"; break;
28
case LANGUAGE_KO: manualURL = "https://manual.sega.jp/sonicmania/kr/"; break;
29
case LANGUAGE_SC: manualURL = "https://manual.sega.jp/sonicmania/ct/"; break;
30
case LANGUAGE_TC: manualURL = "https://www.sonicthehedgehog.com/mania/manual/en/"; break;
31
}
32
33
// open manualURL
34
}
35
int32 GetDefaultGamepadType() { return (DEVICE_API_NONE << 16) | (DEVICE_TYPE_CONTROLLER << 8) | (DEVICE_SWITCH_PRO << 0); }
36
bool32 IsOverlayEnabled(uint32 deviceID) { return false; }
37
bool32 CheckDLC(uint8 id)
38
{
39
// check we have the DLC
40
return false;
41
}
42
bool32 ShowExtensionOverlay(uint8 overlay)
43
{
44
// open plus DLC page
45
return true;
46
}
47
};
48
49
NXCore *InitNXCore();
50
#endif
51
52