예제 #1
0
        private static void Package_noLongerOpenInTools(UnrealPackageFile sender)
        {
            IMEPackage package = sender as IMEPackage;

            packagesInTools.Remove(package);
            sender.noLongerOpenInTools -= Package_noLongerOpenInTools;
        }
예제 #2
0
        private static void Package_noLongerUsed(UnrealPackageFile sender)
        {
            var packagePath = sender.FilePath;

            if (Path.GetFileNameWithoutExtension(packagePath) != "Core") //Keep Core loaded as it is very often referenced
            {
                if (openPackages.TryRemove(packagePath, out IMEPackage _))
                {
                    Debug.WriteLine($"Released from package cache: {packagePath}");
                }
                else
                {
                    Debug.WriteLine($"Failed to remove package from cache: {packagePath}");
                }
            }
        }