diff options
author | 2016-08-10 12:43:55 +1000 | |
---|---|---|
committer | 2016-08-10 12:43:55 +1000 | |
commit | d37c65b787b67fe98ae209cf68de5458d0ab549f (patch) | |
tree | 4ad0ccc07c816e2e8bf511a91bc341cae6facb6d /src/emu/diimage.cpp | |
parent | 6a3c13eb5bf60a7debf9a37824905428e2ab70cc (diff) | |
parent | 1cda375d5ed60dfadb66196e37778e9f35823566 (diff) |
Merge pull request #1220 from npwoods/eliminate_diimage_make_readonly
Eliminated device_image_interface::make_readonly()
Diffstat (limited to 'src/emu/diimage.cpp')
-rw-r--r-- | src/emu/diimage.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/diimage.cpp b/src/emu/diimage.cpp index 9120191c3ae..935d1df52b9 100644 --- a/src/emu/diimage.cpp +++ b/src/emu/diimage.cpp @@ -510,7 +510,7 @@ void device_image_interface::image_checkhash() // only calculate CRC if it hasn't been calculated, and the open_mode is read only UINT32 crcval; - if (!m_hash.crc(crcval) && m_readonly && !m_created) + if (!m_hash.crc(crcval) && is_readonly() && !m_created) { // do not cause a linear read of 600 megs please // TODO: use SHA1 in the CHD header as the hash @@ -1060,8 +1060,6 @@ image_init_result device_image_interface::load_software(const std::string &softl const char *read_only = get_feature("read_only"); if (read_only && !strcmp(read_only, "true")) { - make_readonly(); - // Copy some image information when we have been loaded through a software list if (m_software_info_ptr) { |