# HG changeset patch # User Tess Snider # Date 2021-07-20 11:29:17 # Node ID 3a27dc4b067f39d0e6560f8aee1b792abf90cb42 # Parent c4151b335d1faff766bc81cd4d983030c73e2d16 Fixed a bug that caused data files not to load in single file release mode. diff --git a/Util/FileUtils.cs b/Util/FileUtils.cs --- a/Util/FileUtils.cs +++ b/Util/FileUtils.cs @@ -23,9 +23,11 @@ namespace DesertPaintCodex.Util { string resultPath; - string? appPath = - System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); + // string? appPath = + // System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); + string? appPath = System.IO.Path.GetDirectoryName(AppContext.BaseDirectory); + if (appPath != null) { resultPath = System.IO.Path.Combine(appPath, path);