map ambiguous language codes depending on the game region

This commit is contained in:
13xforever
2025-08-06 14:06:57 +05:00
parent 21bad27f8d
commit a2474f1e29
2 changed files with 107 additions and 75 deletions

View File

@@ -35,7 +35,16 @@ internal static class Program
//AppDomain.CurrentDomain.SetData("REGEX_DEFAULT_MATCH_TIMEOUT", TimeSpan.FromMilliseconds(100));
Regex.CacheSize = 200; // default is 15, we need more for content filter
try
{
Console.OutputEncoding = Encoding.UTF8;
}
catch (Exception e)
{
Config.Log.Warn(e, "Failed to set console output encoding");
}
Console.WriteLine("Confinement: " + SandboxDetector.Detect());
if (args.Length > 0 && args[0] == "--dry-run")
{