2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-03 11:09:40 -04:00
ChrisDill ec4f2f0472 Added Test.CoreRT
- Basic command line menu for core project.
- Made a copy of Test.Core that uses corert compiler.
2018-10-23 09:13:56 +01:00

36 lines
1.0 KiB
C#

using System;
using System.IO;
using Raylib;
using static Raylib.Raylib;
namespace Test.NetCore
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Welcome to raylib-cs!");
var dir = Environment.CurrentDirectory;
while (true)
{
Console.WriteLine("Select raylib example(core/core_2d_camera)");
var filePath = Console.ReadLine();;
Console.WriteLine("Running example " + filePath + "...");
dir = Directory.GetParent(dir).FullName;
dir = Directory.GetParent(dir).FullName;
dir = Directory.GetParent(dir).FullName;
dir = Directory.GetParent(dir).FullName;
dir += "\\Examples\\";
var folder = dir + Path.GetDirectoryName(filePath);
ChangeDirectory(folder);
Type.GetType(filePath)?.GetMethod("Main")?.Invoke(null, args);
Console.WriteLine();
}
}
}
}