This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 20 files changed +270
-15
lines changed
CloudSyncHelper_win32/Properties Expand file tree Collapse file tree 20 files changed +270
-15
lines changed Original file line number Diff line number Diff line change 1
- using System . ComponentModel . Composition ;
1
+ using System . Collections . Generic ;
2
+ using System . ComponentModel . Composition ;
3
+ using XElement . CloudSyncHelper . Serialization . DataTypes ;
4
+ using XElement . DotNet . System . Environment ;
2
5
3
6
namespace XElement . CloudSyncHelper . DataCreator . Data . Games
4
7
{
@@ -15,9 +18,25 @@ public CodMw3() : base( "5015F2D9-3547-4958-8CBE-CDF8E91B43A1" )
15
18
}
16
19
17
20
21
+ // TODO: Include
22
+ private List < AbstractLinkInfo > GetLinksForWin10 ( )
23
+ {
24
+ /*
25
+ * Location: <install-folder>\players2\save\
26
+ * ↑ folder link to "save" folder
27
+ * see https://pcgamingwiki.com/wiki/Call_of_Duty:_Modern_Warfare_3
28
+ */
29
+ return new List < AbstractLinkInfo > ( ) ;
30
+ }
31
+
32
+
18
33
protected override void OnImportsSatisfied ( )
19
34
{
20
- this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
35
+ var osConfigs = new List < OsConfigurationInfo >
36
+ {
37
+ this . _osConfigFactory . Get ( this . GetLinksForWin10 ( ) , OsId . Win10 )
38
+ } ;
39
+ this . DefinitionInfo = this . _definitionFactory . Get ( osConfigs ) ;
21
40
return ;
22
41
}
23
42
}
Original file line number Diff line number Diff line change @@ -16,11 +16,14 @@ public LegoBatman3() : base( "A1F8ED7C-B93F-4F32-AEFF-E63EF632618D" )
16
16
SpecialCharacters . REGISTERED_TRADEMARK ,
17
17
SpecialCharacters . TRADEMARK ) ;
18
18
this . TechnicalNameMatcher = matcher ;
19
+ return ;
19
20
}
20
21
22
+
21
23
protected override void OnImportsSatisfied ( )
22
24
{
23
25
this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
26
+ return ;
24
27
}
25
28
}
26
29
}
Original file line number Diff line number Diff line change
1
+ using System . ComponentModel . Composition ;
2
+
3
+ namespace XElement . CloudSyncHelper . DataCreator . Data . Games
4
+ {
5
+ [ Export ( typeof ( AbstractGameInfo ) ) ]
6
+ internal class LoversInADangerousSpacetime : AbstractGameInfo
7
+ {
8
+ [ ImportingConstructor ]
9
+ public LoversInADangerousSpacetime ( ) : base ( "3526A2B7-715C-4D22-88AD-BCDB5E129D9B" )
10
+ {
11
+ this . ApplicationName = "Lovers in a Dangerous Spacetime" ;
12
+ this . FolderName = this . ApplicationName ;
13
+ this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
15
+ }
16
+
17
+
18
+ protected override void OnImportsSatisfied ( )
19
+ {
20
+ this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change
1
+ using System . ComponentModel . Composition ;
2
+
3
+ namespace XElement . CloudSyncHelper . DataCreator . Data . Games
4
+ {
5
+ [ Export ( typeof ( AbstractGameInfo ) ) ]
6
+ internal class MiniMetro : AbstractGameInfo
7
+ {
8
+ [ ImportingConstructor ]
9
+ public MiniMetro ( ) : base ( "06A5DCA9-C60D-4C92-BED1-B9250766CF69" )
10
+ {
11
+ this . ApplicationName = "Mini Metro" ;
12
+ this . FolderName = "Mini Metro 2015 [Mini Metro]" ;
13
+ this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
15
+ }
16
+
17
+
18
+ protected override void OnImportsSatisfied ( )
19
+ {
20
+ this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -10,13 +10,15 @@ public OrcsMustDie2() : base( "41128DF6-5E43-45A1-9DA3-70EE2760FCFE" )
10
10
{
11
11
this . ApplicationName = "Orcs Must Die! 2" ;
12
12
this . FolderName = "Orcs Must Die 2012 [Orcs Must Die! 2]" ;
13
- this . TechnicalNameMatcher = "Orcs Must Die! 2" ;
13
+ this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
14
15
}
15
16
16
17
17
18
protected override void OnImportsSatisfied ( )
18
19
{
19
20
this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
20
22
}
21
23
}
22
24
}
Original file line number Diff line number Diff line change
1
+ using System . ComponentModel . Composition ;
2
+
3
+ namespace XElement . CloudSyncHelper . DataCreator . Data . Games
4
+ {
5
+ [ Export ( typeof ( AbstractGameInfo ) ) ]
6
+ internal class Overcooked : AbstractGameInfo
7
+ {
8
+ [ ImportingConstructor ]
9
+ public Overcooked ( ) : base ( "2C7C633B-B3B0-4B9C-BB0B-790D2B6384E7" )
10
+ {
11
+ this . ApplicationName = "Overcooked" ;
12
+ this . FolderName = "Overcooked 2016 [Overcooked]" ;
13
+ this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
15
+ }
16
+
17
+
18
+ protected override void OnImportsSatisfied ( )
19
+ {
20
+ this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ public Payday2() : base( "A48B8D74-6D6E-4E97-B32F-61BD596F6149" )
11
11
this . ApplicationName = "PAYDAY 2" ;
12
12
this . FolderName = "Payday 2013 [PAYDAY 2]" ;
13
13
this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
14
15
}
15
16
17
+
16
18
protected override void OnImportsSatisfied ( )
17
19
{
18
20
this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
19
22
}
20
23
}
21
24
}
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . ComponentModel . Composition ;
4
+ using System . IO ;
5
+ using XElement . CloudSyncHelper . Serialization . DataTypes ;
6
+ using XElement . DotNet . System . Environment ;
7
+
8
+ namespace XElement . CloudSyncHelper . DataCreator . Data . Games
9
+ {
10
+ [ Export ( typeof ( AbstractGameInfo ) ) ]
11
+ internal class Reus : AbstractGameInfo
12
+ {
13
+ [ ImportingConstructor ]
14
+ public Reus ( ) : base ( "DE8BF438-D9D5-442B-A1E9-93685B4ED382" )
15
+ {
16
+ this . ApplicationName = "Reus" ;
17
+ this . FolderName = "Reus 2013 [Reus]" ;
18
+ this . TechnicalNameMatcher = this . ApplicationName ;
19
+ return ;
20
+ }
21
+
22
+
23
+ private List < AbstractLinkInfo > GetLinksForWin10 ( )
24
+ {
25
+ var destTargetName = "Saves" ;
26
+ return new List < AbstractLinkInfo >
27
+ {
28
+ new FolderLinkInfo
29
+ {
30
+ DestinationRoot = Environment . SpecialFolder . MyDocuments ,
31
+ DestinationSubFolderPath = Path . Combine ( "Reus" ) ,
32
+ DestinationTargetName = destTargetName ,
33
+ SourceId = destTargetName
34
+ }
35
+ } ;
36
+ }
37
+
38
+
39
+ protected override void OnImportsSatisfied ( )
40
+ {
41
+ var osConfigs = new List < OsConfigurationInfo >
42
+ {
43
+ this . _osConfigFactory . Get ( this . GetLinksForWin10 ( ) , OsId . Win10 )
44
+ } ;
45
+ this . DefinitionInfo = this . _definitionFactory . Get ( osConfigs ) ;
46
+ return ;
47
+ }
48
+ }
49
+ }
Original file line number Diff line number Diff line change @@ -11,11 +11,14 @@ public RiskOfRain() : base( "F0C7E626-408D-4C70-9B41-83C6C7C6BBEC" )
11
11
this . ApplicationName = "Risk of Rain" ;
12
12
this . FolderName = "Risk of Rain 2013 [Risk of Rain]" ;
13
13
this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
14
15
}
15
16
17
+
16
18
protected override void OnImportsSatisfied ( )
17
19
{
18
20
this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
19
22
}
20
23
}
21
24
}
Original file line number Diff line number Diff line change @@ -10,12 +10,15 @@ public RocketLeague() : base( "F4B10EAD-6195-47F3-A99E-CBDB4C93029C" )
10
10
{
11
11
this . ApplicationName = "Rocket League" ;
12
12
this . FolderName = "Rocket League 2015 [Rocket League]" ;
13
- this . TechnicalNameMatcher = "Rocket League" ;
13
+ this . TechnicalNameMatcher = this . ApplicationName ;
14
+ return ;
14
15
}
15
16
17
+
16
18
protected override void OnImportsSatisfied ( )
17
19
{
18
20
this . DefinitionInfo = this . _definitionFactory . GetSteamCloud ( ) ;
21
+ return ;
19
22
}
20
23
}
21
24
}
You can’t perform that action at this time.
0 commit comments