Path: blob/master/RSDKv5/RSDK/User/NX/NXCore.hpp
1174 views
#if RETRO_REV0212struct NXCore : UserCore {3void FrameInit();4bool32 CheckAPIInitialized() { return true; }5bool32 CheckFocusLost() { return focusState != AppletFocusState_InFocus; }6bool32 CheckEnginePause() { return false; }7int32 GetUserLanguage()8{9printf("desiredLanguage: %s\n", "en");10// get system language11return LANGUAGE_EN;12}13int32 GetUserRegion() { return REGION_US; }14int32 GetUserPlatform() { return PLATFORM_SWITCH; }15bool32 GetConfirmButtonFlip() { return true; }16void LaunchManual()17{18const char *manualURL = "";19switch (curSKU.language) {20default:21case LANGUAGE_EN: manualURL = "https://www.sonicthehedgehog.com/mania/manual/en/"; break;22case LANGUAGE_FR: manualURL = "https://www.sonicthehedgehog.com/mania/manual/fr/"; break;23case LANGUAGE_IT: manualURL = "https://www.sonicthehedgehog.com/mania/manual/it/"; break;24case LANGUAGE_GE: manualURL = "https://www.sonicthehedgehog.com/mania/manual/de/"; break;25case LANGUAGE_SP: manualURL = "https://www.sonicthehedgehog.com/mania/manual/es/"; break;26case LANGUAGE_JP: manualURL = "https://manual.sega.jp/sonicmania/"; break;27case LANGUAGE_KO: manualURL = "https://manual.sega.jp/sonicmania/kr/"; break;28case LANGUAGE_SC: manualURL = "https://manual.sega.jp/sonicmania/ct/"; break;29case LANGUAGE_TC: manualURL = "https://www.sonicthehedgehog.com/mania/manual/en/"; break;30}3132// open manualURL33}34int32 GetDefaultGamepadType() { return (DEVICE_API_NONE << 16) | (DEVICE_TYPE_CONTROLLER << 8) | (DEVICE_SWITCH_PRO << 0); }35bool32 IsOverlayEnabled(uint32 deviceID) { return false; }36bool32 CheckDLC(uint8 id)37{38// check we have the DLC39return false;40}41bool32 ShowExtensionOverlay(uint8 overlay)42{43// open plus DLC page44return true;45}46};4748NXCore *InitNXCore();49#endif505152