Override GOG installDir for The Witch's Love Diary
This commit is contained in:
parent
f944b9f1c9
commit
b5392a4ae3
3 changed files with 21 additions and 4 deletions
|
@ -216,6 +216,15 @@ function integrateOverriddenData(game: Game, override: OverriddenGame) {
|
|||
game.id.flatpak = override.id.flatpak;
|
||||
}
|
||||
}
|
||||
|
||||
if (override.installDir) {
|
||||
if (game.installDir === undefined) {
|
||||
game.installDir = {};
|
||||
}
|
||||
for (const key in override.installDir) {
|
||||
game.installDir[key] = {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function hasAnyData(game: Game): boolean {
|
||||
|
@ -246,6 +255,12 @@ export class ManifestFile extends YamlFile<Manifest> {
|
|||
|
||||
const game: Game = {};
|
||||
integrateWikiData(game, info);
|
||||
|
||||
if (game.steam?.id !== undefined) {
|
||||
const appInfo = await steamCache.getAppInfo(game.steam.id);
|
||||
integrateSteamData(game, appInfo);
|
||||
}
|
||||
|
||||
if (overridden) {
|
||||
integrateOverriddenData(game, overridden);
|
||||
}
|
||||
|
@ -253,10 +268,7 @@ export class ManifestFile extends YamlFile<Manifest> {
|
|||
if (!hasAnyData(game)) {
|
||||
continue;
|
||||
}
|
||||
if (game.steam?.id !== undefined) {
|
||||
const appInfo = await steamCache.getAppInfo(game.steam.id);
|
||||
integrateSteamData(game, appInfo);
|
||||
}
|
||||
|
||||
this.data[title] = game;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue