mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 02:35:29 +00:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PckStudio
|
|
{
|
|
static class Program
|
|
{
|
|
public static readonly string BaseAPIUrl = "http://api.pckstudio.xyz/api/pck";
|
|
public static readonly string BackUpAPIUrl = "https://raw.githubusercontent.com/PhoenixARC/pckstudio.tk/main/studio/PCK/api/";
|
|
public static readonly string AppData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "PCK-Studio");
|
|
public static readonly string AppDataCache = Path.Combine(AppData, "cache");
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
#if DEBUG
|
|
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
|
|
#endif
|
|
|
|
System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
|
|
|
|
var f = new MainForm();
|
|
if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck"))
|
|
f.LoadFromPath(args[0]);
|
|
Application.Run(f);
|
|
}
|
|
}
|
|
}
|