mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
1b7ebd6fc2
## Link to GitHub Issue, if one exists n/a ## Description of change Adds Mahjong Fight Girl Support ## Compiling + ## Testing Tested with VFG:J:E:A:2024100800 in HG mode with VFG IO. No modifications made to data, other than avs-config.xml and ea3-config.xml. B and C modes don't work because of serial touchscreen. UKS mode doesn't work because of IO.
33 lines
771 B
C++
33 lines
771 B
C++
#pragma once
|
|
|
|
#include "acioemu/acioemu.h"
|
|
#include "hooks/devicehook.h"
|
|
|
|
namespace acioemu {
|
|
|
|
class ACIOHandle : public CustomHandle {
|
|
private:
|
|
LPCWSTR com_port;
|
|
|
|
uint8_t icca_node_count;
|
|
|
|
acioemu::ACIOEmu acio_emu;
|
|
|
|
public:
|
|
ACIOHandle(LPCWSTR lpCOMPort, uint8_t iccaNodeCount = 2);
|
|
|
|
bool open(LPCWSTR lpFileName) override;
|
|
|
|
int read(LPVOID lpBuffer, DWORD nNumberOfBytesToRead) override;
|
|
|
|
int write(LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite) override;
|
|
|
|
int device_io(DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer,
|
|
DWORD nOutBufferSize) override;
|
|
|
|
size_t bytes_available() override;
|
|
|
|
bool close() override;
|
|
};
|
|
}
|