forked from Hay1tsme/segatools
chusan, cm, mai2, mu3: Added dipSw support and highBaudrate AiMe
This commit is contained in:
@ -30,6 +30,7 @@ void aime_config_load(struct aime_config *cfg, const wchar_t *filename)
|
||||
|
||||
aime_dll_config_load(&cfg->dll, filename);
|
||||
cfg->enable = GetPrivateProfileIntW(L"aime", L"enable", 1, filename);
|
||||
cfg->high_baudrate = GetPrivateProfileIntW(L"aime", L"highbaud", 1, filename);
|
||||
}
|
||||
|
||||
void io4_config_load(struct io4_config *cfg, const wchar_t *filename)
|
||||
|
@ -70,6 +70,10 @@ HRESULT sg_reader_hook_init(
|
||||
|
||||
InitializeCriticalSection(&sg_reader_lock);
|
||||
|
||||
if (!cfg->high_baudrate) {
|
||||
sg_reader_uart.baud.BaudRate = 38400;
|
||||
}
|
||||
|
||||
uart_init(&sg_reader_uart, port_no);
|
||||
sg_reader_uart.written.bytes = sg_reader_written_bytes;
|
||||
sg_reader_uart.written.nbytes = sizeof(sg_reader_written_bytes);
|
||||
|
@ -9,6 +9,7 @@
|
||||
struct aime_config {
|
||||
struct aime_dll_config dll;
|
||||
bool enable;
|
||||
bool high_baudrate;
|
||||
};
|
||||
|
||||
HRESULT sg_reader_hook_init(
|
||||
|
Reference in New Issue
Block a user