Commit Graph

21 Commits

Author SHA1 Message Date
hap
29179a34cc msx2_flop: put dslayer4 in cart2disk hacks list 2021-04-15 01:24:54 +02:00
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
8f393f526f softlist_dev.cpp: start adding validation for data areas
romload.cpp: reduce copy-pasta (nw)

(nw) I fixed the errors found by adding validation to software list data areas.
Most of them seem to be simple copy-paste errors hidden by the fact that the
default device_image_interface loader ignores the data area size (as opposed to
the "ROM" loader).  There was one C64 cartridge with a missing zero on the data
area size that was pretty clearly wrong.
2020-04-16 00:11:41 +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
Robbbert
206d3b88c2 (nw) more removal of offset=0 from swlists 2019-10-03 13:33:11 +10:00
etabeta78
be406134ae more consistency fixes. nw. 2016-05-29 11:38:55 +02:00
etabeta78
6d69c89500 another (and last for this development cycle) round of
naming consistency "enforcement", especially for saturn.xml. nw.
2016-05-24 06:47:23 +02:00
Justin Kerk
7c885f0197 Move current midgarts set from the msx2p to the msx2 softlist and add the real msx2p version (nw)
Sourced from the Cobra Disk Library Preservation Project
2016-01-23 11:46:21 -08:00
Scott Stone
daa82e3ce4 Fix formatting after more recent changes to softlists (nw) 2015-09-09 12:53:30 -04:00
Miodrag Milanovic
1b452e3bfb Cleanups and version bump 2015-07-29 08:34:21 +02:00
etabeta78
0da5dfaa15 proper fix for the missing towercab disk set. nw. 2015-06-03 23:08:28 +02:00
Robbbert
e0fdf4c2a6 Commented out corrupted set to stop msx2 machines from crashing. 2015-06-03 20:47:27 +10:00
Miodrag Milanovic
64e16ca8cf Cleanups and version bump 2015-05-27 09:03:32 +02:00
etabeta78
4f8bcab90b msx: started adding disk images to msx1_flop.xml and msx2_flop.xml, based
on preliminary partial work by Riley110 [Fabio Priuli]

out of whatsnew: more work soonish...
2015-05-12 13:23:03 +02:00
Miodrag Milanovic
79246ab917 More cleanups, there is issue with srcclean that needs to be taken care as well, just doing now what we can 2014-07-22 06:21:54 +00:00
Ivan Vangelista
6ef7f9fb74 Fixed msx2_flop.xml validation (nw) 2014-06-05 15:36:11 +00:00
Wilbert Pol
51b976d70b (MESS) msx.c: Added support for Arc (nw) 2014-06-04 21:30:17 +00:00
Wilbert Pol
db448dec61 (MESS) msx.c: Added support for mapper used by halnote (nw) 2014-06-04 20:46:54 +00:00
Wilbert Pol
1e5d478646 (MESS) msx2_cart/flop.xml: Added description for Arc and moved Halnote description to msx2_flop.xml. (nw) 2014-06-04 20:16:15 +00:00
Ivan Vangelista
fc31fd05b1 Fixed msx2_flop.xml validation (nw) 2014-05-21 16:40:38 +00:00
Wilbert Pol
9fb5dabee4 (MESS) msx.c: Added small msx2 floppy software list. (nw) 2014-05-20 18:53:16 +00:00