internal static void LoadSkin()
 {
     if (CurrentSkin == null)
     {
         var CurrentSkinName = CustomKnight.SaveSettings.DefaultSkin != CustomKnight.GlobalSettings.DefaultSkin ? CustomKnight.SaveSettings.DefaultSkin : CustomKnight.GlobalSettings.DefaultSkin;
         CurrentSkin = GetSkinById(CurrentSkinName);
     }
     SpriteLoader.Load();
     On.GeoControl.Start            -= ((Geo)Skinables[Geo.NAME]).GeoControl_Start;
     On.GeoControl.Start            += ((Geo)Skinables[Geo.NAME]).GeoControl_Start;
     ModHooks.AfterSavegameLoadHook += SpriteLoader.ModifyHeroTextures;
 }
        public override void Initialize()
        {
            if (!Directory.Exists(DATA_DIR))
            {
                Directory.CreateDirectory(DATA_DIR);
            }

            if (!File.Exists(DATA_DIR + "/" + KNIGHT_PNG) || !File.Exists(DATA_DIR + "/" + SPRINT_PNG) || !File.Exists(DATA_DIR + "/" + WRAITHS_PNG) || !File.Exists(DATA_DIR + "/" + SHRIEK_PNG))
            {
                Log("Could not find one or more of the required spritesheets");
                Log($"To use this mod, place two files \"{KNIGHT_PNG}\", \"{SPRINT_PNG}\", \"{WRAITHS_PNG}\", \"{SHRIEK_PNG}\", and \"{VS_PNG}\" in the folder \"{IMAGE_FOLDER}\"");
                return;
            }

            SpriteLoader.Load();

            ModHooks.Instance.AfterSavegameLoadHook += SpriteLoader.ModifyHeroTextures;
        }
 public void Unload()
 {
     ModHooks.Instance.AfterSavegameLoadHook -= SpriteLoader.ModifyHeroTextures;
     SpriteLoader.UnloadAll();
 }