![]() |
|
testbed - Printable Version +- bigpete.net (https://test.bigpete.net) +-- Forum: Administrative (https://test.bigpete.net/forumdisplay.php?fid=4) +--- Forum: Mod Forum (https://test.bigpete.net/forumdisplay.php?fid=17) +--- Thread: testbed (/showthread.php?tid=25) Pages:
1
2
|
testbed - BigPete - 02-26-2026 Code: using System;
using System.Globalization;
using System.IO;
using PixelVision8.Player;
namespace PixelVision8.Runner
{
public static class Program
{
[STAThread]
public static void Main(string[] args)
{
// Fix a bug related to parsing numbers in Europe, among other things
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture;
CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture;
var root = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Content");
// TODO there is a bug where this will not go to the boot error
using (var game = new CSharpRunner(root, typeof(CustomGameChip).ToString()))
{
game.Run();
}
}
}
} |