Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ namespace BfmeFoundationProject.AllInOneLauncher.Core;

public static class LauncherUpdateManager
{
public static string LauncherAppDirectory => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "BFME All In One Launcher");
public static string LauncherAppDirectory => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "BFME All In One Launcher");

public static string LauncherUserDataDirectory => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "BFME All In One Launcher");

public static async void CheckForUpdates()
{
Expand All @@ -25,6 +27,9 @@ public static async void CheckForUpdates()
if (!Directory.Exists(LauncherAppDirectory))
Directory.CreateDirectory(LauncherAppDirectory);

if (!Directory.Exists(LauncherUserDataDirectory))
Directory.CreateDirectory(LauncherUserDataDirectory);

string curentVersionHash = "";
string latestVersionHash = "";

Expand All @@ -45,14 +50,14 @@ public static async void CheckForUpdates()

MainWindow.Instance.Dispatcher.Invoke(() =>
{
if (!File.Exists(Path.Combine(LauncherUpdateManager.LauncherAppDirectory, "update_2_complete.txt")))
if (!File.Exists(Path.Combine(LauncherUpdateManager.LauncherUserDataDirectory, "update_2_complete.txt")))
{
Properties.Settings.Default.ArenaUpdateBranch = "main";
Properties.Settings.Default.Save();

PopupVisualizer.ShowPopup(new DonatePopup());

File.WriteAllText(Path.Combine(LauncherUpdateManager.LauncherAppDirectory, "update_2_complete.txt"), "1");
File.WriteAllText(Path.Combine(LauncherUpdateManager.LauncherUserDataDirectory, "update_2_complete.txt"), "1");
}
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public static class BuildInfo
{
public static readonly string BuildIdentifier = "1228-1440";
public static readonly string BuildIdentifier = "0727-1315";
}