user_io: extend ioctl_* functionality.

This commit is contained in:
sorgelig
2020-08-20 17:30:52 +08:00
parent 05f87a30e7
commit 419ae67dee
8 changed files with 84 additions and 45 deletions

View File

@@ -131,7 +131,7 @@ void cheats_init(const char *rom_path, uint32_t romcrc)
// reset cheats
user_io_set_index(255);
user_io_set_download(1);
user_io_file_tx_write((const uint8_t*)&loaded, 2);
user_io_file_tx_data((const uint8_t*)&loaded, 2);
user_io_set_download(0);
if (!strcasestr(rom_path, ".zip"))
@@ -399,7 +399,7 @@ static void cheats_send()
user_io_set_index(255);
user_io_set_download(1);
user_io_file_tx_write(buff, pos ? pos : 2);
user_io_file_tx_data(buff, pos ? pos : 2);
user_io_set_download(0);
}