DETECTOR: Make updateGameDescriptor a method of AdvancedMetaEngine
This commit is contained in:
parent
59d56b6687
commit
d46bfff066
2 changed files with 4 additions and 1 deletions
|
@ -189,7 +189,7 @@ static Common::String generatePreferredTarget(const Common::String &id, const AD
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc, const ADParams ¶ms) {
|
static void AdvancedMetaEngine::updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc) {
|
||||||
if (params.singleid != NULL) {
|
if (params.singleid != NULL) {
|
||||||
desc["preferredtarget"] = desc["gameid"];
|
desc["preferredtarget"] = desc["gameid"];
|
||||||
desc["gameid"] = params.singleid;
|
desc["gameid"] = params.singleid;
|
||||||
|
|
|
@ -246,6 +246,9 @@ public:
|
||||||
virtual const ADGameDescription *fallbackDetect(const Common::FSList &fslist) const {
|
virtual const ADGameDescription *fallbackDetect(const Common::FSList &fslist) const {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void updateGameDescriptor(GameDescriptor &desc, const ADGameDescription *realDesc);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue