summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-11 21:27:11 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-11 21:27:11 +0100
commit43cc0ac6752cebdf7fa9642c688c4ef444228569 (patch)
treeadbdf5631f994db53479ad41c01590e9e869714d /src/emu/romload.h
parent51276052d9e6a2a9e147bd6bdd0d17e8505ce521 (diff)
final touch on romload modernization (nw)
Diffstat (limited to 'src/emu/romload.h')
-rw-r--r--src/emu/romload.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/romload.h b/src/emu/romload.h
index 61d9ed3a2f5..c7c10e49325 100644
--- a/src/emu/romload.h
+++ b/src/emu/romload.h
@@ -338,7 +338,7 @@ private:
UINT32 m_romsloadedsize; /* total size of ROMs loaded so far */
UINT32 m_romstotalsize; /* total size of ROMs to read */
- emu_file * m_file; /* current file */
+ std::unique_ptr<emu_file> m_file; /* current file */
std::vector<std::unique_ptr<open_chd>> m_chd_list; /* disks */
memory_region * m_region; /* info about current region */
@@ -350,8 +350,7 @@ private:
/* ----- Helpers ----- */
-file_error common_process_file(emu_options &options, const char *location, const char *ext, const rom_entry *romp, emu_file **image_file);
-file_error common_process_file(emu_options &options, const char *location, bool has_crc, UINT32 crc, const rom_entry *romp, emu_file **image_file);
+std::unique_ptr<emu_file> common_process_file(emu_options &options, const char *location, bool has_crc, UINT32 crc, const rom_entry *romp, file_error &filerr);
/* return pointer to the first ROM region within a source */
const rom_entry *rom_first_region(const device_t &device);