Files
djhackersdev_bemanitools/src/main/ezusb-iidx-emu/msg.h
T

44 lines
1.4 KiB
C

#ifndef EZUSB_IIDX_EMU_MSG_H
#define EZUSB_IIDX_EMU_MSG_H
#include <stddef.h>
#include <stdint.h>
#include "hook/iohook.h"
#include "ezusb-emu/msg.h"
enum ezusb_iidx_emu_msg_io_board_type {
EZUSB_IIDX_EMU_MSG_IO_BOARD_TYPE_C02 = 0,
EZUSB_IIDX_EMU_MSG_IO_BOARD_TYPE_D01 = 1,
EZUSB_IIDX_EMU_MSG_IO_BOARD_TYPE_COUNT = 2,
};
/**
* Init the fully emulated IIDX msg backend for a EZUSB board. This
* activates the "old" V1 node handling backend which was used on iidx 09 to 13.
* On iidx14, the firmware was updated and removed nodes that were not used
* anymore, e.g. serial card reader handling.
*
* @param io_board_type Type of IO board to emulate. Note that this impacts the
* security data which is different on some game versions, e.g. 10th
* style.
* @return ezusb_emu_msg_hook structure with hook calls for ezusb msg
* dispatching
*/
struct ezusb_emu_msg_hook *
ezusb_iidx_emu_msg_init(enum ezusb_iidx_emu_msg_io_board_type io_board_type);
/**
* Init the fully emulated IIDX msg backend for a EZUSB (C02) board. This
* activates the "newer" V2 node handling backend which was used from iidx 14
* onwards. The firmware was updated and removed nodes that were not used
* anymore, e.g. serial card reader handling.
*
* @return ezusb_emu_msg_hook structure with hook calls for ezusb msg
* dispatching
*/
struct ezusb_emu_msg_hook *ezusb_iidx_emu_msg_v2_init(void);
#endif