diff --git a/Client Launcher/Client Launcher.csproj b/Client Launcher/Client Launcher.csproj
deleted file mode 100644
index 9c74c9de..00000000
--- a/Client Launcher/Client Launcher.csproj
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- Exe
- net5.0
- Client_Launcher
-
-
-
diff --git a/Client Launcher/Program.cs b/Client Launcher/Program.cs
deleted file mode 100644
index c7999c7c..00000000
--- a/Client Launcher/Program.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace Client_Launcher
-{
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- }
- }
-}
diff --git a/ClientLauncher/ClientLauncher.csproj b/ClientLauncher/ClientLauncher.csproj
index 20827042..41f1d5ad 100644
--- a/ClientLauncher/ClientLauncher.csproj
+++ b/ClientLauncher/ClientLauncher.csproj
@@ -2,7 +2,7 @@
Exe
- net5.0
+ net6.0
diff --git a/ClientLauncher/Program.cs b/ClientLauncher/Program.cs
index 8e40d0ec..59ff33c8 100644
--- a/ClientLauncher/Program.cs
+++ b/ClientLauncher/Program.cs
@@ -83,6 +83,10 @@ static void Main(string[] args)
processUtil.OutputReceived += (s, e) => Console.WriteLine(e);
processUtil.StartWithEvents();
proc.WaitForExit();
+ if (logs == "True")
+ {
+ Console.ReadLine();
+ }
}
static string GetEnviromentVar(string variableName)
{
diff --git a/Package/Package.appxmanifest b/Package/Package.appxmanifest
index a4c3ed5b..a3421224 100644
--- a/Package/Package.appxmanifest
+++ b/Package/Package.appxmanifest
@@ -11,7 +11,7 @@
+ Version="0.3.7.0" />
SD Launcher
diff --git a/Package/Package.wapproj b/Package/Package.wapproj
index 0504036d..d32f41f9 100644
--- a/Package/Package.wapproj
+++ b/Package/Package.wapproj
@@ -59,7 +59,7 @@
True
DB967EAAD2582A102C63D11D80EB102BA467810C
SHA256
- True
+ False
True
x86|x64|arm|arm64
C:\
diff --git a/SDLauncher UWP/App.xaml b/SDLauncher UWP/App.xaml
index 9491c7ef..f02eee77 100644
--- a/SDLauncher UWP/App.xaml
+++ b/SDLauncher UWP/App.xaml
@@ -10,12 +10,19 @@
- /Fonts/Pixeboy.ttf#Pixeboy
-
+
+
+
+ /Fonts/Pixeboy.ttf#Pixeboy
+
diff --git a/SDLauncher UWP/DataTemplates/ServerTemplate.cs b/SDLauncher UWP/DataTemplates/ServerTemplate.cs
new file mode 100644
index 00000000..f211837e
--- /dev/null
+++ b/SDLauncher UWP/DataTemplates/ServerTemplate.cs
@@ -0,0 +1,68 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Text;
+using System.Threading.Tasks;
+using Windows.UI.Xaml.Media.Imaging;
+using SDLauncher_UWP.Helpers;
+
+namespace SDLauncher_UWP.DataTemplates
+{
+ public class ServerTemplate : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged = delegate { };
+ //server
+ private string server;
+ public string Server { get => server; private set { server = value; OnPropertyChanged(); UpdateStatus(); } }
+ //Vers
+ private string ver;
+ public string Versions { get => ver; set { ver = value; OnPropertyChanged(); } }
+ //port
+ private int port;
+ public int Port { get => port; private set { port = value; OnPropertyChanged(); UpdateStatus(); } }
+ //max players
+ private int maxPlayers;
+ public int MaxPlayers { get => maxPlayers; private set { maxPlayers = value; OnPropertyChanged(); } }
+ //online players
+ private int minPlayers;
+ public int OnlinePlayers { get => minPlayers; private set { minPlayers = value; OnPropertyChanged(); } }
+ //favicon
+ private string favicon;
+ public string Favicon { get => favicon; private set { favicon = value; OnPropertyChanged(); } }
+
+ public ServerTemplate(string server, int port)
+ {
+ Server = server;
+ Port = port;
+ UpdateStatus();
+ }
+
+ public async void UpdateStatus()
+ {
+ try
+ {
+ var status = ServerStatusJSONConverter.Convert(await Util.DownloadText("https://api.mcstatus.io/status/java/" + Server.Trim() + ":" + Port.ToString()));
+ if (status.online)
+ {
+ server = status.host;
+ port = status.port;
+ MaxPlayers = status.response.players.max;
+ Versions = status.response.version.name;
+ OnlinePlayers = status.response.players.online;
+ OnPropertyChanged();
+ Favicon = status.response.favicon;
+ }
+ }
+ catch (Exception)
+ {
+
+ }
+ }
+ private void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+}
diff --git a/SDLauncher UWP/Dialogs/Login.xaml b/SDLauncher UWP/Dialogs/Login.xaml
index 0abffb11..f9dc090e 100644
--- a/SDLauncher UWP/Dialogs/Login.xaml
+++ b/SDLauncher UWP/Dialogs/Login.xaml
@@ -103,7 +103,7 @@
-