mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-26 22:20:45 +00:00
Add beta changelogs
This commit is contained in:
@@ -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/";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user