1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-19 07:17:23 +01:00

iidxhook: split off node-16seg to remove eamio dependency from iidxhook-cn

(so iidxhook-cn doesn't need to link against ezusb-iidx-emu)
This commit is contained in:
Will Xyen 2022-06-24 00:25:05 -07:00
parent dc931faf86
commit b4bf1f481d
20 changed files with 44 additions and 19 deletions

View File

@ -0,0 +1,5 @@
libs += ezusb-iidx-16seg-emu
src_ezusb-iidx-16seg-emu := \
node-16seg.c \
nodes.c \

View File

@ -1,6 +1,6 @@
#define LOG_MODULE "ezusb-iidx-emu-node-16seg" #define LOG_MODULE "ezusb-iidx-emu-node-16seg"
#include "ezusb-iidx-emu/node-16seg.h" #include "ezusb-iidx-16seg-emu/node-16seg.h"
#include <string.h> #include <string.h>

View File

@ -0,0 +1,16 @@
/*
* This file contains the ezusb nodes that appeared on
* all IIDX games so far.
*/
#include "ezusb-iidx/msg.h"
#include "ezusb-iidx-16seg-emu/node-16seg.h"
/* All IIDX games */
const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_16seg = {
.node_id = EZUSB_IIDX_MSG_NODE_16SEG,
.init_node = NULL,
.process_cmd = ezusb_iidx_emu_node_16seg_process_cmd,
.read_packet = ezusb_iidx_emu_node_16seg_read_packet,
.write_packet = ezusb_iidx_emu_node_16seg_write_packet};

View File

@ -0,0 +1,8 @@
#ifndef EZUSBEMU_NODES_16SEG_IIDX_H
#define EZUSBEMU_NODES_16SEG_IIDX_H
#include "ezusb-emu/node.h"
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_16seg;
#endif

View File

@ -2,11 +2,11 @@ libs += ezusb-iidx-emu
libs_ezusb-iidx-emu := \ libs_ezusb-iidx-emu := \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
src_ezusb-iidx-emu := \ src_ezusb-iidx-emu := \
card-mag.c \ card-mag.c \
msg.c \ msg.c \
node-16seg.c \
node-fpga.c \ node-fpga.c \
node-serial.c \ node-serial.c \
nodes.c \ nodes.c \

View File

@ -18,6 +18,8 @@
#include "ezusb-iidx-emu/node-serial.h" #include "ezusb-iidx-emu/node-serial.h"
#include "ezusb-iidx-emu/nodes.h" #include "ezusb-iidx-emu/nodes.h"
#include "ezusb-iidx-16seg-emu/nodes.h"
#include "util/hex.h" #include "util/hex.h"
#include "util/log.h" #include "util/log.h"

View File

@ -5,19 +5,10 @@
#include "ezusb-iidx/msg.h" #include "ezusb-iidx/msg.h"
#include "ezusb-iidx-emu/node-16seg.h"
#include "ezusb-iidx-emu/node-fpga.h" #include "ezusb-iidx-emu/node-fpga.h"
#include "ezusb-iidx-emu/node-serial.h" #include "ezusb-iidx-emu/node-serial.h"
#include "ezusb-iidx-emu/nodes.h" #include "ezusb-iidx-emu/nodes.h"
/* All IIDX games */
const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_16seg = {
.node_id = EZUSB_IIDX_MSG_NODE_16SEG,
.init_node = NULL,
.process_cmd = ezusb_iidx_emu_node_16seg_process_cmd,
.read_packet = ezusb_iidx_emu_node_16seg_read_packet,
.write_packet = ezusb_iidx_emu_node_16seg_write_packet};
/* Used on 9th to DistorteD */ /* Used on 9th to DistorteD */
const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v1 = { const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v1 = {
.node_id = EZUSB_IIDX_MSG_NODE_FPGA_V1, .node_id = EZUSB_IIDX_MSG_NODE_FPGA_V1,

View File

@ -3,7 +3,6 @@
#include "ezusb-emu/node.h" #include "ezusb-emu/node.h"
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_16seg;
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v1; extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v1;
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v2; extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v2;
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_serial; extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_serial;

View File

@ -2,6 +2,7 @@ libs += ezusb2-iidx-emu
libs_ezusb2-iidx-emu := \ libs_ezusb2-iidx-emu := \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
src_ezusb2-iidx-emu := \ src_ezusb2-iidx-emu := \
msg.c \ msg.c \

View File

@ -10,9 +10,7 @@
#include "ezusb-emu/msg.h" #include "ezusb-emu/msg.h"
#include "ezusb-emu/nodes.h" #include "ezusb-emu/nodes.h"
#include "ezusb-iidx-16seg-emu/nodes.h"
#include "ezusb-iidx-emu/msg.h"
#include "ezusb-iidx-emu/nodes.h"
#include "ezusb2-iidx/msg.h" #include "ezusb2-iidx/msg.h"

View File

@ -7,6 +7,7 @@ ldflags_iidxhook1 := \
libs_iidxhook1 := \ libs_iidxhook1 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \
security \ security \
eamio \ eamio \

View File

@ -7,6 +7,7 @@ ldflags_iidxhook2 := \
libs_iidxhook2 := \ libs_iidxhook2 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \
security \ security \
eamio \ eamio \

View File

@ -7,6 +7,7 @@ ldflags_iidxhook3 := \
libs_iidxhook3 := \ libs_iidxhook3 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \

View File

@ -9,11 +9,10 @@ deplibs_iidxhook4-cn := \
libs_iidxhook4-cn := \ libs_iidxhook4-cn := \
iidxhook-util \ iidxhook-util \
eamio \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \
security \ security \
hook \ hook \
hooklib \ hooklib \

View File

@ -9,6 +9,7 @@ deplibs_iidxhook4 := \
libs_iidxhook4 := \ libs_iidxhook4 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \

View File

@ -9,11 +9,10 @@ deplibs_iidxhook5-cn := \
libs_iidxhook5-cn := \ libs_iidxhook5-cn := \
iidxhook-util \ iidxhook-util \
eamio \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \
security \ security \
hook \ hook \
hooklib \ hooklib \

View File

@ -9,6 +9,7 @@ deplibs_iidxhook5 := \
libs_iidxhook5 := \ libs_iidxhook5 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \

View File

@ -9,6 +9,7 @@ deplibs_iidxhook6 := \
libs_iidxhook6 := \ libs_iidxhook6 := \
iidxhook-util \ iidxhook-util \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \

View File

@ -10,6 +10,7 @@ libs_iidxhook7 := \
iidxhook-util \ iidxhook-util \
cconfig \ cconfig \
ezusb-emu \ ezusb-emu \
ezusb-iidx-16seg-emu \
ezusb2-emu \ ezusb2-emu \
ezusb2-iidx-emu \ ezusb2-iidx-emu \
ezusb-iidx-emu \ ezusb-iidx-emu \