From a8d2e8f54b0f6ecc0a94731f92edf24f2d07ad7c Mon Sep 17 00:00:00 2001 From: Giovanni Pezzino Date: Sun, 6 Sep 2020 12:58:04 +0200 Subject: [PATCH] Added an indirection level to allow tests to specify different configs --- Utilities/Constants.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Utilities/Constants.cs b/Utilities/Constants.cs index 780c6307cd..4b127a9522 100644 --- a/Utilities/Constants.cs +++ b/Utilities/Constants.cs @@ -14,7 +14,8 @@ public class Constants public const string EDDI_SERVER_URL = "https://edcd.github.io/EDDP/"; public static readonly string EDDI_SYSTEM_MUTEX_NAME = $"{EDDI_SERVER_URL}/{EDDI_NAME}/{Environment.GetEnvironmentVariable("UserName")}"; - public static readonly string DATA_DIR = Environment.GetEnvironmentVariable("AppData") + "\\" + EDDI_NAME; + public static string BASE_DIR = Environment.GetEnvironmentVariable("AppData"); + public static readonly string DATA_DIR = BASE_DIR + "\\" + EDDI_NAME; public static readonly string ENVIRONMENT_WITCH_SPACE = "Witch Space"; public static readonly string ENVIRONMENT_SUPERCRUISE = "Supercruise";