diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs
index 883f760..96c3798 100644
--- a/Bloxstrap/Bootstrapper.cs
+++ b/Bloxstrap/Bootstrapper.cs
@@ -121,7 +121,10 @@ namespace Bloxstrap
//if (Program.IsFirstRun)
// Dialog.ShowSuccess($"{Program.ProjectName} has been installed");
//else
- await StartRoblox();
+
+ Program.SettingsManager.Save();
+
+ await StartRoblox();
Program.Exit();
}
diff --git a/Bloxstrap/Dialogs/Preferences.xaml b/Bloxstrap/Dialogs/Preferences.xaml
index 2b6b4bf..09fdf82 100644
--- a/Bloxstrap/Dialogs/Preferences.xaml
+++ b/Bloxstrap/Dialogs/Preferences.xaml
@@ -34,7 +34,7 @@
-
+
diff --git a/Bloxstrap/Helpers/Integrations/DiscordRichPresence.cs b/Bloxstrap/Helpers/Integrations/DiscordRichPresence.cs
index 141864a..5dd97e1 100644
--- a/Bloxstrap/Helpers/Integrations/DiscordRichPresence.cs
+++ b/Bloxstrap/Helpers/Integrations/DiscordRichPresence.cs
@@ -71,7 +71,6 @@ namespace Bloxstrap.Helpers.Integrations
ActivityMachineAddress = "";
await SetPresence();
}
-
}
public async void MonitorGameActivity()
diff --git a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs
index 2139872..2507dd5 100644
--- a/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs
+++ b/Bloxstrap/Helpers/Integrations/RbxFpsUnlocker.cs
@@ -70,25 +70,19 @@ namespace Bloxstrap.Helpers.Integrations
return;
}
- DateTime lastReleasePublish;
- string downloadUrl;
-
var releaseInfo = await Utilities.GetJson($"https://api.github.com/repos/{ProjectRepository}/releases/latest");
if (releaseInfo is null || releaseInfo.Assets is null)
return;
- lastReleasePublish = DateTime.Parse(releaseInfo.CreatedAt);
- downloadUrl = releaseInfo.Assets[0].BrowserDownloadUrl;
+ string downloadUrl = releaseInfo.Assets[0].BrowserDownloadUrl;
Directory.CreateDirectory(folderLocation);
if (File.Exists(fileLocation))
{
- DateTime lastDownload = File.GetCreationTimeUtc(fileLocation);
-
// no new release published, return
- if (lastDownload > lastReleasePublish)
+ if (Program.Settings.RFUVersion == releaseInfo.TagName)
return;
CheckIfRunning();
@@ -112,6 +106,8 @@ namespace Bloxstrap.Helpers.Integrations
{
await File.WriteAllTextAsync(settingsLocation, Settings);
}
+
+ Program.Settings.RFUVersion = releaseInfo.TagName;
}
}
}
diff --git a/Bloxstrap/Models/GithubRelease.cs b/Bloxstrap/Models/GithubRelease.cs
index 45f9d32..fccb971 100644
--- a/Bloxstrap/Models/GithubRelease.cs
+++ b/Bloxstrap/Models/GithubRelease.cs
@@ -4,6 +4,9 @@ namespace Bloxstrap.Models
{
public class GithubRelease
{
+ [JsonPropertyName("tag_name")]
+ public string TagName { get; set; } = null!;
+
[JsonPropertyName("name")]
public string Name { get; set; } = null!;
diff --git a/Bloxstrap/Models/SettingsFormat.cs b/Bloxstrap/Models/SettingsFormat.cs
index 75e1b88..6ed82b2 100644
--- a/Bloxstrap/Models/SettingsFormat.cs
+++ b/Bloxstrap/Models/SettingsFormat.cs
@@ -19,6 +19,8 @@ namespace Bloxstrap.Models
public bool RFUEnabled { get; set; } = false;
public bool RFUAutoclose { get; set; } = false;
+ public string RFUVersion { get; set; } = "";
+
public bool UseOldDeathSound { get; set; } = true;
public bool UseOldMouseCursor { get; set; } = false;
}
diff --git a/Bloxstrap/Program.cs b/Bloxstrap/Program.cs
index f8c9426..fea6524 100644
--- a/Bloxstrap/Program.cs
+++ b/Bloxstrap/Program.cs
@@ -132,7 +132,6 @@ namespace Bloxstrap
}
#endif
-
if (!String.IsNullOrEmpty(commandLine))
{
DeployManager.Channel = Settings.Channel;