diff options
author | 2021-08-22 09:06:15 +1000 | |
---|---|---|
committer | 2021-08-22 09:06:15 +1000 | |
commit | e8bbea1fc6e94e14768509d322f6c624403ffb36 (patch) | |
tree | 74dd1606a900d83de8aecff17a6737af4113308d /src/tools/image_handler.h | |
parent | e319bde5fc3696d7f48f62b15b6366c4377fe5d1 (diff) |
formats, osd, util: Started refactoring file I/O stuff. (#8456)
Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter.
unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename.
Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums.
Allow mounting TI-99 RPK from inside archives.
Diffstat (limited to 'src/tools/image_handler.h')
-rw-r--r-- | src/tools/image_handler.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/tools/image_handler.h b/src/tools/image_handler.h index f004bd7d91f..d9a861bb3fd 100644 --- a/src/tools/image_handler.h +++ b/src/tools/image_handler.h @@ -3,27 +3,26 @@ // Image generic handler class and helpers -#ifndef TOOLS_IMAGE_HANDLER_H -#define TOOLS_IMAGE_HANDLER_H +#ifndef MAME_TOOLS_IMAGE_HANDLER_H +#define MAME_TOOLS_IMAGE_HANDLER_H + +#pragma once #include "../emu/emucore.h" + #include "formats/fsmgr.h" +#include <cstdint> #include <map> -#include <vector> #include <memory> +#include <string> +#include <vector> + using u8 = uint8_t; using u16 = uint16_t; using u32 = uint32_t; -struct iofile_ram { - std::vector<u8> *data; - int64_t pos; -}; - -io_generic *ram_open(std::vector<u8> &data); - struct floppy_format_info { floppy_image_format_t *m_format; std::string m_category; @@ -117,5 +116,4 @@ private: }; -#endif - +#endif // MAME_TOOLS_IMAGE_HANDLER_H |