kill the TODO

This commit is contained in:
Dr. Chat 2015-05-04 20:26:18 -05:00
parent 6a602affed
commit e90475a31b
1 changed files with 5 additions and 3 deletions

View File

@ -269,11 +269,13 @@ SHIM_CALL XexGetProcedureAddress_shim(PPCContext* ppc_state,
} }
if (XSUCCEEDED(result)) { if (XSUCCEEDED(result)) {
// TODO(benvanik): implement. May need to create stub functions on the fly.
if (ordinal < 0x10000) { if (ordinal < 0x10000) {
// Ordinal.
uint64_t ptr = (uint64_t)module->GetProcAddressByOrdinal(ordinal); uint64_t ptr = (uint64_t)module->GetProcAddressByOrdinal(ordinal);
if (ptr) {
SHIM_SET_MEM_32(out_function_ptr, ptr); SHIM_SET_MEM_32(out_function_ptr, ptr);
result = X_STATUS_NOT_IMPLEMENTED; result = X_STATUS_SUCCESS;
}
} else { } else {
// It's a name pointer instead. // It's a name pointer instead.
uint64_t ptr = (uint64_t)module->GetProcAddressByName(name); uint64_t ptr = (uint64_t)module->GetProcAddressByName(name);