mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-01-18 23:14:02 +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:
parent
dc931faf86
commit
b4bf1f481d
5
src/main/ezusb-iidx-16seg-emu/Module.mk
Normal file
5
src/main/ezusb-iidx-16seg-emu/Module.mk
Normal file
@ -0,0 +1,5 @@
|
||||
libs += ezusb-iidx-16seg-emu
|
||||
|
||||
src_ezusb-iidx-16seg-emu := \
|
||||
node-16seg.c \
|
||||
nodes.c \
|
@ -1,6 +1,6 @@
|
||||
#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>
|
||||
|
16
src/main/ezusb-iidx-16seg-emu/nodes.c
Normal file
16
src/main/ezusb-iidx-16seg-emu/nodes.c
Normal 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};
|
8
src/main/ezusb-iidx-16seg-emu/nodes.h
Normal file
8
src/main/ezusb-iidx-16seg-emu/nodes.h
Normal 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
|
@ -2,11 +2,11 @@ libs += ezusb-iidx-emu
|
||||
|
||||
libs_ezusb-iidx-emu := \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
|
||||
src_ezusb-iidx-emu := \
|
||||
card-mag.c \
|
||||
msg.c \
|
||||
node-16seg.c \
|
||||
node-fpga.c \
|
||||
node-serial.c \
|
||||
nodes.c \
|
||||
|
@ -18,6 +18,8 @@
|
||||
#include "ezusb-iidx-emu/node-serial.h"
|
||||
#include "ezusb-iidx-emu/nodes.h"
|
||||
|
||||
#include "ezusb-iidx-16seg-emu/nodes.h"
|
||||
|
||||
#include "util/hex.h"
|
||||
#include "util/log.h"
|
||||
|
||||
|
@ -5,19 +5,10 @@
|
||||
|
||||
#include "ezusb-iidx/msg.h"
|
||||
|
||||
#include "ezusb-iidx-emu/node-16seg.h"
|
||||
#include "ezusb-iidx-emu/node-fpga.h"
|
||||
#include "ezusb-iidx-emu/node-serial.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 */
|
||||
const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_fpga_v1 = {
|
||||
.node_id = EZUSB_IIDX_MSG_NODE_FPGA_V1,
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#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_v2;
|
||||
extern const struct ezusb_iidx_emu_node ezusb_iidx_emu_node_serial;
|
||||
|
@ -2,6 +2,7 @@ libs += ezusb2-iidx-emu
|
||||
|
||||
libs_ezusb2-iidx-emu := \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
|
||||
src_ezusb2-iidx-emu := \
|
||||
msg.c \
|
||||
|
@ -10,9 +10,7 @@
|
||||
|
||||
#include "ezusb-emu/msg.h"
|
||||
#include "ezusb-emu/nodes.h"
|
||||
|
||||
#include "ezusb-iidx-emu/msg.h"
|
||||
#include "ezusb-iidx-emu/nodes.h"
|
||||
#include "ezusb-iidx-16seg-emu/nodes.h"
|
||||
|
||||
#include "ezusb2-iidx/msg.h"
|
||||
|
||||
|
@ -7,6 +7,7 @@ ldflags_iidxhook1 := \
|
||||
libs_iidxhook1 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb-iidx-emu \
|
||||
security \
|
||||
eamio \
|
||||
|
@ -7,6 +7,7 @@ ldflags_iidxhook2 := \
|
||||
libs_iidxhook2 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb-iidx-emu \
|
||||
security \
|
||||
eamio \
|
||||
|
@ -7,6 +7,7 @@ ldflags_iidxhook3 := \
|
||||
libs_iidxhook3 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
|
@ -9,11 +9,10 @@ deplibs_iidxhook4-cn := \
|
||||
|
||||
libs_iidxhook4-cn := \
|
||||
iidxhook-util \
|
||||
eamio \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
security \
|
||||
hook \
|
||||
hooklib \
|
||||
|
@ -9,6 +9,7 @@ deplibs_iidxhook4 := \
|
||||
libs_iidxhook4 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
|
@ -9,11 +9,10 @@ deplibs_iidxhook5-cn := \
|
||||
|
||||
libs_iidxhook5-cn := \
|
||||
iidxhook-util \
|
||||
eamio \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
security \
|
||||
hook \
|
||||
hooklib \
|
||||
|
@ -9,6 +9,7 @@ deplibs_iidxhook5 := \
|
||||
libs_iidxhook5 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
|
@ -9,6 +9,7 @@ deplibs_iidxhook6 := \
|
||||
libs_iidxhook6 := \
|
||||
iidxhook-util \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
|
@ -10,6 +10,7 @@ libs_iidxhook7 := \
|
||||
iidxhook-util \
|
||||
cconfig \
|
||||
ezusb-emu \
|
||||
ezusb-iidx-16seg-emu \
|
||||
ezusb2-emu \
|
||||
ezusb2-iidx-emu \
|
||||
ezusb-iidx-emu \
|
||||
|
Loading…
x
Reference in New Issue
Block a user