GoldenPotato137 / PotatoVN

一款Visual Novel管理软件
https://potatovn.net/
Apache License 2.0
722 stars 33 forks source link

[BUG] 点击编辑后跳转至其他页面报错 #61

Open ShiMi-y opened 1 year ago

ShiMi-y commented 1 year ago

点击编辑后(未修改信息也会报错)跳转至其他页面报错 System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\NIHON\galgame\星光咖啡馆与死神之蝶.PotatoVN\meta.json' is denied. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) at GalgameManager.Core.Services.FileService.Save[T](String folderPath, String fileName, T content, Boolean useJsonSerializer) at GalgameManager.Services.GalgameCollectionService.SaveMetaAsync(Galgame galgame) at GalgameManager.Services.GalgameCollectionService.SaveGalgamesAsync(Galgame galgame) at GalgameManager.ViewModels.GalgameSettingViewModel.OnNavigatedFrom() at System.Threading.Tasks.Task.<>c.b128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.b0()

GoldenPotato137 commented 1 year ago

emm,确实没考虑到把游戏放C盘没有权限的情况,目前这个问题可以通过以管理员权限打开来暂时绕过,我会在下个版本把这个问题修好