From eafa31f6d3505bc815ea5709576e13ae868dc22b Mon Sep 17 00:00:00 2001 From: EnokViking Date: Tue, 16 Jan 2024 10:55:17 +0100 Subject: [PATCH] added extra keyword case @checked to support raygui binding, set current culture to invariant to fix float parsing --- generator/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/Program.cs b/generator/Program.cs index 5fe72ba..4352cfe 100644 --- a/generator/Program.cs +++ b/generator/Program.cs @@ -3,6 +3,7 @@ using System; using System.Linq; using System.Text; using System.Text.RegularExpressions; +using System.Globalization; namespace RaylibBeefGenerator { @@ -42,6 +43,7 @@ namespace RaylibBeefGenerator public static void Main(string[] args) { + Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Console.WriteLine($"Generating files at {OutputDir}"); Console.WriteLine($"..."); @@ -365,6 +367,7 @@ namespace RaylibBeefGenerator input = ReplaceWholeWord(input, "box", "@box"); input = ReplaceWholeWord(input, "params", "@params"); input = ReplaceWholeWord(input, "readonly", "@readonly"); + input = ReplaceWholeWord(input, "checked", "@checked"); return input; }