Skip to content

Commit

Permalink
resources default path
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantornRU committed Sep 20, 2024
1 parent 4b76440 commit 21809fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Controllers/EnvironmentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 21809fb

Please sign in to comment.