refactor(1): detection App->Core + AppPaths (VD_DATA_DIR isolation for deterministic E2E)
This commit is contained in:
parent
1aab8729fa
commit
9eb988440f
5 changed files with 29 additions and 7 deletions
|
|
@ -6,8 +6,7 @@ namespace VideoDownloader.App.Core;
|
|||
/// <summary>%AppData%/VideoDownloader/config.json 으로 설정 영속화</summary>
|
||||
public static class ConfigStore
|
||||
{
|
||||
private static string Dir => Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VideoDownloader");
|
||||
private static string Dir => AppPaths.DataDir;
|
||||
private static string FilePath => Path.Combine(Dir, "config.json");
|
||||
|
||||
private static readonly JsonSerializerOptions JsonOpts = new() { WriteIndented = true };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue