Working build again

This commit is contained in:
Kayori 2024-08-26 13:46:05 +02:00
parent 944e09f40c
commit f4b4df7551
24 changed files with 3519 additions and 3472 deletions

View File

@ -12,7 +12,7 @@ enum {
enum { enum {
apm3_IO_GAMEBTN_1 = 0x01, apm3_IO_GAMEBTN_1 = 0x01,
} };
/* Get the version of the AllS.Net PRAS Multi IO API that this DLL supports. This /* Get the version of the AllS.Net PRAS Multi IO API that this DLL supports. This
function should return a positive 16-bit integer, where the high byte is function should return a positive 16-bit integer, where the high byte is

View File

@ -189,13 +189,13 @@ static HRESULT sg_nfc_dispatch(
&req->felica_encap, &req->felica_encap,
&res->felica_encap); &res->felica_encap);
case SG_NFC_CMD_MIFARE_AUTHENTICATE: case SG_NFC_CMD_MIFARE_AUTHENTICATE_A:
case SG_NFC_CMD_SEND_HEX_DATA: case SG_NFC_CMD_SEND_HEX_DATA:
return sg_nfc_cmd_send_hex_data(nfc, &req->simple, &res->simple); return sg_nfc_cmd_send_hex_data(nfc, &req->simple, &res->simple);
case SG_NFC_CMD_MIFARE_SELECT_TAG: case SG_NFC_CMD_MIFARE_SELECT_TAG:
case SG_NFC_CMD_MIFARE_SET_KEY_AIME: case SG_NFC_CMD_MIFARE_SET_KEY_A:
case SG_NFC_CMD_MIFARE_SET_KEY_BANA: case SG_NFC_CMD_MIFARE_SET_KEY_B:
case SG_NFC_CMD_RADIO_ON: case SG_NFC_CMD_RADIO_ON:
case SG_NFC_CMD_RADIO_OFF: case SG_NFC_CMD_RADIO_OFF:
case SG_NFC_CMD_TO_UPDATE_MODE: case SG_NFC_CMD_TO_UPDATE_MODE:

1
dist/apm3/start.bat vendored
View File

@ -9,4 +9,3 @@ taskkill /f /im amdaemonD.exe > nul 2>&1
echo. echo.
echo Game processes have terminated echo Game processes have terminated
pause

0
multihook/dllmain.c Normal file
View File

31
multihook/meson.build Normal file
View File

@ -0,0 +1,31 @@
shared_library(
'multihook',
name_prefix : '',
include_directories : inc,
implicit_include_directories : false,
vs_module_defs : 'multihook.def',
c_pch : '../precompiled.h',
dependencies : [
capnhook.get_variable('hook_dep'),
capnhook.get_variable('hooklib_dep'),
xinput_lib,
],
link_with : [
aimeio_lib,
board_lib,
hooklib_lib,
multiio_lib,
platform_lib,
unityhook_lib,
util_lib,
],
sources : [
'config.c',
'config.h',
'dllmain.c',
'io4.c',
'io4.h',
'multi-dll.c',
'multi-dll.h',
],
)

17
multihook/multihook.def Normal file
View File

@ -0,0 +1,17 @@
LIBRARY multihook
EXPORTS
aime_io_get_api_version
aime_io_init
aime_io_led_set_color
aime_io_nfc_get_aime_id
aime_io_nfc_get_felica_id
aime_io_nfc_poll
amDllVideoClose @2
amDllVideoGetVBiosVersion @4
amDllVideoOpen @1
amDllVideoSetResolution @3
multi_io_get_api_version
multi_io_get_opbtns
multi_io_init
multi_io_poll