Commit Graph

29 Commits

Author SHA1 Message Date
Vas Crabb
1a5c013c33 (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.
2020-04-16 14:04:06 +10:00
Vas Crabb
438a497c37 (nw) More license shuffling
Get rid of a couple of copies of the CC0 text.  Add header comment to
CC0 files to remind people editing them what the terms are.  Also add
some missing XML headers.  The header comments in layouts won't bloat
the binary - they get stripped out before compressing, same as any other
comments.
2020-03-07 22:02:56 +11:00
Scott Stone
1d3ecff45d vz_snap.xml: dtd validation fix (nw)
Many assorted XML files fixed for errant spaces, missing linefeed, improper format, and other oddness (nw)
2019-10-06 21:12:33 -04:00
Scott Stone
a74e7b041e segacd.xml: Fixed duplicate SHA1 hash (ecco2a, eternalc) which turned out to be both Ecco The Dolphin. Reacquired/re-CHD'd both Eternal Champion sets resulting in different hashes than listed. Also, fixed parent/clone relationship for those sets. [Tafoid] 2016-11-03 04:20:09 -04:00
Vas Crabb
129c0feeed srcclean (nw) 2016-10-23 22:36:24 +11:00
Scott Stone
ff414f1a89 segacd.xml: Fixed CHD hash for roadrashp but still marked baddump until cue issue is fully resolved. 2016-10-21 00:40:57 -04:00
FakeShemp
b3bb82d9ae Add in the last missing sha1. Thanks Flupper 2016-10-16 21:45:46 +02:00
FakeShemp
537d504aa2 Another one. 2016-10-16 20:49:40 +02:00
FakeShemp
7bd0dc5013 Add one back. 2016-10-16 20:46:47 +02:00
FakeShemp
4481b33975 Remove remaining faulty sha1 to mark them. 2016-10-16 19:56:25 +02:00
FakeShemp
022430913c Fix most of the faulty sha1. 2016-10-16 19:25:13 +02:00
FakeShemp
7808cdaec7 Fix hashes for TruRip dumps. 2016-10-16 15:17:05 +02:00
Thomas Klausner
9586aefe37 Fix typo in setlist sha1. 2016-10-16 07:11:24 +02:00
FakeShemp
b67a2f06ac Fix the errors with the set names. 2016-10-15 22:31:58 +02:00
FakeShemp
7de86d001e Dumb space. 2016-10-13 23:16:55 +02:00
FakeShemp
d7d1eb1f49 Fix some annoying formatting. 2016-10-13 23:12:05 +02:00
FakeShemp
7e40a8e39d Fix validation 2016-10-13 22:25:01 +02:00
FakeShemp
8c5680f856 Update the Sega CD software list. 2016-10-13 17:25:24 +02:00
etabeta78
16f2a92f89 final round of consistency fixes. nw. 2016-06-28 08:00:26 +02:00
etabeta78
4c48889b2f a couple more of these logged. nw. 2014-12-22 22:01:41 +01:00
etabeta78
49909156d2 a couple more (and removed a spurious line). nw. 2014-12-22 15:19:50 +01:00
etabeta78
30a9eeee37 (MESS) segacd.xml: started logging data of the original bin+cue used in
the creation of the CHDs. this shall be of help to remove bad dumps or
keep good ones when redumps become available. while at it, added ring
codes when available. nw.
2014-12-22 07:05:59 +01:00
Fabio Priuli
9ebe46b04f (MESS) softlist: misc consistency fixes, mostly to have common shortnames for the same games
across different lists. nw.
2013-05-01 08:05:35 +00:00
Miodrag Milanovic
4337250fbe used old version of srcclean, so I put back old files and run it again, it produce much less changes, sorry for this (nw) 2013-03-19 11:38:58 +00:00
Miodrag Milanovic
0e1f5ad25b Cleanups and version bump 2013-03-19 07:22:20 +00:00
Fabio Priuli
bc23730a9a (MESS) softlists: Misc naming and description consistency fixes. no whatsnew. 2013-01-20 10:16:20 +00:00
smf-
19a14cbba6 use spaces in xml comments. This is the output from a local srcclean change applied after reverting the 0.148 cleanup, to avoid losing previous formatting. 2013-01-11 16:23:29 +00:00
Miodrag Milanovic
0e19f641d3 Cleanups and version bump 2013-01-11 07:32:46 +00:00
Miodrag Milanovic
960ae0c0de Sync software lists from MESS into hash (no whatsnew) 2012-08-21 10:47:55 +00:00