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

Commit

Permalink
fixed a bug that requried admin perms when setup was used
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Barker committed Dec 15, 2020
1 parent 4c00682 commit 362b9c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion AmoungUsLauncher/AmoungUsLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="AmoungUsLauncher_TemporaryKey.pfx" />
<None Include="regionInfo.dat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
10 changes: 8 additions & 2 deletions AmoungUsLauncher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,20 @@ public MainWindow()

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

private string ReadGamePath()
{
try
{
string[] data = System.IO.File.ReadAllText("./GameData.txt").Split(';');
string LocalAppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string SkeldLauncherDataPath = LocalAppDataPath + @"Skeld Launcher\";
if (!Directory.Exists(SkeldLauncherDataPath)) { Directory.CreateDirectory(SkeldLauncherDataPath); }
string[] data = System.IO.File.ReadAllText(SkeldLauncherDataPath + "GameData.txt").Split(';');
this.enableCrewlink = (data[1] == "1");
return data[0];
}
Expand Down
4 changes: 2 additions & 2 deletions AmoungUsLauncher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
6 changes: 3 additions & 3 deletions Setup.x64/Setup.x64.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -2429,7 +2429,7 @@
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Skeld.Net Launcher 64 Bit"
"ProductCode" = "8:{15AB0261-DE5F-4E83-9DC7-7AD44801CEB6}"
"PackageCode" = "8:{FFF9EF35-C4A7-4C6B-8239-E87B1B296549}"
"PackageCode" = "8:{47CB21ED-E206-4F75-94F3-473CF56337A0}"
"UpgradeCode" = "8:{0ABB6619-14A5-4DFC-A452-1AE8C14ADA0B}"
"AspNetVersion" = "8:2.0.50727.0"
"RestartWWWService" = "11:FALSE"
Expand Down Expand Up @@ -2560,7 +2560,7 @@
"Target" = "8:_2538C5C1F77F46C7830BAC3200CC0BCC"
"Folder" = "8:_F9114AA934EF4B8A86D866DC9523EAE7"
"WorkingFolder" = "8:_CB23D0BFEA554CED94C1CB8F64058400"
"Icon" = "8:"
"Icon" = "8:_A9114DE2832649A38943EE3EDD4300DD"
"Feature" = "8:"
}
"{970C0BB2-C7D0-45D7-ABFA-7EC378858BC0}:_9A1EEF51EBE04CF78A03AEE4FDC81D6A"
Expand All @@ -2574,7 +2574,7 @@
"Target" = "8:_2538C5C1F77F46C7830BAC3200CC0BCC"
"Folder" = "8:_AA1B671ED94747F69CCF5FC8643B6807"
"WorkingFolder" = "8:_CB23D0BFEA554CED94C1CB8F64058400"
"Icon" = "8:"
"Icon" = "8:_A9114DE2832649A38943EE3EDD4300DD"
"Feature" = "8:"
}
}
Expand Down

0 comments on commit 362b9c5

Please sign in to comment.