Ejemplo n.º 1
0
        public DMMod(ModContentPack content) : base(content)
        {
            Pack = content;
            string path = (string)typeof(LoadedModManager).GetMethod("GetSettingsFilename", BindingFlags.NonPublic | BindingFlags.Static).Invoke(null, new object[] { Content.Identifier, GetType().Name });

            if (File.Exists(path))
            {
                settings = GetSettings <DMModSettings>();
            }
        }
Ejemplo n.º 2
0
 public DMMod(ModContentPack content) : base(content)
 {
     Pack     = content;
     settings = GetSettings <DMModSettings>();
 }