From 9e023f6429dd1d1b175bc8160e50dd5eda59cd0c Mon Sep 17 00:00:00 2001 From: Katy Fox Date: Wed, 17 Jan 2024 21:18:56 -0500 Subject: [PATCH] Fix #3 exception searching for overrides --- Runtime/OverrideManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/OverrideManager.cs b/Runtime/OverrideManager.cs index 28f16ff..82e0235 100644 --- a/Runtime/OverrideManager.cs +++ b/Runtime/OverrideManager.cs @@ -92,6 +92,11 @@ public static void ReloadOverrides(bool reloadAll) private static IEnumerator ReloadOverridesWorker(bool reloadAll) { + if (!Directory.Exists(OverrideDir)) + { + Directory.CreateDirectory(OverrideDir); + } + foreach (string overrideFilePath in Directory.EnumerateFiles(OverrideDir, "*.csv")) { string sourceId = Path.GetFileNameWithoutExtension(overrideFilePath);