Пример #1
0
        private static void Detect(DetectOptions opt)
        {
            // Get unpacker
            var unpacker = UnpackerRegistry.Get(opt.Directory);

            Console.WriteLine(unpacker.GetType().Name);
        }
Пример #2
0
        private static void Detect(DetectOptions opt)
        {
            // Get unpacker
            var unpacker = UnpackerRegistry.Get(opt.Directory);

            if (unpacker is null)
            {
                Console.WriteLine("Couldn't find an unpacker for this game/engine.");
                return;
            }

            Console.WriteLine(unpacker.GetType().Name);
        }