Add handling of {{p|ubisoftconnect}}, and fix store assignment when you buy a game on Steam but the saves are in the Ubisoft Connect root
This commit is contained in:
parent
7489a7834e
commit
1e65ea805a
2 changed files with 34 additions and 21 deletions
|
@ -18941,32 +18941,33 @@ Assassin's Creed Unity:
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
store: uplay
|
store: uplay
|
||||||
|
<root>/savegames/<storeUserId>/857:
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- store: uplay
|
||||||
<winDocuments>/Assassin's Creed Unity/ACU.ini:
|
<winDocuments>/Assassin's Creed Unity/ACU.ini:
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
'{{P|ubisoftconnect}}/savegames/<storeUserId>/857':
|
|
||||||
tags:
|
|
||||||
- save
|
|
||||||
when:
|
|
||||||
- store: steam
|
|
||||||
installDir:
|
installDir:
|
||||||
Assassin's Creed Unity: {}
|
Assassin's Creed Unity: {}
|
||||||
steam:
|
steam:
|
||||||
id: 289650
|
id: 289650
|
||||||
Assassin's Creed Valhalla:
|
Assassin's Creed Valhalla:
|
||||||
files:
|
files:
|
||||||
|
<root>/savegames/<storeUserId>/13504:
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
store: uplay
|
||||||
<winDocuments>/Assassin's Creed Valhalla:
|
<winDocuments>/Assassin's Creed Valhalla:
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
'{{p|ubisoftconnect}}/savegames/<storeUserId>/13504':
|
|
||||||
tags:
|
|
||||||
- save
|
|
||||||
when:
|
|
||||||
- os: windows
|
|
||||||
'Assassin''s Creed: Brotherhood':
|
'Assassin''s Creed: Brotherhood':
|
||||||
files:
|
files:
|
||||||
<home>/Saved Games/Assassin's Creed Brotherhood:
|
<home>/Saved Games/Assassin's Creed Brotherhood:
|
||||||
|
@ -124943,16 +124944,17 @@ Immortals:
|
||||||
id: 883270
|
id: 883270
|
||||||
Immortals Fenyx Rising:
|
Immortals Fenyx Rising:
|
||||||
files:
|
files:
|
||||||
|
<root>/savegames/<storeUserId>/5405:
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
store: uplay
|
||||||
<winDocuments>/Immortals Fenyx Rising:
|
<winDocuments>/Immortals Fenyx Rising:
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
'{{p|ubisoftconnect}}/savegames/<storeUserId>/5405':
|
|
||||||
tags:
|
|
||||||
- save
|
|
||||||
when:
|
|
||||||
- os: windows
|
|
||||||
Immune - True Survival:
|
Immune - True Survival:
|
||||||
installDir:
|
installDir:
|
||||||
Immune: {}
|
Immune: {}
|
||||||
|
@ -286813,16 +286815,17 @@ Watch Dogs 2:
|
||||||
id: 447040
|
id: 447040
|
||||||
'Watch Dogs: Legion':
|
'Watch Dogs: Legion':
|
||||||
files:
|
files:
|
||||||
|
<root>/savegames/<storeUserId>/3353:
|
||||||
|
tags:
|
||||||
|
- save
|
||||||
|
when:
|
||||||
|
- os: windows
|
||||||
|
store: uplay
|
||||||
<winDocuments>/My Games/Watch Dogs Legion/WD3_GamerProfile.xml:
|
<winDocuments>/My Games/Watch Dogs Legion/WD3_GamerProfile.xml:
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
when:
|
when:
|
||||||
- os: windows
|
- os: windows
|
||||||
'{{p|ubisoftconnect}}/savegames/<storeUserId>/3353':
|
|
||||||
tags:
|
|
||||||
- save
|
|
||||||
when:
|
|
||||||
- os: windows
|
|
||||||
registry:
|
registry:
|
||||||
HKEY_CURRENT_USER/SOFTWARE/Ubisoft/WatchDogsLegion:
|
HKEY_CURRENT_USER/SOFTWARE/Ubisoft/WatchDogsLegion:
|
||||||
tags:
|
tags:
|
||||||
|
|
12
src/wiki.ts
12
src/wiki.ts
|
@ -124,6 +124,12 @@ const PATH_ARGS: { [arg: string]: { mapped: string, when?: Constraint, registry?
|
||||||
store: "uplay"
|
store: "uplay"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
ubisoftconnect: {
|
||||||
|
mapped: "<root>",
|
||||||
|
when: {
|
||||||
|
store: "uplay"
|
||||||
|
},
|
||||||
|
},
|
||||||
hkcu: {
|
hkcu: {
|
||||||
mapped: "HKEY_CURRENT_USER",
|
mapped: "HKEY_CURRENT_USER",
|
||||||
when: { os: "windows" },
|
when: { os: "windows" },
|
||||||
|
@ -400,7 +406,11 @@ function getConstraintFromSystem(system: string, path: string): Constraint {
|
||||||
constraint.store = "origin";
|
constraint.store = "origin";
|
||||||
} else {
|
} else {
|
||||||
constraint.os = parseOs(system);
|
constraint.os = parseOs(system);
|
||||||
constraint.store = getStoreConstraintFromPath(path);
|
}
|
||||||
|
|
||||||
|
const storeFromPath = getStoreConstraintFromPath(path);
|
||||||
|
if (storeFromPath !== undefined) {
|
||||||
|
constraint.store = storeFromPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
return constraint;
|
return constraint;
|
||||||
|
|
Reference in a new issue