mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 12:01:39 +12:00
Stub AM::GetDLCTitleInfo got PMD: Gates to Infinity
This commit is contained in:
parent
708bf9f040
commit
1730ab9734
4 changed files with 11 additions and 4 deletions
|
@ -51,10 +51,9 @@ void Kernel::signalEvent() {
|
|||
const Handle handle = regs[0];
|
||||
const auto event = getObject(handle, KernelObjectType::Event);
|
||||
logSVC("SignalEvent(event handle = %X)\n", handle);
|
||||
printf("Stubbed SignalEvent!!\n");
|
||||
|
||||
if (event == nullptr) [[unlikely]] {
|
||||
Helpers::warn("Signalled non-existent event: %X\n", handle);
|
||||
logThread("Signalled non-existent event: %X\n", handle);
|
||||
regs[0] = SVCResult::Success;
|
||||
//regs[0] = SVCResult::BadHandle;
|
||||
return;
|
||||
|
|
|
@ -80,7 +80,7 @@ void Kernel::switchToNextThread() {
|
|||
std::optional<int> newThreadIndex = getNextThread();
|
||||
|
||||
if (!newThreadIndex.has_value()) {
|
||||
Helpers::warn("Kernel tried to switch to the next thread but none found. Switching to random thread\n");
|
||||
log("Kernel tried to switch to the next thread but none found. Switching to random thread\n");
|
||||
switchThread(rand() % threadCount);
|
||||
} else {
|
||||
switchThread(newThreadIndex.value());
|
||||
|
@ -308,7 +308,7 @@ bool Kernel::shouldWaitOnObject(KernelObject* object) {
|
|||
return !object->getData<Event>()->fired;
|
||||
|
||||
default:
|
||||
Helpers::warn("Not sure whether to wait on object (type: %s)", object->getTypeName());
|
||||
logThread("Not sure whether to wait on object (type: %s)", object->getTypeName());
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue