Update all resources to 5.8

This commit is contained in:
2025-08-06 00:16:48 +08:00
parent e201281c36
commit 1b18a3a7ca
56 changed files with 19032 additions and 2293 deletions

View File

@@ -51,13 +51,26 @@ namespace GrasscutterTools.Game
using (var reader = new JsonTextReader(sr))
{
ManualTextMap = new Dictionary<string, string>();
string textMapId = null, textMapContextHash = null;
while (reader.Read())
{
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "TextMapId" || (string)reader.Value == "textMapId"))
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapId" || (string)reader.Value == "TextMapId"))
{
var textMapId = reader.ReadAsString();
reader.Read();
ManualTextMap.Add(reader.ReadAsString(), textMapId);
textMapId = reader.ReadAsString();
}
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapContentTextMapHash" || (string)reader.Value == "TextMapContentTextMapHash"))
{
textMapContextHash = reader.ReadAsString();
}
if (textMapId != null && textMapContextHash != null)
{
ManualTextMap.Add(textMapContextHash, textMapId);
textMapId = null;
textMapContextHash = null;
}
}
}