diff options
author | 2020-04-16 05:05:16 +1000 | |
---|---|---|
committer | 2020-04-16 14:04:06 +1000 | |
commit | 1a5c013c330fd1a6b3d21d9bbbaf512539ae4503 (patch) | |
tree | b3ff6b9f247bdb2f721346a6adae7157d0a66c90 /hash/sega_beena_cart.xml | |
parent | 94ddd2d427700c5802e00adda0d3373941d06bba (diff) |
(nw) softlist_dev.cpp: validate ROM labels
The free-for-all on labels in software lists is not working. There's no
consistency, labels are getting excessively long, people are starting to
use non-ASCII characters in labels making it harder for others to type
them when manipulating files on the command line, and there's too much
markup being put in labels.
The length limit is 127 characters, same as for labels in MAME itself.
This should be long enough to be descriptive. Remember that the Win32
path limit is 260 characters, and many applications and frameworks have
issues with longer paths, including Windows Explorer and the .NET
framework. Labels are used as filenames, so concessions need to be
made for this.
I have not abbreviated excessively long labels myself - they're
currently causing 135 validity errors. Someone else can fix them.
Printable ASCII characters are allowed, with a few exceptions. The
exceptions are limited to characters most likely to cause issues for
interactive shells and scripts:
* ! - csh event substitution (very difficult to escape properly)
* $ - sh varibale expansion
* % - csh job control, cmd variable expansion
* / - UNIX directory separator
* : - sh path separator, Windows drive qualifier
* \ - sh escape, Windows directory separator
Most of the labels that had to be edited were using ! for markup, or
using ! and % for titles in labels. Strangely, titles in labels are
often forced to lower case, despite this never being enforced for
software lists. There are also various other edits to titles used for
labels, such as moving articles to the end (with or without a comma),
or replacing spaces with underscores. As I already said, there's no
consistency at all.
There is far too much markup in labels. They're even being used for
notes in some cases (e.g. at least one case where a dumper's name is in
the label). The XML schema supports metadata - use it. For example,
you can use part_id for an unrestricted display name for a software
part. You can also use XML comments for notes.
And while on the topic of metadata, vgmplay.xml is putting the same
thing in the part_id as well as the label. The part_id should have
the actual title, not the title mangled to make it more suitable for
use as a filename. Addressing this would be a lot of work, given how
large the file is.
For now, empty data areas in software lists cause a verbose message
rather than a validation warning. There are thousands of software
lists using empty data areas to indicate the size/width of cartridge
RAM/EEPROM/etc.
Diffstat (limited to 'hash/sega_beena_cart.xml')
-rw-r--r-- | hash/sega_beena_cart.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hash/sega_beena_cart.xml b/hash/sega_beena_cart.xml index c7ea0d4e5b1..176bf2a636a 100644 --- a/hash/sega_beena_cart.xml +++ b/hash/sega_beena_cart.xml @@ -12,7 +12,7 @@ license:CC0 <publisher>Sega Toys</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="S-100008-1000 - Shoku Iku Series 1 Soreike! Anpanman-Sukikirai Nai Ko Genki na Ko!.bin" size="0x00800000" crc="e7d8333d" sha1="7488dddf64cb0c93b17235db93cf6a1bd5c05c0f" /> + <rom loadflag="load16_word_swap" name="S-100008-1000 - Shoku Iku Series 1 Soreike Anpanman-Sukikirai Nai Ko Genki na Ko.bin" size="0x00800000" crc="e7d8333d" sha1="7488dddf64cb0c93b17235db93cf6a1bd5c05c0f" /> </dataarea> <dataarea name="pages" size="0x2000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x01d4aed0" crc="b023d113" sha1="6ac75a2710a140d39276d620638b596735290938" /> @@ -62,7 +62,7 @@ license:CC0 <publisher>Sega Toys</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="S-100002-1200 - Soreike! Anpanman Hajimete Kaketa yo! Oboeta yo! Hiragana Katakana - Gojuuon Board Kinou-tsuki.bin" size="0x00800000" crc="b6e038c9" sha1="b12bd91e8ead04f558d32ce9086102a3c99f13eb" /> + <rom loadflag="load16_word_swap" name="S-100002-1200 - Soreike Anpanman Hajimete Kaketa yo Oboeta yo Hiragana Katakana - Gojuuon Board Kinou-tsuki.bin" size="0x00800000" crc="b6e038c9" sha1="b12bd91e8ead04f558d32ce9086102a3c99f13eb" /> </dataarea> <dataarea name="pages" size="0x2000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x01b8b6ae" crc="e4c3a37a" sha1="de492d61bf91bee346734f62a6db257a6ce74f1c" /> @@ -158,7 +158,7 @@ license:CC0 <publisher>Sega Toys</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="S-100042-1000 - Pocket Monsters Best Wishes! Chinou Ikusei Pokemon Daiundoukai (Japan).bin" size="0x00800000" crc="a88ec549" sha1="866b56789fcb118e1ac50a8214a630a092aadd2f" /> + <rom loadflag="load16_word_swap" name="S-100042-1000 - Pocket Monsters Best Wishes Chinou Ikusei Pokemon Daiundoukai (Japan).bin" size="0x00800000" crc="a88ec549" sha1="866b56789fcb118e1ac50a8214a630a092aadd2f" /> </dataarea> <dataarea name="pages" size="0x3000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x00800000" crc="a88ec549" sha1="866b56789fcb118e1ac50a8214a630a092aadd2f" /> @@ -183,7 +183,7 @@ license:CC0 <publisher>Sega Toys</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="S-100039-1100 - Pocket Monsters Diamond and Pearl Pokemon o Sagase! Meiro de Daibouken!.bin" size="0x00800000" crc="7bbf9599" sha1="25aba3628c627c3ed603f14cb50cfe6101816db7" /> + <rom loadflag="load16_word_swap" name="S-100039-1100 - Pocket Monsters Diamond and Pearl Pokemon o Sagase Meiro de Daibouken.bin" size="0x00800000" crc="7bbf9599" sha1="25aba3628c627c3ed603f14cb50cfe6101816db7" /> </dataarea> <dataarea name="pages" size="0x4000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x0204f417" crc="088c3d4c" sha1="d66a27f30374568998cff2ed89e494ac7f449687" /> @@ -208,7 +208,7 @@ license:CC0 <publisher>Bandai</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="T-110008-1101 - Yes! PreCure 5 Asonde Oboeyou Hiragana!.bin" size="0x00800000" crc="6ae77335" sha1="29650349b117b96105882da7b12cac8fe9a04813" /> + <rom loadflag="load16_word_swap" name="T-110008-1101 - Yes PreCure 5 Asonde Oboeyou Hiragana.bin" size="0x00800000" crc="6ae77335" sha1="29650349b117b96105882da7b12cac8fe9a04813" /> </dataarea> <dataarea name="pages" size="0x4000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x01fd2372" crc="9290ac04" sha1="d106071e01ee790d85d46a2378ce5f638331b67a" /> @@ -233,7 +233,7 @@ license:CC0 <publisher>Bandai</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="T-110015-1000 - Oshare ni Henshin HeartCatch PreCure! (Japan).bin" size="0x00800000" crc="e2575324" sha1="500ad94f4dda4b886ff1991ddc4a730d94b37cd6" /> + <rom loadflag="load16_word_swap" name="T-110015-1000 - Oshare ni Henshin HeartCatch PreCure (Japan).bin" size="0x00800000" crc="e2575324" sha1="500ad94f4dda4b886ff1991ddc4a730d94b37cd6" /> </dataarea> <dataarea name="pages" size="0x3000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x01e37d48" crc="579e4159" sha1="75fd0eaa077c12507c78711ce099a76878eb532d" /> @@ -258,7 +258,7 @@ license:CC0 <publisher>Bandai</publisher> <part name="cart" interface="sega_beena_cart"> <dataarea name="rom" size="0x800000" width="32" endianness="big"> - <rom loadflag="load16_word_swap" name="T-110012-1000 - Samurai Sentai Shinkenger Battle ga Ippai! Iza Mairu!.bin" size="0x00800000" crc="41ed4615" sha1="f0106c4a79f9aff9815318eadc272c7c62a50ec2" /> + <rom loadflag="load16_word_swap" name="T-110012-1000 - Samurai Sentai Shinkenger Battle ga Ippai Iza Mairu.bin" size="0x00800000" crc="41ed4615" sha1="f0106c4a79f9aff9815318eadc272c7c62a50ec2" /> </dataarea> <dataarea name="pages" size="0x2000000"> <!-- book pages --> <rom name="0 - 0001.png" size="0x019ac721" crc="2d276d8a" sha1="ff068e3823c692a21c2134b6a34aa4835d6d8ac1" /> |