summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-02-12 18:36:34 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-02-12 18:36:34 +0100
commitbe88bed2384951aae8c1f9bff51c74fbc0ce128f (patch)
treee67c2c14a195f74a7dcc40a31b8a959a60440532 /src/emu/fileio.h
parent4a99009812bf107c7937302ca3f45ce42f69159b (diff)
Better performance for -verifyroms on samba share [qmc2]
Diffstat (limited to 'src/emu/fileio.h')
-rw-r--r--src/emu/fileio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/fileio.h b/src/emu/fileio.h
index b5781a5d1c3..5b2c4d7948c 100644
--- a/src/emu/fileio.h
+++ b/src/emu/fileio.h
@@ -97,10 +97,13 @@ public:
const char *fullpath() const { return m_fullpath; }
UINT32 openflags() const { return m_openflags; }
hash_collection &hashes(const char *types);
+ bool restrict_to_mediapath() { return m_restrict_to_mediapath; }
+ bool part_of_mediapath(astring path);
// setters
void remove_on_close() { m_remove_on_close = true; }
void set_openflags(UINT32 openflags) { assert(m_file == NULL); m_openflags = openflags; }
+ void set_restrict_to_mediapath(bool rtmp = true) { m_restrict_to_mediapath = rtmp; }
// open/close
file_error open(const char *name);
@@ -151,7 +154,8 @@ private:
astring m_fullpath; // full filename
core_file * m_file; // core file pointer
path_iterator m_iterator; // iterator for paths
- UINT32 m_crc; // iterator for paths
+ path_iterator m_mediapaths; // media-path iterator
+ UINT32 m_crc; // file's CRC
UINT32 m_openflags; // flags we used for the open
hash_collection m_hashes; // collection of hashes
@@ -164,6 +168,7 @@ private:
UINT64 m__7zlength; // 7Z file length
bool m_remove_on_close; // flag: remove the file when closing
+ bool m_restrict_to_mediapath; // flag: restrict to paths inside the media-path
};