3DS: Upgrade to libctru v2.0.0
This commit is contained in:
parent
5b69df78d4
commit
4825e9f967
2 changed files with 11 additions and 12 deletions
|
@ -228,17 +228,8 @@ static void aptHookFunc(APT_HookType hookType, void *param) {
|
|||
osys->sleeping = false;
|
||||
loadConfig();
|
||||
break;
|
||||
case APTHOOK_ONEXIT: {
|
||||
if (osys->_sleepPauseToken.isActive()) {
|
||||
osys->_sleepPauseToken.clear();
|
||||
}
|
||||
|
||||
Common::StackLock lock(*eventMutex);
|
||||
Common::Event event;
|
||||
event.type = Common::EVENT_QUIT;
|
||||
g_system->getEventManager()->pushEvent(event);
|
||||
case APTHOOK_ONEXIT:
|
||||
break;
|
||||
}
|
||||
default:
|
||||
warning("Unhandled APT hook, type: %d", hookType);
|
||||
}
|
||||
|
@ -349,7 +340,15 @@ Common::KeymapperDefaultBindings *OSystem_3DS::getKeymapperDefaultBindings() {
|
|||
}
|
||||
|
||||
bool OSystem_3DS::pollEvent(Common::Event &event) {
|
||||
aptMainLoop(); // Call apt hook when necessary
|
||||
if (!aptMainLoop()) {
|
||||
// The system requested us to quit
|
||||
if (_sleepPauseToken.isActive()) {
|
||||
_sleepPauseToken.clear();
|
||||
}
|
||||
|
||||
event.type = Common::EVENT_QUIT;
|
||||
return true;
|
||||
}
|
||||
|
||||
// If magnify mode is on when returning to Launcher, turn it off
|
||||
if (_eventManager->shouldReturnToLauncher()) {
|
||||
|
|
|
@ -51,7 +51,7 @@ protected:
|
|||
uint32 _segmentHeapAddress;
|
||||
|
||||
void flushDataCache(void *ptr, uint32 len) const override {
|
||||
svcFlushProcessDataCache(CUR_PROCESS_HANDLE, ptr, len);
|
||||
svcFlushProcessDataCache(CUR_PROCESS_HANDLE, (uint32)ptr, len);
|
||||
}
|
||||
|
||||
void protectMemory(void *ptr, uint32 len, int prot) const override {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue