Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread

This commit is contained in:
Subv 2015-05-11 09:15:10 -05:00
parent e98fbadf4a
commit 41f74a16fd
6 changed files with 50 additions and 4 deletions

View file

@ -115,8 +115,7 @@ SharedPtr<Object> HandleTable::GetGeneric(Handle handle) const {
if (handle == CurrentThread) {
return GetCurrentThread();
} else if (handle == CurrentProcess) {
LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess);
return nullptr;
return g_current_process;
}
if (!IsValid(handle)) {
@ -138,6 +137,7 @@ void Init() {
Kernel::ThreadingInit();
Kernel::TimersInit();
Process::next_process_id = 0;
Object::next_object_id = 0;
}