Use GF_DEMO flag in the AdvancedDetector to augment the preferredtarget name
svn-id: r25541
This commit is contained in:
parent
0d418ee6ba
commit
55e132ca7d
2 changed files with 21 additions and 21 deletions
|
@ -166,6 +166,10 @@ static GameDescriptor toGameDescriptor(const ADGameDescription &g, const PlainGa
|
||||||
static String generateComplexID(const String &id, const ADGameDescription *desc) {
|
static String generateComplexID(const String &id, const ADGameDescription *desc) {
|
||||||
String res(id);
|
String res(id);
|
||||||
|
|
||||||
|
if (desc->flags & GF_DEMO) {
|
||||||
|
res = res + "-demo";
|
||||||
|
}
|
||||||
|
|
||||||
if (desc->platform != kPlatformPC && desc->platform != kPlatformUnknown) {
|
if (desc->platform != kPlatformPC && desc->platform != kPlatformUnknown) {
|
||||||
res = res + "-" + getPlatformAbbrev(desc->platform);
|
res = res + "-" + getPlatformAbbrev(desc->platform);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,16 +46,12 @@ static const PlainGameDescriptor gobGames[] = {
|
||||||
{"gob", "Gob engine game"},
|
{"gob", "Gob engine game"},
|
||||||
{"gob1", "Gobliiins"},
|
{"gob1", "Gobliiins"},
|
||||||
{"gob1cd", "Gobliiins CD"},
|
{"gob1cd", "Gobliiins CD"},
|
||||||
{"gob1-demo", "Gobliiins Demo"},
|
|
||||||
{"gob2", "Gobliins 2"},
|
{"gob2", "Gobliins 2"},
|
||||||
{"gob2cd", "Gobliins 2 CD"},
|
{"gob2cd", "Gobliins 2 CD"},
|
||||||
{"gob2-demo", "Gobliins 2 Demo"},
|
|
||||||
{"gob3", "Goblins Quest 3"},
|
{"gob3", "Goblins Quest 3"},
|
||||||
{"gob3cd", "Goblins Quest 3 CD"},
|
{"gob3cd", "Goblins Quest 3 CD"},
|
||||||
{"gob3-demo", "Goblins Quest 3 Demo"},
|
|
||||||
{"bargon", "Bargon Attack"},
|
{"bargon", "Bargon Attack"},
|
||||||
{"ween", "Ween: The Prophecy"},
|
{"ween", "Ween: The Prophecy"},
|
||||||
{"ween-demo", "Ween: The Prophecy Demo"},
|
|
||||||
{"woodruff", "The Bizarre Adventures of Woodruff and the Schnibble"},
|
{"woodruff", "The Bizarre Adventures of Woodruff and the Schnibble"},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
@ -251,7 +247,7 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob1-demo",
|
"gob1",
|
||||||
"Demo",
|
"Demo",
|
||||||
AD_ENTRY1("intro.stk", "972f22c6ff8144a6636423f0354ca549"),
|
AD_ENTRY1("intro.stk", "972f22c6ff8144a6636423f0354ca549"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
|
@ -263,7 +259,7 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob1-demo",
|
"gob1",
|
||||||
"Interactive Demo",
|
"Interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "e72bd1e3828c7dec4c8a3e58c48bdfdb"),
|
AD_ENTRY1("intro.stk", "e72bd1e3828c7dec4c8a3e58c48bdfdb"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
|
@ -531,8 +527,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob2-demo",
|
"gob2",
|
||||||
"Non-Interactive",
|
"Non-Interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "8b1c98ff2ab2e14f47a1b891e9b92217"),
|
AD_ENTRY1("intro.stk", "8b1c98ff2ab2e14f47a1b891e9b92217"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -543,8 +539,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob2-demo",
|
"gob2",
|
||||||
"Interactive",
|
"Interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "cf1c95b2939bd8ff58a25c756cb6125e"),
|
AD_ENTRY1("intro.stk", "cf1c95b2939bd8ff58a25c756cb6125e"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -555,8 +551,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob2-demo",
|
"gob2",
|
||||||
"Interactive",
|
"Interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "4b278c2678ea01383fd5ca114d947eea"),
|
AD_ENTRY1("intro.stk", "4b278c2678ea01383fd5ca114d947eea"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -675,8 +671,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"ween-demo",
|
"ween",
|
||||||
"",
|
"Demo",
|
||||||
AD_ENTRY1("intro.stk", "2e9c2898f6bf206ede801e3b2e7ee428"),
|
AD_ENTRY1("intro.stk", "2e9c2898f6bf206ede801e3b2e7ee428"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -687,8 +683,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"ween-demo",
|
"ween",
|
||||||
"",
|
"Demo",
|
||||||
AD_ENTRY1("intro.stk", "15fb91a1b9b09684b28ac75edf66e504"),
|
AD_ENTRY1("intro.stk", "15fb91a1b9b09684b28ac75edf66e504"),
|
||||||
EN_USA,
|
EN_USA,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -819,8 +815,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob3-demo",
|
"gob3",
|
||||||
"Interactive",
|
"Interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "7aebd94e49c2c5c518c9e7b74f25de9d"),
|
AD_ENTRY1("intro.stk", "7aebd94e49c2c5c518c9e7b74f25de9d"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -831,8 +827,8 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob3-demo",
|
"gob3",
|
||||||
"Non-interactive",
|
"Non-interactive Demo",
|
||||||
AD_ENTRY1("intro.stk", "b9b898fccebe02b69c086052d5024a55"),
|
AD_ENTRY1("intro.stk", "b9b898fccebe02b69c086052d5024a55"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
kPlatformPC,
|
kPlatformPC,
|
||||||
|
@ -843,7 +839,7 @@ static const GOBGameDescription gameDescriptions[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
"gob3-demo",
|
"gob3",
|
||||||
"Interactive Demo 2",
|
"Interactive Demo 2",
|
||||||
AD_ENTRY1("intro.stk", "e5dcbc9f6658ebb1e8fe26bc4da0806d"),
|
AD_ENTRY1("intro.stk", "e5dcbc9f6658ebb1e8fe26bc4da0806d"),
|
||||||
UNK_LANG,
|
UNK_LANG,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue