修复读取PVF

This commit is contained in:
Lenheart 2026-02-02 13:31:01 +08:00
parent df2ebd6501
commit 58c11ab741
1 changed files with 5 additions and 7 deletions

View File

@ -249,7 +249,8 @@ class Rindro_Script {
if (strobj.find(">") != null) { if (strobj.find(">") != null) {
local strobjarr = split(strobj, ">"); local strobjarr = split(strobj, ">");
if (strobjarr.len() > 1) { if (strobjarr.len() > 1) {
getroottable().RindroLoadStringTable[Type].rawset(strobjarr[0], Sq_ConvertWideChar(strobjarr[1], "big5")); getroottable().RindroLoadStringTable[Type].rawset(strobjarr[0], strobjarr[1]);
// getroottable().RindroLoadStringTable[Type].rawset(strobjarr[0], Sq_ConvertWideChar(strobjarr[1], "big5"));
} }
} }
} }
@ -322,13 +323,10 @@ class Rindro_Script {
local Before = IO.readn('i'); local Before = IO.readn('i');
local Buf = Rindro_Script.GetBinString(after); local Buf = Rindro_Script.GetBinString(after);
if (!Buf) { if (!Buf) {
Buf = ""; return "";
} else { } else {
Buf = "<" + Before + "::" + Buf + "`" + Rindro_Script.GetLoadString(Type, Buf) + "`>"; return Rindro_Script.GetLoadString(Type, Buf);
} }
Buf = Buf + "\r\n";
out += Buf;
break;
} }
case 2: { case 2: {
IO.seek(-4, 'c'); IO.seek(-4, 'c');
@ -706,7 +704,7 @@ class Rindro_Script {
if (i< Length && Length - i >= 5) { if (i< Length && Length - i >= 5) {
local str = Rindro_Script.UnpackData(IO, i, Type); local str = Rindro_Script.UnpackData(IO, i, Type);
i += 5; i += 5;
DataArr.push(str); if(str != "")DataArr.push(str);
} else break; } else break;
} }
Func(DataTable, _PVF_Data_(DataArr)); Func(DataTable, _PVF_Data_(DataArr));