mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 06:05:40 +12:00
Stub CloseHandle
This commit is contained in:
parent
0fbc5f210f
commit
6219abd17a
2 changed files with 8 additions and 1 deletions
|
@ -57,6 +57,7 @@ class Kernel {
|
|||
void getResourceLimit();
|
||||
void getResourceLimitLimitValues();
|
||||
void getResourceLimitCurrentValues();
|
||||
void svcCloseHandle();
|
||||
|
||||
public:
|
||||
Kernel(std::array<u32, 16>& regs, Memory& mem) : regs(regs), mem(mem), handleCounter(0) {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
void Kernel::serviceSVC(u32 svc) {
|
||||
switch (svc) {
|
||||
case 0x21: createAddressArbiter(); break;
|
||||
case 0x23: svcCloseHandle(); break;
|
||||
case 0x38: getResourceLimit(); break;
|
||||
case 0x39: getResourceLimitLimitValues(); break;
|
||||
case 0x3A: getResourceLimitCurrentValues(); break;
|
||||
|
@ -51,12 +52,17 @@ void Kernel::reset() {
|
|||
}
|
||||
|
||||
// Result CreateAddressArbiter(Handle* arbiter)
|
||||
// out: r0 -> result
|
||||
void Kernel::createAddressArbiter() {
|
||||
printf("Stubbed call to CreateAddressArbiter. Handle address: %08X\n", regs[0]);
|
||||
regs[0] = SVCResult::Success;
|
||||
}
|
||||
|
||||
// Result CloseHandle(Handle handle)
|
||||
void Kernel::svcCloseHandle() {
|
||||
printf("CloseHandle(handle = %d) (Unimplemented)\n", regs[0]);
|
||||
regs[0] = SVCResult::Success;
|
||||
}
|
||||
|
||||
std::string Kernel::getProcessName(u32 pid) {
|
||||
if (pid == KernelHandles::CurrentProcess) {
|
||||
return "current";
|
||||
|
|
Loading…
Add table
Reference in a new issue