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

Commit 362b9c5

Browse files
author
Martin Barker
committed
fixed a bug that requried admin perms when setup was used
1 parent 4c00682 commit 362b9c5

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

AmoungUsLauncher/AmoungUsLauncher.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
<Generator>ResXFileCodeGenerator</Generator>
161161
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
162162
</EmbeddedResource>
163-
<None Include="AmoungUsLauncher_TemporaryKey.pfx" />
164163
<None Include="regionInfo.dat">
165164
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
166165
</None>

AmoungUsLauncher/MainWindow.xaml.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@ public MainWindow()
3636

3737
private void SaveGamePath()
3838
{
39-
System.IO.File.WriteAllText("./GameData.txt", GamePath + ";" + (enableCrewlink?"1":"0"));
39+
string LocalAppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
40+
string SkeldLauncherDataPath = LocalAppDataPath + @"Skeld Launcher\";
41+
if (!Directory.Exists(SkeldLauncherDataPath)) { Directory.CreateDirectory(SkeldLauncherDataPath); }
42+
System.IO.File.WriteAllText(SkeldLauncherDataPath+"GameData.txt", GamePath + ";" + (enableCrewlink?"1":"0"));
4043
}
4144

4245
private string ReadGamePath()
4346
{
4447
try
4548
{
46-
string[] data = System.IO.File.ReadAllText("./GameData.txt").Split(';');
49+
string LocalAppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
50+
string SkeldLauncherDataPath = LocalAppDataPath + @"Skeld Launcher\";
51+
if (!Directory.Exists(SkeldLauncherDataPath)) { Directory.CreateDirectory(SkeldLauncherDataPath); }
52+
string[] data = System.IO.File.ReadAllText(SkeldLauncherDataPath + "GameData.txt").Split(';');
4753
this.enableCrewlink = (data[1] == "1");
4854
return data[0];
4955
}

AmoungUsLauncher/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.1.0.0")]
55-
[assembly: AssemblyFileVersion("1.1.0.0")]
54+
[assembly: AssemblyVersion("1.1.1.0")]
55+
[assembly: AssemblyFileVersion("1.1.1.0")]

Setup.x64/Setup.x64.vdproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,7 @@
24292429
"Name" = "8:Microsoft Visual Studio"
24302430
"ProductName" = "8:Skeld.Net Launcher 64 Bit"
24312431
"ProductCode" = "8:{15AB0261-DE5F-4E83-9DC7-7AD44801CEB6}"
2432-
"PackageCode" = "8:{FFF9EF35-C4A7-4C6B-8239-E87B1B296549}"
2432+
"PackageCode" = "8:{47CB21ED-E206-4F75-94F3-473CF56337A0}"
24332433
"UpgradeCode" = "8:{0ABB6619-14A5-4DFC-A452-1AE8C14ADA0B}"
24342434
"AspNetVersion" = "8:2.0.50727.0"
24352435
"RestartWWWService" = "11:FALSE"
@@ -2560,7 +2560,7 @@
25602560
"Target" = "8:_2538C5C1F77F46C7830BAC3200CC0BCC"
25612561
"Folder" = "8:_F9114AA934EF4B8A86D866DC9523EAE7"
25622562
"WorkingFolder" = "8:_CB23D0BFEA554CED94C1CB8F64058400"
2563-
"Icon" = "8:"
2563+
"Icon" = "8:_A9114DE2832649A38943EE3EDD4300DD"
25642564
"Feature" = "8:"
25652565
}
25662566
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_9A1EEF51EBE04CF78A03AEE4FDC81D6A"
@@ -2574,7 +2574,7 @@
25742574
"Target" = "8:_2538C5C1F77F46C7830BAC3200CC0BCC"
25752575
"Folder" = "8:_AA1B671ED94747F69CCF5FC8643B6807"
25762576
"WorkingFolder" = "8:_CB23D0BFEA554CED94C1CB8F64058400"
2577-
"Icon" = "8:"
2577+
"Icon" = "8:_A9114DE2832649A38943EE3EDD4300DD"
25782578
"Feature" = "8:"
25792579
}
25802580
}

0 commit comments

Comments
 (0)