/// <summary> /// ReReads Art.mul /// </summary> public static void Reload() { Files.ReLoadDirectory(); Files.LoadMulPath(); m_FileIndex = new FileIndex("Artidx.mul", "Art.mul", 0x13FDC, 4); m_Cache = new Bitmap[GetIdxLength()]; m_Removed = new bool[GetIdxLength()]; m_patched.Clear(); Modified = false; }
/// <summary> /// ReReads gumpart /// </summary> public static void Reload() { try { Files.ReLoadDirectory(); Files.LoadMulPath(); m_FileIndex = new FileIndex("Gumpidx.mul", "Gumpart.mul", 0x10000, 12); m_Cache = new Bitmap[m_FileIndex.Index.Length]; m_Removed = new bool[m_FileIndex.Index.Length]; } catch { m_FileIndex = null; m_Cache = new Bitmap[0xFFFF]; m_Removed = new bool[0xFFFF]; } m_PixelBuffer = null; m_StreamBuffer = null; m_ColorTable = null; m_patched.Clear(); }