diff --git a/MinecraftUSkinEditor/Classes/Network.cs b/MinecraftUSkinEditor/Classes/Network.cs index 131faafa..03fa1f5b 100644 --- a/MinecraftUSkinEditor/Classes/Network.cs +++ b/MinecraftUSkinEditor/Classes/Network.cs @@ -8,7 +8,7 @@ namespace PckStudio.Classes { public static string Version = "6.4"; public static bool Beta = true; - public static bool Portable = true; + public static bool Portable = false; public static bool NeedsUpdate = false; public static string MainURL = "https://www.pckstudio.xyz/"; public static string BackURL = "http://phoenixarc.ddns.net/"; diff --git a/MinecraftUSkinEditor/Forms/Form1.cs b/MinecraftUSkinEditor/Forms/Form1.cs index 7b0bc55e..fc8d7a36 100644 --- a/MinecraftUSkinEditor/Forms/Form1.cs +++ b/MinecraftUSkinEditor/Forms/Form1.cs @@ -1622,11 +1622,23 @@ namespace PckStudio { using (WebClient client = new WebClient()) { - if(isdebug) - File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text)); - else - File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text)); + if (Classes.Network.Beta) + { + if (isdebug) + File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text.Replace("ChangeLog", "BetaChangeLog"))) ; + else + File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text.Replace("ChangeLog", "BetaChangeLog"))); richTextBoxChangelog.Text = File.ReadAllText(appData + "pckStudioChangelog.txt"); + + } + else + { + if (isdebug) + File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text)); + else + File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text)); + richTextBoxChangelog.Text = File.ReadAllText(appData + "pckStudioChangelog.txt"); + } } } catch diff --git a/PckStudio.Installer/Product.wxs b/PckStudio.Installer/Product.wxs index f4b69753..2e40bac5 100644 --- a/PckStudio.Installer/Product.wxs +++ b/PckStudio.Installer/Product.wxs @@ -3,7 +3,7 @@