mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 10:36:44 +00:00
Prepare for SDL
This commit is contained in:
parent
e0afdf177c
commit
db3956600b
5 changed files with 48 additions and 2 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "SDL2-CS"]
|
||||
path = SDL2-CS
|
||||
url = https://github.com/flibitijibibo/SDL2-CS.git
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
25
Capy64/SDLEntry.cs
Normal file
25
Capy64/SDLEntry.cs
Normal file
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
1
SDL2-CS
Submodule
1
SDL2-CS
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f8c6fc407fbb22072fdafcda918aec52b2102519
|
Loading…
Reference in a new issue