Add extra Steam/GOG IDs to manifest
This commit is contained in:
parent
fb7a3d26f3
commit
1e31ede551
4 changed files with 32 additions and 0 deletions
|
@ -104038,6 +104038,9 @@ Command & Conquer:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
|
id:
|
||||||
|
steamExtra:
|
||||||
|
- 24810
|
||||||
installDir:
|
installDir:
|
||||||
Command and Conquer 3 Tiberium Wars: {}
|
Command and Conquer 3 Tiberium Wars: {}
|
||||||
launch:
|
launch:
|
||||||
|
|
|
@ -110,3 +110,11 @@ additionalProperties:
|
||||||
properties:
|
properties:
|
||||||
flatpak:
|
flatpak:
|
||||||
type: string
|
type: string
|
||||||
|
gogExtra:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
steamExtra:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
|
|
@ -91,3 +91,11 @@ additionalProperties:
|
||||||
properties:
|
properties:
|
||||||
flatpak:
|
flatpak:
|
||||||
type: string
|
type: string
|
||||||
|
gogExtra:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
steamExtra:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
|
|
@ -45,6 +45,8 @@ export interface Game {
|
||||||
};
|
};
|
||||||
id?: {
|
id?: {
|
||||||
flatpak?: string,
|
flatpak?: string,
|
||||||
|
gogExtra?: Array<number>,
|
||||||
|
steamExtra?: Array<number>,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,15 +84,26 @@ function doLaunchPathsMatch(fromSteam: string | undefined, fromManifest: string
|
||||||
}
|
}
|
||||||
|
|
||||||
function integrateWikiData(game: Game, cache: WikiGameCache[""]): void {
|
function integrateWikiData(game: Game, cache: WikiGameCache[""]): void {
|
||||||
|
game.id = {};
|
||||||
if (cache.steam !== undefined) {
|
if (cache.steam !== undefined) {
|
||||||
game.steam = { id: cache.steam };
|
game.steam = { id: cache.steam };
|
||||||
}
|
}
|
||||||
|
if (cache.steamSide !== undefined) {
|
||||||
|
game.id.steamExtra = cache.steamSide;
|
||||||
|
}
|
||||||
if (cache.gog !== undefined) {
|
if (cache.gog !== undefined) {
|
||||||
game.gog = { id: cache.gog };
|
game.gog = { id: cache.gog };
|
||||||
}
|
}
|
||||||
|
if (cache.gogSide !== undefined) {
|
||||||
|
game.id.gogExtra = cache.gogSide;
|
||||||
|
}
|
||||||
const info = parseTemplates(cache.templates ?? []);
|
const info = parseTemplates(cache.templates ?? []);
|
||||||
game.files = info.files;
|
game.files = info.files;
|
||||||
game.registry = info.registry;
|
game.registry = info.registry;
|
||||||
|
|
||||||
|
if (game.id.flatpak === undefined && game.id.gogExtra === undefined && game.id.steamExtra === undefined) {
|
||||||
|
delete game.id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function integrateSteamData(game: Game, appInfo: SteamGameCache[""] | undefined): void {
|
function integrateSteamData(game: Game, appInfo: SteamGameCache[""] | undefined): void {
|
||||||
|
|
Reference in a new issue