From 310cb5fd2ec0b648f862f0d1cc405ebaa0e6ef8e Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 27 Dec 2016 22:47:17 +0400 Subject: [PATCH] (FormatCatalog): simplified AssemblyLocation propery initialization. --- GameRes/FormatCatalog.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameRes/FormatCatalog.cs b/GameRes/FormatCatalog.cs index 8c5e1b62..8dce2d54 100644 --- a/GameRes/FormatCatalog.cs +++ b/GameRes/FormatCatalog.cs @@ -73,18 +73,18 @@ namespace GameRes public int CurrentSchemeVersion { get; private set; } public string SchemeID { get { return "GARbroDB"; } } - public string AssemblyLocation { get { return m_gameres_dir.Value; } } + public string AssemblyLocation { get; private set; } public string DataDirectory { get { return m_gamedata_dir.Value; } } public Exception LastError { get; set; } public event ParametersRequestEventHandler ParametersRequest; - private Lazy m_gameres_dir = new Lazy (() => Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location)); private Lazy m_gamedata_dir; private FormatCatalog () { + AssemblyLocation = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location); m_gamedata_dir = new Lazy (() => Path.Combine (AssemblyLocation, "GameData")); //An aggregate catalog that combines multiple catalogs