// // form loading functions // public void MainForm_Load() { // set autopatching to false : for some reason, the morph res is f****d up when patched. main.Host.setAutoPatching(false); // load ebx guids (needed to get base mesh) EbxUtils.ebxGuid = main.Host.getEBXGuids(); tocChunks = new Dictionary <string, List <ChunkInfo> >(); globalChunks = new List <ChunkInfo>(); // check if cache was already generated and load from there if so. if (PluginMorphCache.CheckForCache()) { bundlePaths = PluginMorphCache.LoadFromCache(); tocFiles = new List <string>(); tocFiles.AddRange(bundlePaths.Keys); LoadChunks(); RefreshTocTree(); ActivateControls(true); } else { // if no cache, scan for content (ie scan for toc and bundles containing morph static assets) ScanForContent(); } }