From 651e3ae7923056ef6b03de03e2c5b13f7601047d Mon Sep 17 00:00:00 2001 From: SvenGDK Date: Sun, 8 Sep 2024 16:25:24 +0200 Subject: [PATCH] Linux build - Add Linux build --- .gitignore | 1 + Linux/makePSClassicsfPKG.sln | 25 + Linux/makePSClassicsfPKG/App.axaml | 10 + Linux/makePSClassicsfPKG/App.axaml.cs | 24 + Linux/makePSClassicsfPKG/MainWindow.axaml | 226 ++ Linux/makePSClassicsfPKG/MainWindow.axaml.cs | 2083 +++++++++++++++++ Linux/makePSClassicsfPKG/PS1Game.cs | 48 + Linux/makePSClassicsfPKG/PS2Game.cs | 82 + Linux/makePSClassicsfPKG/Program.cs | 22 + .../Properties/launchSettings.json | 16 + Linux/makePSClassicsfPKG/Utils.cs | 20 + Linux/makePSClassicsfPKG/app.manifest | 18 + .../makePSClassicsfPKG.csproj | 1301 ++++++++++ Linux/makePSClassicsfPKG/psicon.ico | Bin 0 -> 20257 bytes 14 files changed, 3876 insertions(+) create mode 100644 Linux/makePSClassicsfPKG.sln create mode 100644 Linux/makePSClassicsfPKG/App.axaml create mode 100644 Linux/makePSClassicsfPKG/App.axaml.cs create mode 100644 Linux/makePSClassicsfPKG/MainWindow.axaml create mode 100644 Linux/makePSClassicsfPKG/MainWindow.axaml.cs create mode 100644 Linux/makePSClassicsfPKG/PS1Game.cs create mode 100644 Linux/makePSClassicsfPKG/PS2Game.cs create mode 100644 Linux/makePSClassicsfPKG/Program.cs create mode 100644 Linux/makePSClassicsfPKG/Properties/launchSettings.json create mode 100644 Linux/makePSClassicsfPKG/Utils.cs create mode 100644 Linux/makePSClassicsfPKG/app.manifest create mode 100644 Linux/makePSClassicsfPKG/makePSClassicsfPKG.csproj create mode 100644 Linux/makePSClassicsfPKG/psicon.ico diff --git a/.gitignore b/.gitignore index 77208fa..254b4a2 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,4 @@ fastlane/test_output bin obj packages +Tools diff --git a/Linux/makePSClassicsfPKG.sln b/Linux/makePSClassicsfPKG.sln new file mode 100644 index 0000000..370db74 --- /dev/null +++ b/Linux/makePSClassicsfPKG.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35219.272 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "makePSClassicsfPKG", "makePSClassicsfPKG\makePSClassicsfPKG.csproj", "{673E992E-C1E7-47F1-9B7C-3387623B3914}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {673E992E-C1E7-47F1-9B7C-3387623B3914}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {673E992E-C1E7-47F1-9B7C-3387623B3914}.Debug|Any CPU.Build.0 = Debug|Any CPU + {673E992E-C1E7-47F1-9B7C-3387623B3914}.Release|Any CPU.ActiveCfg = Release|Any CPU + {673E992E-C1E7-47F1-9B7C-3387623B3914}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EA192E80-5CFB-4874-A996-EA7F4EED9048} + EndGlobalSection +EndGlobal diff --git a/Linux/makePSClassicsfPKG/App.axaml b/Linux/makePSClassicsfPKG/App.axaml new file mode 100644 index 0000000..c3e6a23 --- /dev/null +++ b/Linux/makePSClassicsfPKG/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/Linux/makePSClassicsfPKG/App.axaml.cs b/Linux/makePSClassicsfPKG/App.axaml.cs new file mode 100644 index 0000000..bf315e6 --- /dev/null +++ b/Linux/makePSClassicsfPKG/App.axaml.cs @@ -0,0 +1,24 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace makePSClassicsfPKG +{ + public partial class App : Application + { + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow(); + } + + base.OnFrameworkInitializationCompleted(); + } + } +} \ No newline at end of file diff --git a/Linux/makePSClassicsfPKG/MainWindow.axaml b/Linux/makePSClassicsfPKG/MainWindow.axaml new file mode 100644 index 0000000..258db0c --- /dev/null +++ b/Linux/makePSClassicsfPKG/MainWindow.axaml @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + +