mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(FormatCatalog): simplified AssemblyLocation propery initialization.
This commit is contained in:
@@ -73,18 +73,18 @@ namespace GameRes
|
|||||||
|
|
||||||
public int CurrentSchemeVersion { get; private set; }
|
public int CurrentSchemeVersion { get; private set; }
|
||||||
public string SchemeID { get { return "GARbroDB"; } }
|
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 string DataDirectory { get { return m_gamedata_dir.Value; } }
|
||||||
|
|
||||||
public Exception LastError { get; set; }
|
public Exception LastError { get; set; }
|
||||||
|
|
||||||
public event ParametersRequestEventHandler ParametersRequest;
|
public event ParametersRequestEventHandler ParametersRequest;
|
||||||
|
|
||||||
private Lazy<string> m_gameres_dir = new Lazy<string> (() => Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location));
|
|
||||||
private Lazy<string> m_gamedata_dir;
|
private Lazy<string> m_gamedata_dir;
|
||||||
|
|
||||||
private FormatCatalog ()
|
private FormatCatalog ()
|
||||||
{
|
{
|
||||||
|
AssemblyLocation = Path.GetDirectoryName (System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||||
m_gamedata_dir = new Lazy<string> (() => Path.Combine (AssemblyLocation, "GameData"));
|
m_gamedata_dir = new Lazy<string> (() => Path.Combine (AssemblyLocation, "GameData"));
|
||||||
|
|
||||||
//An aggregate catalog that combines multiple catalogs
|
//An aggregate catalog that combines multiple catalogs
|
||||||
|
|||||||
Reference in New Issue
Block a user