mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
new settings & fixes
This commit is contained in:
1 parent
b347acace1
commit
30acb49fcb
14 files changed
+75
-30
No files matched your search
@@ -7,7 +7,6 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
using HarmonyLib;
|
||||
using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
||||
|
||||
namespace EHR;
|
||||
@@ -254,11 +253,11 @@ public static class Translator
|
||||
|
||||
while (sr.ReadLine() is { } text)
|
||||
{
|
||||
string[] tmp = text.Split(":");
|
||||
string[] tmp = text.Split(':');
|
||||
|
||||
if (tmp.Length > 1 && tmp[1] != "")
|
||||
{
|
||||
try { TranslateMaps[tmp[0]][(int)lang] = tmp.Skip(1).Join(delimiter: ":").Replace("\\n", "\n").Replace("\\r", "\r"); }
|
||||
try { TranslateMaps[tmp[0]][(int)lang] = string.Join(':', tmp[1..]).Replace("\\n", "\n").Replace("\\r", "\r"); }
|
||||
catch (KeyNotFoundException) { Logger.Warn($"Invalid Key: {tmp[0]}", "LoadCustomTranslation"); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user