Splash+revert cache vars that didnt do anything

pull/32/head
Miepee 4 years ago
parent 8f98fdff93
commit af27f1a6e7

@ -50,11 +50,13 @@ public static class Core
public static readonly bool IsThisRunningFromWine = CheckIfRunFromWINE(); public static readonly bool IsThisRunningFromWine = CheckIfRunFromWINE();
/// <summary> /// <summary>
/// Checks if this is ran from WINE /// Checks if the Launcher is ran from WINE.
/// </summary> /// </summary>
/// <returns><see langword="true"/> if run from WINE, <see langword="false"/> if not.</returns> /// <returns><see langword="true"/> if run from WINE, <see langword="false"/> if not.</returns>
private static bool CheckIfRunFromWINE() private static bool CheckIfRunFromWINE()
{ {
// We check for wine by seeing if a reg entry exists.
// Not the best way, and could be removed from the future, but good enough for our purposes.
if (OS.IsWindows && (Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\Wine") != null)) if (OS.IsWindows && (Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\Wine") != null))
return true; return true;

@ -48,21 +48,10 @@ public static class CrossPlatformOperations
} }
} }
private static string _currentPath;
/// <summary> /// <summary>
/// Current Path where the Launcher Data is located. /// Current Path where the Launcher Data is located.
/// </summary> /// </summary>
public static string CurrentPath public static readonly string CurrentPath = GenerateCurrentPath();
{
get
{
if (_currentPath is null)
_currentPath = GenerateCurrentPath();
return _currentPath;
}
}
/// <summary> /// <summary>
/// Generates the mirror list, depending on the current Platform. /// Generates the mirror list, depending on the current Platform.

@ -55,7 +55,9 @@ public static class Splash
{ {
":(", ":(",
"All your machine are belong to MS", "All your machine are belong to MS",
"All your data are belong to us" "All your data are belong to us",
"Go to Settings to activate AM2R.",
"(Not Responding)"
}; };
/// <summary> /// <summary>
@ -73,6 +75,7 @@ public static class Splash
"The quieter you are, the more Metroids you can hear.", "The quieter you are, the more Metroids you can hear.",
"What you are referring to as AM2R, is in fact, GNU/AM2R.", "What you are referring to as AM2R, is in fact, GNU/AM2R.",
"GNOME be gone!", "GNOME be gone!",
"Kurse you KDE!",
"Go compile your own girlfriend. This one doesn't count, she's out of your league.", "Go compile your own girlfriend. This one doesn't count, she's out of your league.",
"Year 3115, NVIDIA still doesn't support Wayland.", "Year 3115, NVIDIA still doesn't support Wayland.",
"Was a mouse really that expensive, i3 users!?", "Was a mouse really that expensive, i3 users!?",

Loading…
Cancel
Save