diff --git a/mobile/AppShell.xaml b/mobile/AppShell.xaml index db76f1b..8218c1b 100644 --- a/mobile/AppShell.xaml +++ b/mobile/AppShell.xaml @@ -4,11 +4,94 @@ xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:PS5UploadMobile" - Shell.FlyoutBehavior="Disabled"> + xmlns:pages="clr-namespace:PS5UploadMobile.Pages" + Shell.FlyoutBehavior="Flyout" + Shell.BackgroundColor="#1E1E1E" + Shell.ForegroundColor="White" + Shell.TitleColor="White" + Shell.FlyoutBackgroundColor="#FFFFFF" + Title="PS5 Upload Suite"> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile/MainPage.xaml.cs b/mobile/MainPage.xaml.cs index 86f31c7..0c777c9 100644 --- a/mobile/MainPage.xaml.cs +++ b/mobile/MainPage.xaml.cs @@ -310,6 +310,11 @@ public partial class MainPage : ContentPage AddLog($"Connecting to {IpEntry.Text}:{PortEntry.Text}..."); bool connected = await _uploadService.ConnectAsync(); + // Also establish shared protocol connection for other tabs (Games, Saves, Screenshots, Hardware, Shell, Mount) + int portNum = int.TryParse(PortEntry.Text, out var p) ? p : 9113; + bool sharedOk = await ConnectionManager.Instance.ConnectAsync(IpEntry.Text, portNum); + AddLog(sharedOk ? "Shared protocol connected (all tabs ready)" : "Shared protocol connection failed โ€” other tabs may not work"); + if (connected) { StatusLabel.Text = "Connected โœ“"; @@ -332,6 +337,7 @@ public partial class MainPage : ContentPage private async void OnDisconnectClicked(object sender, EventArgs e) { await _uploadService.DisconnectAsync(); + ConnectionManager.Instance.Disconnect(); StatusLabel.Text = "Disconnected"; StatusLabel.TextColor = Colors.Orange; diff --git a/mobile/PS5UploadMobile.csproj b/mobile/PS5UploadMobile.csproj index 7da9080..36675f3 100644 --- a/mobile/PS5UploadMobile.csproj +++ b/mobile/PS5UploadMobile.csproj @@ -23,6 +23,11 @@ Platforms\Android\AndroidManifest.xml + + + false + true + $(NoWarn);NETSDK1202 diff --git a/mobile/Pages/GamesPage.xaml b/mobile/Pages/GamesPage.xaml new file mode 100644 index 0000000..dc46bc0 --- /dev/null +++ b/mobile/Pages/GamesPage.xaml @@ -0,0 +1,49 @@ + + + + + + +