add changeable config path

This commit is contained in:
2024-12-16 11:09:38 +08:00
parent 6d8ffb46ef
commit 11556a1332
37 changed files with 134 additions and 63 deletions

View File

@ -8,6 +8,7 @@
#include "cxbio/config.h"
#include "util/dprintf.h"
#include "util/env.h"
static bool cxb_io_coin;
static int cxb_io_coins;
@ -21,7 +22,7 @@ uint16_t cxb_io_get_api_version(void)
HRESULT cxb_io_revio_init(void)
{
dprintf("CXB IO: REVIO init\n");
cxb_io_config_load(&cxb_io_cfg, L".\\segatools.ini");
cxb_io_config_load(&cxb_io_cfg, get_config_path());
return S_OK;
}
@ -75,4 +76,4 @@ HRESULT cxb_io_led_init(void)
}
void cxb_io_led_update(int id, int color)
{}
{}