feat: 启动UI时自动设置工作目录,便于正确加载DLL

This commit is contained in:
Dusk_NM02
2022-08-07 21:58:48 +08:00
parent 02ee5322a7
commit a6787f8332

View File

@@ -55,6 +55,7 @@ namespace MeoAsstGui
/// <remarks>初始化些啥自己加。</remarks>
protected override void OnStart()
{
System.IO.Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
base.OnStart();
ViewStatusStorage.Load();
Localization.Load();