kill the TODO
This commit is contained in:
parent
6a602affed
commit
e90475a31b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue