Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit e5206cf

Browse files
authored
Merge pull request #15 from XElementDev/AdminPrivilegesIssue_20180630
AdminPrivilegesIssue_20180630
2 parents 461708e + d32dd34 commit e5206cf

File tree

20 files changed

+270
-15
lines changed

20 files changed

+270
-15
lines changed

DataCreator/DataCreator/Data/Games/CodMw3.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
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;
25

36
namespace XElement.CloudSyncHelper.DataCreator.Data.Games
47
{
@@ -15,9 +18,25 @@ public CodMw3() : base( "5015F2D9-3547-4958-8CBE-CDF8E91B43A1" )
1518
}
1619

1720

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+
1833
protected override void OnImportsSatisfied()
1934
{
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 );
2140
return;
2241
}
2342
}

DataCreator/DataCreator/Data/Games/LegoBatman3.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ public LegoBatman3() : base( "A1F8ED7C-B93F-4F32-AEFF-E63EF632618D" )
1616
SpecialCharacters.REGISTERED_TRADEMARK,
1717
SpecialCharacters.TRADEMARK );
1818
this.TechnicalNameMatcher = matcher;
19+
return;
1920
}
2021

22+
2123
protected override void OnImportsSatisfied()
2224
{
2325
this.DefinitionInfo = this._definitionFactory.GetSteamCloud();
26+
return;
2427
}
2528
}
2629
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

DataCreator/DataCreator/Data/Games/OrcsMustDie2.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ public OrcsMustDie2() : base( "41128DF6-5E43-45A1-9DA3-70EE2760FCFE" )
1010
{
1111
this.ApplicationName = "Orcs Must Die! 2";
1212
this.FolderName = "Orcs Must Die 2012 [Orcs Must Die! 2]";
13-
this.TechnicalNameMatcher = "Orcs Must Die! 2";
13+
this.TechnicalNameMatcher = this.ApplicationName;
14+
return;
1415
}
1516

1617

1718
protected override void OnImportsSatisfied()
1819
{
1920
this.DefinitionInfo = this._definitionFactory.GetSteamCloud();
21+
return;
2022
}
2123
}
2224
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

DataCreator/DataCreator/Data/Games/Payday2.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ public Payday2() : base( "A48B8D74-6D6E-4E97-B32F-61BD596F6149" )
1111
this.ApplicationName = "PAYDAY 2";
1212
this.FolderName = "Payday 2013 [PAYDAY 2]";
1313
this.TechnicalNameMatcher = this.ApplicationName;
14+
return;
1415
}
1516

17+
1618
protected override void OnImportsSatisfied()
1719
{
1820
this.DefinitionInfo = this._definitionFactory.GetSteamCloud();
21+
return;
1922
}
2023
}
2124
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
}

DataCreator/DataCreator/Data/Games/RiskOfRain.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ public RiskOfRain() : base( "F0C7E626-408D-4C70-9B41-83C6C7C6BBEC" )
1111
this.ApplicationName = "Risk of Rain";
1212
this.FolderName = "Risk of Rain 2013 [Risk of Rain]";
1313
this.TechnicalNameMatcher = this.ApplicationName;
14+
return;
1415
}
1516

17+
1618
protected override void OnImportsSatisfied()
1719
{
1820
this.DefinitionInfo = this._definitionFactory.GetSteamCloud();
21+
return;
1922
}
2023
}
2124
}

DataCreator/DataCreator/Data/Games/RocketLeague.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ public RocketLeague() : base( "F4B10EAD-6195-47F3-A99E-CBDB4C93029C" )
1010
{
1111
this.ApplicationName = "Rocket League";
1212
this.FolderName = "Rocket League 2015 [Rocket League]";
13-
this.TechnicalNameMatcher = "Rocket League";
13+
this.TechnicalNameMatcher = this.ApplicationName;
14+
return;
1415
}
1516

17+
1618
protected override void OnImportsSatisfied()
1719
{
1820
this.DefinitionInfo = this._definitionFactory.GetSteamCloud();
21+
return;
1922
}
2023
}
2124
}

0 commit comments

Comments
 (0)