mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-30 23:57:15 +01:00
37c26ecadb
This commit basically copy-pastes the last commits from https://dev.s-ul.net/VeroxZik/segatools/-/commits/master to add OpenITHM LED support. Doesn't need to edit segatools.ini because the relevant config lines are already there for some reason. Tested with my OpenITHM controller and behaves exactly like the other fork. Reviewed-on: https://gitea.tendokyu.moe/Dniel97/segatools/pulls/26 Co-authored-by: d4nin3u <d4nin3u@gmail.com> Co-committed-by: d4nin3u <d4nin3u@gmail.com>
31 lines
691 B
C
31 lines
691 B
C
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
struct chuni_io_config {
|
|
uint8_t vk_test;
|
|
uint8_t vk_service;
|
|
uint8_t vk_coin;
|
|
uint8_t vk_ir_emu;
|
|
uint8_t vk_ir[6];
|
|
uint8_t vk_cell[32];
|
|
|
|
// Which ways to output LED information are enabled
|
|
bool cab_led_output_pipe;
|
|
bool cab_led_output_serial;
|
|
|
|
bool controller_led_output_pipe;
|
|
bool controller_led_output_serial;
|
|
|
|
bool controller_led_output_openithm;
|
|
|
|
// The name of a COM port to output LED data on, in serial mode
|
|
wchar_t led_serial_port[12];
|
|
int32_t led_serial_baud;
|
|
};
|
|
|
|
void chuni_io_config_load(
|
|
struct chuni_io_config *cfg,
|
|
const wchar_t *filename);
|