LLC_MOD_Toolbox
LLC_MOD_Toolbox copied to clipboard
工具箱替换字体功能出错
Checkboxes
在提问之前...
- [x] 我反馈的问题在零协会 BiliBili 动态没有相应近期公告
- [x] 我反馈的问题不属于已关闭/已解决的其它 Issue
- [ ] 我已在未仔细阅读这些内容的情况下勾选所有选项,并相信这不会影响问题的处理
- [x] 我使用的模组版本为最新版
- [x] 我理解 Issue 是用于反馈和解决问题的,而非吐槽评论区,将尽可能提供更多信息帮助问题解决
- [x] 我填写了简短且清晰明确的标题,以便开发者在翻阅 issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等
问题描述
在font文件夹内未配置错误的前提下,工具箱无法实现替换、还原字体功能,同时产生报错。
日志文件
截图
还有别的吗?
No response
请尝试使用管理员权限打开工具箱。
System.UnauthorizedAccessException: Access to the path 'D:\steam\steamapps\common\Limbus Company\LimbusCompany_Data\Lang\LLC_zh-CN\Font\Context\ChineseFont.ttf' is denied.
at System.IO.FileSystem.DeleteFile(String fullPath)
at LLC_MOD_Toolbox.MainWindow.RestoreFontButtonClick(Object sender, RoutedEventArgs e) in C:\Users\17032\source\repos\LLC_MOD_Toolbox\MainWindowWD.xaml.cs:line 2533
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)