Open felipesanches opened 9 years ago
Wouldn't this make more sense in the XML metadata...?
When you say "XML metadata" I can think of 2 things:
Which do you mean?
The rationale behind my proposal is that there is a lot of occurences nowadays of both general description of what a certain device is, as well as of information on how to operate a device, that are kind of "buried" into comments in the headers of driver source files. It seems to be a current common practice. This is useful metadata and, as a documentation and preservation project, I think we would benefit from making all this information accessible on run-time and also in a more structured way so that this metadata can be (1) more accessible to the users and not only to people who take a look at the source code and (2) in a machine-readable manner so that it can be more easily repurposed by automated tools (such as data processing scripts to generate all sorts of visualizations and statistics on our current codebase).
Think of it as something as useful as the other metadata for which we already have macro markups on a driver source file, such as release year, manufacturer name, model name, driver status flags, rom names and hashes, etc...
Also, other info could perhaps also be better organized with more specialized markup such as:
DRIVER_AUTHOR(zapcomp, "Felipe Correa da Silva Sanches", "juca@members.fsf.org")
In addition to the improved visibility/access of the data within MAME's runtime, one other potential future benefit of this markup would be that projects such as the Internet Archive would be able to more easily extract this information and to expose it to visitors as part of the user interface of their website.
DEVICE_DESCRIPTION( zapcomp, "\ ZAP - Z80 Applications Processor\n \n [...]
Wouldn't this make more sense in the XML metadata...?
For WYSIWYG style documentation both proposal won't fit due of multi-line handling and/or having to manually deal with [CR]LF.
A better fit would be using markdown flavored files plus a dedicated repository, the hard part would be then to link these howto docs from MAME front-end itself as a design standpoint:
*do we have a mechanism for clicking external URLs at all?
These macros would expose to the emulator runtime, useful information for the users. Such information can be displayed when booting a machine and/or within the ui menu (under "machine information" perhaps). Examples of what the macros would look like in the source code: