修复与MOD AutoMTL 的兼容性

This commit is contained in:
ZouJin 2024-04-21 00:09:52 +08:00
parent fa2c40e97a
commit 9808de0396
3 changed files with 7 additions and 3 deletions

View File

@ -64,7 +64,11 @@ namespace VPet_Simulator.Windows
var destr = Sub.TextDeReplace(str);
if (destr == str)
return str;
return destr.Translate();
if (LocalizeCore.CurrentLPS != null && LocalizeCore.CurrentLPS.Assemblage.TryGetValue(destr, out ILine line))
{
return line.GetString();
}
return str;
};
CultureInfo.CurrentCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);

View File

@ -219,7 +219,7 @@
<PackageReference Include="Facepunch.Steamworks" Condition="'$(Platform)' == 'x64'" Version="2.3.3" />
<PackageReference Include="Facepunch.Steamworks.win32" Condition="'$(Platform)' == 'x86'" Version="2.3.3" />
<PackageReference Include="LinePutScript" Version="1.11.6" />
<PackageReference Include="LinePutScript.Localization.WPF" Version="1.0.6" />
<PackageReference Include="LinePutScript.Localization.WPF" Version="1.0.7" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="Panuon.WPF" Version="1.1.0" />

View File

@ -49,7 +49,7 @@ HelloI am Li Hua#Hello, I am Li Hua:|
想不出来了啦!#My Brain doesn't work anymore, i need a break!:|
想写主人#I want to write soemthing about master.:|
乱写乱画中#...scribble, scribble, scribble...:|
《我与主人的故事》写好了!诶?不行吗#"My Love Story with My Master" is finished! Or? Is it?:|
《我与主人的故事》写好了!诶?不行吗#"My Story with My Master" is finished! Or? Is it?:|
我有一个好点子!#I have a great idea!:|
《我与主人的现实世界美好生活》#"My Beutiful Life in the Real World with my Master".:|
有了!#Got it!:|