コード例 #1
0
        static void PrintSupportedArchives()
        {
            Console.Write("Supported archive types: ");
            bool any = false;

            foreach (var archive in physFS.SupportedArchiveTypes())
            {
                any = true;
                Console.WriteLine("\n - {0}: {1}", archive.extension, archive.description);
                Console.WriteLine("   Written by {0}", archive.author);
                Console.Write("   {0}", archive.url);
            }
            if (!any)
            {
                Console.WriteLine("NONE.");
            }
            else
            {
                Console.WriteLine();
            }
        }