mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
diimage: Added "read_only" feature to the software list to denote write protected images. [Curt Coder]
(MESS) c64: Fixed Bounty Bob Strikes Back loading. (nw)
This commit is contained in:
parent
a0ef45bd0b
commit
21c0d4913c
2 changed files with 9 additions and 1 deletions
|
@ -64,13 +64,15 @@
|
|||
</software>
|
||||
|
||||
<software name="bbsb">
|
||||
<description>Bounty Bob Strikes Back! v1.2</description>
|
||||
<description>Bounty Bob Strikes Back! (v1.2)</description>
|
||||
<year>1985</year>
|
||||
<publisher>Big Five</publisher>
|
||||
<info name="protection" value="halftrack" />
|
||||
<sharedfeat name="compatibility" value="NTSC,PAL"/>
|
||||
|
||||
<part name="flop1" interface="floppy_5_25">
|
||||
<!-- will not load if disk is not write protected -->
|
||||
<feature name="read_only" value="true"/>
|
||||
<dataarea name="flop" size="208212">
|
||||
<rom name="bbsb.g64" size="208212" crc="69456d8c" sha1="26801eda258f748aa6f6c45df8af7f7cbb2857d4" offset="0" />
|
||||
</dataarea>
|
||||
|
|
|
@ -939,6 +939,12 @@ bool device_image_interface::load_internal(const char *path, bool is_create, int
|
|||
if (m_software_info_ptr && m_full_software_name)
|
||||
m_err = set_image_filename(m_full_software_name);
|
||||
|
||||
// check if image should be read-only
|
||||
const char *read_only = get_feature("read_only");
|
||||
if (read_only && !strcmp(read_only, "true")) {
|
||||
make_readonly();
|
||||
}
|
||||
|
||||
m_from_swlist = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue