From 21809fb91c5341164c6e1921e82323dfe6320b64 Mon Sep 17 00:00:00 2001 From: PhantornRU Date: Sat, 21 Sep 2024 04:51:01 +1000 Subject: [PATCH] resources default path --- Controllers/EnvironmentController.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Controllers/EnvironmentController.cs b/Controllers/EnvironmentController.cs index dd545cc..bdb0cd5 100644 --- a/Controllers/EnvironmentController.cs +++ b/Controllers/EnvironmentController.cs @@ -28,6 +28,10 @@ internal static class EnvironmentController public static string lastImportPath = defaultImportPath; public static string lastExportPath = defaultExportPath; + public static string defaultResourcesPath = "Assets\\Resources"; + public static string defaultStoragePath = "Assets\\Storage"; + public static string ChoosenStorageName = "Default"; + public static string defaultFileFormat = ".dmi"; public static string configFormat = ".csv"; @@ -123,11 +127,10 @@ public static void SavePixelStorage() #region Paths - public static string ChoosenStorageName = "Default"; - public static string GetGridPath() => System.IO.Path.Combine(Environment.CurrentDirectory, "Resources", $"grid{dataImageState.imageCellsSize.Height}.png"); + public static string GetGridPath() => System.IO.Path.Combine(Environment.CurrentDirectory, defaultResourcesPath, $"grid{dataImageState.imageCellsSize.Height}.png"); - public static string GetPixelStoragePath() => System.IO.Path.Combine(Environment.CurrentDirectory, "Storage", $"{ChoosenStorageName}"); + public static string GetPixelStoragePath() => System.IO.Path.Combine(Environment.CurrentDirectory, defaultStoragePath, $"{ChoosenStorageName}"); #endregion Paths