ReLoadDirectory() public static method

ReReads Registry Client dir
public static ReLoadDirectory ( ) : void
return void
Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
        /// <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();
        }