refactor(1): detection App->Core + AppPaths (VD_DATA_DIR isolation for deterministic E2E)

This commit is contained in:
Yun Chan 2026-08-15 14:51:16 +09:00
parent 1aab8729fa
commit 9eb988440f
5 changed files with 29 additions and 7 deletions

View file

@ -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 };