diff options
author | 2016-03-13 13:54:57 +1100 | |
---|---|---|
committer | 2016-03-14 18:55:00 +1100 | |
commit | 42fbb9c3967fcda37f2d9ae17d5796a79cf027b9 (patch) | |
tree | a43047ee00431e5e22bfc5f8f612ff775586e415 /src/mame/machine/fddebug.cpp | |
parent | 5fc27747031b6ed6f6c0582502098ebfb960be67 (diff) |
Make osd_file a polymorphic class that's held with smart pointers
Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures
Make zip_file and _7z_file classes rather than having free functions everywhere
Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache
Don't dump as much crap in global namespace
Add solaris PTY implementation
Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax
Rearrange stuff so the same things are in file module for all OSDs
Move file stuff into its own module
7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access
Directory functions still need to be moved to file module
SDL OSD may not initialise WinSock on Windows
Diffstat (limited to 'src/mame/machine/fddebug.cpp')
-rw-r--r-- | src/mame/machine/fddebug.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/machine/fddebug.cpp b/src/mame/machine/fddebug.cpp index fcb4a46bff8..9cf760337fc 100644 --- a/src/mame/machine/fddebug.cpp +++ b/src/mame/machine/fddebug.cpp @@ -591,8 +591,8 @@ static void load_overlay_file(running_machine &machine) /* determine the filename and open the file */ emu_file file(OPEN_FLAG_READ); - file_error filerr = file.open(machine.system().name, ".kov"); - if (filerr == FILERR_NONE) + osd_file::error filerr = file.open(machine.system().name, ".kov"); + if (filerr == osd_file::error::NONE) { file.read(keystatus, keystatus_words * 2); @@ -617,8 +617,8 @@ static void save_overlay_file(running_machine &machine) /* determin the filename and open the file */ emu_file file(OPEN_FLAG_WRITE | OPEN_FLAG_CREATE); - file_error filerr = file.open(machine.system().name, ".kov"); - if (filerr == FILERR_NONE) + osd_file::error filerr = file.open(machine.system().name, ".kov"); + if (filerr == osd_file::error::NONE) { /* convert to big-endian */ for (pcaddr = 0; pcaddr < keystatus_words; pcaddr++) @@ -760,8 +760,8 @@ static void execute_fdoutput(running_machine &machine, int ref, int params, cons /* determin the filename and open the file */ emu_file file(OPEN_FLAG_WRITE | OPEN_FLAG_CREATE); - file_error filerr = file.open(param[0]); - if (filerr == FILERR_NONE) + osd_file::error filerr = file.open(param[0]); + if (filerr == osd_file::error::NONE) file.write(keyregion, KEY_SIZE); debug_console_printf(machine, "File '%s' saved\n", param[0]); @@ -1183,8 +1183,8 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const /* open the file */ emu_file file(OPEN_FLAG_WRITE | OPEN_FLAG_CREATE); - file_error filerr = file.open(filename); - if (filerr != FILERR_NONE) + osd_file::error filerr = file.open(filename); + if (filerr != osd_file::error::NONE) { debug_console_printf(machine, "Unable to create file '%s'\n", filename); return; |