summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-06-30 03:46:21 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-06-30 03:46:21 +0000
commit733b797a3dae6c89b11c9b3f3eaad68995f6ef09 (patch)
tree6fa31dcfd68bd9c4a34dd8f2c139d63c00d3e33e /src/emu/fileio.c
parent2c549dad23fd5b5e8dc48e5a9c8f7790d17e697d (diff)
Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation. Moved global machine-level operations and accessors into methods on the running_machine class. For the most part, this doesn't affect drivers except for a few occasional bits: mame_get_phase() == machine->phase() add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...) add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...) mame_get_base_datetime() == machine->base_datetime() mame_get_current_datetime() == machine->current_datetime() Cleaned up the region_info class, removing most global region accessors except for memory_region() and memory_region_length(). Again, this doesn't generally affect drivers.
Diffstat (limited to 'src/emu/fileio.c')
-rw-r--r--src/emu/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/fileio.c b/src/emu/fileio.c
index 07debd89215..d81b914db7c 100644
--- a/src/emu/fileio.c
+++ b/src/emu/fileio.c
@@ -77,7 +77,7 @@ struct _mame_path
***************************************************************************/
/* core functions */
-static void fileio_exit(running_machine *machine);
+static void fileio_exit(running_machine &machine);
/* file open/close */
static file_error fopen_internal(core_options *opts, path_iterator *iterator, const char *filename, UINT32 crc, UINT32 flags, mame_file **file);
@@ -106,7 +106,7 @@ static int zip_header_is_path(const zip_file_header *header);
void fileio_init(running_machine *machine)
{
- add_exit_callback(machine, fileio_exit);
+ machine->add_notifier(MACHINE_NOTIFY_EXIT, fileio_exit);
}
@@ -114,7 +114,7 @@ void fileio_init(running_machine *machine)
fileio_exit - clean up behind ourselves
-------------------------------------------------*/
-static void fileio_exit(running_machine *machine)
+static void fileio_exit(running_machine &machine)
{
zip_file_cache_clear();
}