diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..529da8d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "SDL2-CS"] + path = SDL2-CS + url = https://github.com/flibitijibibo/SDL2-CS.git diff --git a/Capy64.sln b/Capy64.sln index 77a85cf..c8cebe9 100644 --- a/Capy64.sln +++ b/Capy64.sln @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Capy64", "Capy64\Capy64.csp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExamplePlugin", "ExamplePlugin\ExamplePlugin.csproj", "{7176CC2D-BB9E-4512-B216-CC49E9F8A89D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SDL2-CS.Core", "SDL2-CS\SDL2-CS.Core.csproj", "{0553E50B-571B-4EF5-9A94-9B94612DBB59}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {7176CC2D-BB9E-4512-B216-CC49E9F8A89D}.Debug|Any CPU.Build.0 = Debug|Any CPU {7176CC2D-BB9E-4512-B216-CC49E9F8A89D}.Release|Any CPU.ActiveCfg = Release|Any CPU {7176CC2D-BB9E-4512-B216-CC49E9F8A89D}.Release|Any CPU.Build.0 = Release|Any CPU + {0553E50B-571B-4EF5-9A94-9B94612DBB59}.Debug|Any CPU.ActiveCfg = Debug|x64 + {0553E50B-571B-4EF5-9A94-9B94612DBB59}.Debug|Any CPU.Build.0 = Debug|x64 + {0553E50B-571B-4EF5-9A94-9B94612DBB59}.Release|Any CPU.ActiveCfg = Release|x64 + {0553E50B-571B-4EF5-9A94-9B94612DBB59}.Release|Any CPU.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Capy64/Program.cs b/Capy64/Program.cs index 1278760..db9bb22 100644 --- a/Capy64/Program.cs +++ b/Capy64/Program.cs @@ -13,6 +13,17 @@ // See the License for the specific language governing permissions and // limitations under the License. -using var game = new Capy64.Capy64(); +using Capy64; -game.Run(); +if (args.Length > 0 && args[0] == "sdl") +{ + var entry = new SDLEntry(); + + entry.Run(); +} +else +{ + using var game = new Capy64.Capy64(); + + game.Run(); +} \ No newline at end of file diff --git a/Capy64/SDLEntry.cs b/Capy64/SDLEntry.cs new file mode 100644 index 0000000..6678f05 --- /dev/null +++ b/Capy64/SDLEntry.cs @@ -0,0 +1,25 @@ +// This file is part of Capy64 - https://github.com/Ale32bit/Capy64 +// Copyright 2023 Alessandro "AlexDevs" Proto +// +// Licensed under the Apache License, Version 2.0 (the "License"). +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Capy64; + +public class SDLEntry +{ + public void Run() + { + + } +} + diff --git a/SDL2-CS b/SDL2-CS new file mode 160000 index 0000000..f8c6fc4 --- /dev/null +++ b/SDL2-CS @@ -0,0 +1 @@ +Subproject commit f8c6fc407fbb22072fdafcda918aec52b2102519