Core: Get rid of unnecessary switch statement in Kernel
This commit is contained in:
parent
cbdf4d4c8e
commit
741321ac24
|
@ -85,47 +85,8 @@ int ObjectPool::GetCount() {
|
||||||
}
|
}
|
||||||
|
|
||||||
Object* ObjectPool::CreateByIDType(int type) {
|
Object* ObjectPool::CreateByIDType(int type) {
|
||||||
// Used for save states. This is ugly, but what other way is there?
|
ERROR_LOG(COMMON, "Unimplemented: %d.", type);
|
||||||
switch (type) {
|
|
||||||
//case SCE_KERNEL_TMID_Alarm:
|
|
||||||
// return __KernelAlarmObject();
|
|
||||||
//case SCE_KERNEL_TMID_EventFlag:
|
|
||||||
// return __KernelEventFlagObject();
|
|
||||||
//case SCE_KERNEL_TMID_Mbox:
|
|
||||||
// return __KernelMbxObject();
|
|
||||||
//case SCE_KERNEL_TMID_Fpl:
|
|
||||||
// return __KernelMemoryFPLObject();
|
|
||||||
//case SCE_KERNEL_TMID_Vpl:
|
|
||||||
// return __KernelMemoryVPLObject();
|
|
||||||
//case PPSSPP_KERNEL_TMID_PMB:
|
|
||||||
// return __KernelMemoryPMBObject();
|
|
||||||
//case PPSSPP_KERNEL_TMID_Module:
|
|
||||||
// return __KernelModuleObject();
|
|
||||||
//case SCE_KERNEL_TMID_Mpipe:
|
|
||||||
// return __KernelMsgPipeObject();
|
|
||||||
//case SCE_KERNEL_TMID_Mutex:
|
|
||||||
// return __KernelMutexObject();
|
|
||||||
//case SCE_KERNEL_TMID_LwMutex:
|
|
||||||
// return __KernelLwMutexObject();
|
|
||||||
//case SCE_KERNEL_TMID_Semaphore:
|
|
||||||
// return __KernelSemaphoreObject();
|
|
||||||
//case SCE_KERNEL_TMID_Callback:
|
|
||||||
// return __KernelCallbackObject();
|
|
||||||
//case SCE_KERNEL_TMID_Thread:
|
|
||||||
// return __KernelThreadObject();
|
|
||||||
//case SCE_KERNEL_TMID_VTimer:
|
|
||||||
// return __KernelVTimerObject();
|
|
||||||
//case SCE_KERNEL_TMID_Tlspl:
|
|
||||||
// return __KernelTlsplObject();
|
|
||||||
//case PPSSPP_KERNEL_TMID_File:
|
|
||||||
// return __KernelFileNodeObject();
|
|
||||||
//case PPSSPP_KERNEL_TMID_DirList:
|
|
||||||
// return __KernelDirListingObject();
|
|
||||||
|
|
||||||
default:
|
|
||||||
ERROR_LOG(COMMON, "Unable to load state: could not find object type %d.", type);
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize the kernel
|
/// Initialize the kernel
|
||||||
|
|
Loading…
Reference in New Issue