Mercurial > repos > blastem
diff io.c @ 1116:fe8c79f82c22
More cleanup in preparation for SMS/Mark III support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 22 Dec 2016 10:51:33 -0800 |
parents | 2eb54e24914e |
children | be3df2d8530a |
line wrap: on
line diff
--- a/io.c Mon Dec 19 14:16:59 2016 -0800 +++ b/io.c Thu Dec 22 10:51:33 2016 -0800 @@ -713,9 +713,9 @@ unlink(sockfile_name); } -void setup_io_devices(tern_node * config, rom_info *rom, genesis_context *gen) +void setup_io_devices(tern_node * config, rom_info *rom, sega_io *io) { - current_io = &gen->io; + current_io = io; io_port * ports = current_io->ports; tern_node *io_nodes = tern_get_node(tern_find_path(config, "io\0devices\0")); char * io_1 = rom->port1_override ? rom->port1_override : tern_find_ptr(io_nodes, "1");