mirror of
https://github.com/flibitijibibo/RogueLegacy1.git
synced 2025-12-05 18:20:42 -08:00
This commit is contained in:
parent
8daa0242a6
commit
59a6fbec87
1 changed files with 16 additions and 0 deletions
|
|
@ -10,7 +10,19 @@ namespace RogueCastle
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
#if NET
|
||||||
|
static void Main(string[] realArgs)
|
||||||
|
{
|
||||||
|
args = realArgs;
|
||||||
|
SDL.SDL_RunApp(0, IntPtr.Zero, RealMain, IntPtr.Zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
static string[] args;
|
||||||
|
|
||||||
|
static int RealMain(int argc, IntPtr argv)
|
||||||
|
#else
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3");
|
Environment.SetEnvironmentVariable("FNA_PLATFORM_BACKEND", "SDL3");
|
||||||
|
|
||||||
|
|
@ -123,6 +135,10 @@ namespace RogueCastle
|
||||||
// #endif
|
// #endif
|
||||||
//}
|
//}
|
||||||
Steamworks.Shutdown();
|
Steamworks.Shutdown();
|
||||||
|
|
||||||
|
#if NET
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly string OSDir = GetOSDir();
|
public static readonly string OSDir = GetOSDir();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue