Closed yupix closed 1 year ago
以下代码用于读入 VPet 翻译文件,使用 ToString() 进行编辑并输出。 在这种情况下,Sub.TextDeReplace 用于恢复已被内部替换为 /com 等的原始文件。 在这种情况下,我遇到了麻烦,因为如果在 URL 等中包含 /com,它就会被 ,替换。 有什么解决办法吗?
ToString()
Sub.TextDeReplace
/com
,
https://github.com/LorisYounger/VPet/blob/main/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2306.lps#L246
var lps = new LpsDocument(File.ReadAllText(filePath)); // 某种操纵 File.WriteAllText(exportFilePath, Sub.TextDeReplace(lps.ToString()));
转义下, 用 /! 代替/
以下代码用于读入 VPet 翻译文件,使用
ToString()
进行编辑并输出。 在这种情况下,Sub.TextDeReplace
用于恢复已被内部替换为/com
等的原始文件。 在这种情况下,我遇到了麻烦,因为如果在 URL 等中包含/com
,它就会被,
替换。 有什么解决办法吗?有问题密钥的 URL
https://github.com/LorisYounger/VPet/blob/main/VPet-Simulator.Windows/mod/0000_core/lang/zh-Hans/Base2306.lps#L246
代码摘录