Switching shim mapping macro to use ordinal constants.
This commit is contained in:
@@ -70,13 +70,7 @@ SHIM_CALL XGetLanguage_shim(
|
||||
|
||||
void xe::kernel::xam::RegisterInfoExports(
|
||||
ExportResolver* export_resolver, XamState* state) {
|
||||
#define SHIM_SET_MAPPING(ordinal, shim, impl) \
|
||||
export_resolver->SetFunctionMapping("xam.xex", ordinal, \
|
||||
state, (xe_kernel_export_shim_fn)shim, (xe_kernel_export_impl_fn)impl)
|
||||
|
||||
SHIM_SET_MAPPING(0x000003CB, XGetAVPack_shim, NULL);
|
||||
SHIM_SET_MAPPING(0x000003CC, XGetGameRegion_shim, NULL);
|
||||
SHIM_SET_MAPPING(0x000003CD, XGetLanguage_shim, NULL);
|
||||
|
||||
#undef SET_MAPPING
|
||||
SHIM_SET_MAPPING("xam.xex", XGetAVPack, state);
|
||||
SHIM_SET_MAPPING("xam.xex", XGetGameRegion, state);
|
||||
SHIM_SET_MAPPING("xam.xex", XGetLanguage, state);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#define XENIA_KERNEL_MODULES_XAM_INFO_H_
|
||||
|
||||
#include <xenia/kernel/modules/xam/xam_state.h>
|
||||
#include <xenia/kernel/modules/xam/xam_ordinals.h>
|
||||
|
||||
|
||||
namespace xe {
|
||||
|
||||
Reference in New Issue
Block a user