mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +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 getResourceLimit();
|
||||||
void getResourceLimitLimitValues();
|
void getResourceLimitLimitValues();
|
||||||
void getResourceLimitCurrentValues();
|
void getResourceLimitCurrentValues();
|
||||||
|
void svcCloseHandle();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Kernel(std::array<u32, 16>& regs, Memory& mem) : regs(regs), mem(mem), handleCounter(0) {
|
Kernel(std::array<u32, 16>& regs, Memory& mem) : regs(regs), mem(mem), handleCounter(0) {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
void Kernel::serviceSVC(u32 svc) {
|
void Kernel::serviceSVC(u32 svc) {
|
||||||
switch (svc) {
|
switch (svc) {
|
||||||
case 0x21: createAddressArbiter(); break;
|
case 0x21: createAddressArbiter(); break;
|
||||||
|
case 0x23: svcCloseHandle(); break;
|
||||||
case 0x38: getResourceLimit(); break;
|
case 0x38: getResourceLimit(); break;
|
||||||
case 0x39: getResourceLimitLimitValues(); break;
|
case 0x39: getResourceLimitLimitValues(); break;
|
||||||
case 0x3A: getResourceLimitCurrentValues(); break;
|
case 0x3A: getResourceLimitCurrentValues(); break;
|
||||||
|
@ -51,12 +52,17 @@ void Kernel::reset() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Result CreateAddressArbiter(Handle* arbiter)
|
// Result CreateAddressArbiter(Handle* arbiter)
|
||||||
// out: r0 -> result
|
|
||||||
void Kernel::createAddressArbiter() {
|
void Kernel::createAddressArbiter() {
|
||||||
printf("Stubbed call to CreateAddressArbiter. Handle address: %08X\n", regs[0]);
|
printf("Stubbed call to CreateAddressArbiter. Handle address: %08X\n", regs[0]);
|
||||||
regs[0] = SVCResult::Success;
|
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) {
|
std::string Kernel::getProcessName(u32 pid) {
|
||||||
if (pid == KernelHandles::CurrentProcess) {
|
if (pid == KernelHandles::CurrentProcess) {
|
||||||
return "current";
|
return "current";
|
||||||
|
|
Loading…
Add table
Reference in a new issue