From 00d3f5a8ad547236ca982164bd42fce58d474dad Mon Sep 17 00:00:00 2001 From: Cube Date: Wed, 18 May 2022 13:06:16 -0700 Subject: [PATCH] Pro/Pro2: piuio-exit patch fix --- src/main/hook/pro/main.c | 3 +-- src/main/hook/pro2/main.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/hook/pro/main.c b/src/main/hook/pro/main.c index db7c4c4..d2d9ef1 100644 --- a/src/main/hook/pro/main.c +++ b/src/main/hook/pro/main.c @@ -173,12 +173,11 @@ static void prohook_patch_piuio_init(struct prohook_options *options) patch_usb_init_fix_init(); patch_piuio_khack_init(); - patch_usb_emu_init(); - /* Hook before PIUIO emulation */ if (options->patch.piuio.exit_test_serv) { patch_piuio_exit_init(); } + patch_usb_emu_init(); if (options->patch.piuio.api_lib) { char *abs_path_iolib = util_fs_get_abs_path(options->patch.piuio.api_lib); diff --git a/src/main/hook/pro2/main.c b/src/main/hook/pro2/main.c index cfadcfb..b1ff5f8 100644 --- a/src/main/hook/pro2/main.c +++ b/src/main/hook/pro2/main.c @@ -181,12 +181,11 @@ static void pro2hook_patch_piuio_init(struct pro2hook_options *options) patch_usb_init_fix_init(); patch_piuio_khack_init(); - patch_usb_emu_init(); - /* Hook before PIUIO emulation */ if (options->patch.piuio.exit_test_serv) { patch_piuio_exit_init(); } + patch_usb_emu_init(); if (options->patch.piuio.api_lib) { char *abs_path_iolib = util_fs_get_abs_path(options->patch.piuio.api_lib);