From e90475a31bd8596095409352ed52806d4b985658 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Mon, 4 May 2015 20:26:18 -0500 Subject: [PATCH] kill the TODO --- src/xenia/kernel/xboxkrnl_modules.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_modules.cc b/src/xenia/kernel/xboxkrnl_modules.cc index 08f73a57e..938e65415 100644 --- a/src/xenia/kernel/xboxkrnl_modules.cc +++ b/src/xenia/kernel/xboxkrnl_modules.cc @@ -269,11 +269,13 @@ SHIM_CALL XexGetProcedureAddress_shim(PPCContext* ppc_state, } if (XSUCCEEDED(result)) { - // TODO(benvanik): implement. May need to create stub functions on the fly. if (ordinal < 0x10000) { + // Ordinal. uint64_t ptr = (uint64_t)module->GetProcAddressByOrdinal(ordinal); - SHIM_SET_MEM_32(out_function_ptr, ptr); - result = X_STATUS_NOT_IMPLEMENTED; + if (ptr) { + SHIM_SET_MEM_32(out_function_ptr, ptr); + result = X_STATUS_SUCCESS; + } } else { // It's a name pointer instead. uint64_t ptr = (uint64_t)module->GetProcAddressByName(name);