Open main menu

Difference between revisions of "Auto detection"

605 bytes added ,  13:41, 12 February 2006
Update std descriptions
(Complete rewrite)
(Update std descriptions)
Line 62: Line 62:
   NAME (PLATFORM EXTRA LANGUAGE)
   NAME (PLATFORM EXTRA LANGUAGE)


If PLATFORM = PC, treat it as empty. If LANGUAGE=English, treat it as empty. If all three are missing, the desc becomes simply
Missing/unknown information is left our. So, if none of the extra values are known, the description simply becomes:
   NAME
   NAME
An alternate approach would be to display "Unknown" or "Unk" instead, but it's not clear whether that would provide any advantage to the regular user.


For the language, the two letter abbreviation is used. For the platforms, the following short names are used:
For the language, the two letter abbreviation as returned by Commmon::getLanguageCode() is used (possibly converted to upper case). For the platforms, the following short names are used:
  PC, DOS, Win, Mac, Amiga, Atari, FM-TOWNS
* Acorn
* Amiga
* Atari
* C64
* DOS
* FM-TOWNS
* Mac
* NES
* SEGA
* Win
Currently, the platform functions in common/util.h do not provide these values. We could either modify getPlatformCode() or getPlatformDescription() accordingly, or add a new getPlatformShortDescription() function.


Typical values for EXTRA include "Demo", "VGA", "EGA", "CD", "Floppy", "Talkie"
Typical values for EXTRA include "Demo", "VGA", "EGA", "CD", "Floppy", "Talkie"
Line 76: Line 87:


Another example:
Another example:
   ("The Secret of Monkey Island", PC, "CD", French)
   ("The Secret of Monkey Island", DOS, "CD", French)
becomes
becomes
   The Secret of Monkey Island (CD fr)
   The Secret of Monkey Island (DOS CD fr)
 
A third example:
  ("Broken Sword 2: The Smoking Mirror", Unknown, "Demo", English)
becomes
  Broken Sword 2: The Smoking Mirror (Demo en)
1,079

edits