Fix compiler errors i introduced under clang-cl
remove xe_kernel_export_shim_fn field of Export function_data, trampoline is now the only way exports get invoked Remove kernelstate argument from string functions in order to conform to the trampoline signature (the argument was unused anyway) Constant-evaluated initialization of ppc_opcode_disasm_table, removal of unused std::vector fields Constant-evaluated initialization of export tables name field on export is just a const char* now, only immutable static strings are ever passed to it Remove unused callcount field of export. PM4 compare op function extracted Globally apply /Oy, /GS-, /Gw on msvc windows Remove imgui testwindow code call, it took up like 300 kb
This commit is contained in:
@@ -1194,11 +1194,11 @@ bool XexModule::SetupLibraryImports(const std::string_view name,
|
||||
}
|
||||
|
||||
if (kernel_export) {
|
||||
if (kernel_export->type == Export::Type::kFunction) {
|
||||
if (kernel_export->get_type() == Export::Type::kFunction) {
|
||||
// Not exactly sure what this should be...
|
||||
// Appears to be ignored.
|
||||
*record_slot = 0xDEADC0DE;
|
||||
} else if (kernel_export->type == Export::Type::kVariable) {
|
||||
} else if (kernel_export->get_type() == Export::Type::kVariable) {
|
||||
// Kernel import variable
|
||||
if (kernel_export->is_implemented()) {
|
||||
// Implemented - replace with pointer.
|
||||
@@ -1287,8 +1287,9 @@ bool XexModule::SetupLibraryImports(const std::string_view name,
|
||||
handler = (GuestFunction::ExternHandler)
|
||||
kernel_export->function_data.trampoline;
|
||||
} else {
|
||||
handler =
|
||||
(GuestFunction::ExternHandler)kernel_export->function_data.shim;
|
||||
//__debugbreak();
|
||||
// handler =
|
||||
// (GuestFunction::ExternHandler)kernel_export->function_data.shim;
|
||||
}
|
||||
} else {
|
||||
XELOGW("WARNING: Imported kernel function {} is unimplemented!",
|
||||
|
||||
Reference in New Issue
Block a user