added extra keyword case @checked to support raygui binding, set current culture to invariant to fix float parsing

This commit is contained in:
EnokViking 2024-01-16 10:55:17 +01:00
parent fe7f9d32e3
commit eafa31f6d3

View file

@ -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;
}