private static void Detect(DetectOptions opt) { // Get unpacker var unpacker = UnpackerRegistry.Get(opt.Directory); Console.WriteLine(unpacker.GetType().Name); }
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); }