示例#1
0
        public string GenerateMD()
        {
            string md = "# XBE Section Header - " + SectionName + "\n\n";

            md += MDUtil.MDTableHeader("Field Name", "Description");
            md += MDUtil.MDTableRow("Section Flags", SectionFlags.ToString("X"));
            md += MDUtil.MDTableRow("Section Flag Writable", SectionFlagWritable.ToString());
            md += MDUtil.MDTableRow("Section Flag Preload", SectionFlagPreload.ToString());
            md += MDUtil.MDTableRow("Section Flag Executable", SectionFlagExecutable.ToString());
            md += MDUtil.MDTableRow("Section Flag Inserted File", SectionFlagInsertedFile.ToString());
            md += MDUtil.MDTableRow("Section Flag Head Page Read Only", SectionFlagHeadPageRO.ToString());
            md += MDUtil.MDTableRow("Section Flag Tail Page Read Only", SectionFlagTailPageRO.ToString());
            md += MDUtil.MDTableRow("Virtual Address", VirtualAddress.ToString("X"));
            md += MDUtil.MDTableRow("Virtual Size", VirtualSize.ToString("X"));
            md += MDUtil.MDTableRow("Raw Address", RawAddress.ToString("X"));
            md += MDUtil.MDTableRow("Raw Size", RawSize.ToString("X"));
            md += MDUtil.MDTableRow("Section Name Address", SectionNameAddress.ToString("X"));
            md += MDUtil.MDTableRow("Section Name", SectionName);
            md += MDUtil.MDTableRow("Section Name Reference Count", SectionNameRefCount.ToString("X"));
            md += MDUtil.MDTableRow("Head Shared Page Reference Count Address", HeadSharedRefAddr.ToString("X"));
            md += MDUtil.MDTableRow("Tail Shared Page Reference Count Address", TailSharedRefAddr.ToString("X"));
            md += MDUtil.MDTableRow("Section Digest", BitConverter.ToString(SectionDigest).Replace("-", " "));

            return(md);
        }
示例#2
0
        public string GenerateMD()
        {
            string md = "# XBE Certificate\n\n";

            md += MDUtil.MDTableHeader("Field Name", "Description");
            md += MDUtil.MDTableRow("Size of Certificate", SizeOfCertificate.ToString("X"));
            DateTime dtTimeDate = DateTimeOffset.FromUnixTimeSeconds(TimeDate).DateTime;

            md += MDUtil.MDTableRow("Time / Date", TimeDate.ToString("X") + " (" + dtTimeDate + ")");
            md += MDUtil.MDTableRow("Title ID", TitleID.ToString("X8"));
            md += MDUtil.MDTableRow("Title Name", TitleName);
            md += MDUtil.MDTableRow("Alternate Title ID", AlternateTitleIDs[0].ToString("X8"));
            md += MDUtil.MDTableRow("Alternate Title ID", AlternateTitleIDs[1].ToString("X8"));
            md += MDUtil.MDTableRow("Alternate Title ID", AlternateTitleIDs[2].ToString("X8"));
            md += MDUtil.MDTableRow("Alternate Title ID", AlternateTitleIDs[3].ToString("X8"));
            md += MDUtil.MDTableRow("Allowed Media", AllowedMedia.ToString("X"));

            md += MDUtil.MDTableRow("Media Type Hard Disk", MEDIA_TYPE_HARD_DISK.ToString());
            md += MDUtil.MDTableRow("Media Type DVD X2", MEDIA_TYPE_DVD_X2.ToString());
            md += MDUtil.MDTableRow("Media Type DVD / CD", MEDIA_TYPE_DVD_CD.ToString());
            md += MDUtil.MDTableRow("Media Type CD", MEDIA_TYPE_CD.ToString());
            md += MDUtil.MDTableRow("Media Type DVD 5 RO", MEDIA_TYPE_DVD_5_RO.ToString());
            md += MDUtil.MDTableRow("Media Type DVD 9 RO", MEDIA_TYPE_DVD_9_RO.ToString());
            md += MDUtil.MDTableRow("Media Type DVD 5 RW", MEDIA_TYPE_DVD_5_RW.ToString());
            md += MDUtil.MDTableRow("Media Type DVD 9 RW", MEDIA_TYPE_DVD_9_RW.ToString());
            md += MDUtil.MDTableRow("Media Type Dongle", MEDIA_TYPE_DONGLE.ToString());
            md += MDUtil.MDTableRow("Media Type Media Board", MEDIA_TYPE_MEDIA_BOARD.ToString());
            md += MDUtil.MDTableRow("Media Type Nonsecure Hard Disk", MEDIA_TYPE_NONSECURE_HARD_DISK.ToString());
            md += MDUtil.MDTableRow("Media Type Nonsecure Mode", MEDIA_TYPE_NONSECURE_MODE.ToString());
            md += MDUtil.MDTableRow("Media Type Media Mask", MEDIA_TYPE_MEDIA_MASK.ToString());

            md += MDUtil.MDTableRow("Game Region", GameRegion.ToString("X"));
            md += MDUtil.MDTableRow("Game Region North America", GAME_REGION_NA.ToString());
            md += MDUtil.MDTableRow("Game Region Japan", GAME_REGION_JAPAN.ToString());
            md += MDUtil.MDTableRow("Game Region Rest of World", GAME_REGION_RESTOFWORLD.ToString());
            md += MDUtil.MDTableRow("Game Region Manufacturing", GAME_REGION_MANUFACTURING.ToString());

            if (GameRatings > -1 && GameRatings < 7)
            {
                md += MDUtil.MDTableRow("Game Ratings", GameRatings.ToString("X") + " (" + ((Enum.GameRatings)GameRatings).ToString() + ")");
            }
            else
            {
                md += MDUtil.MDTableRow("Game Ratings", GameRatings.ToString("X"));
            }

            md += MDUtil.MDTableRow("Disk Number", DiskNumber.ToString("X"));
            md += MDUtil.MDTableRow("Version", Version.ToString("X"));
            md += MDUtil.MDTableRow("LAN Key", BitConverter.ToString(LANKey).Replace("-", " "));
            md += MDUtil.MDTableRow("Signature Key", BitConverter.ToString(SignatureKey).Replace("-", " "));

            for (int i = 0; i < 16; i++)
            {
                md += MDUtil.MDTableRow("Alternate Signature Key", BitConverter.ToString(AlternateSignatureKeys[i]).Replace("-", " "));
            }


            return(md);
        }
示例#3
0
        public string GenerateMD()
        {
            string md = "# XBE Image Header\n\n";

            md += MDUtil.MDTableHeader("Field Name", "Description");
            md += MDUtil.MDTableRow("Magic Number", MagicNumber);
            md += MDUtil.MDTableRow("Digital Signature", BitConverter.ToString(DigitalSignature).Replace("-", " "));
            md += MDUtil.MDTableRow("Base Address", BaseAddress.ToString("X"));
            md += MDUtil.MDTableRow("Size of Headers", SizeOfHeaders.ToString("X"));
            md += MDUtil.MDTableRow("Size of Image", SizeOfImage.ToString("X"));
            md += MDUtil.MDTableRow("Size of Header", SizeOfImageHeader.ToString("X"));
            DateTime dtTimeDate = DateTimeOffset.FromUnixTimeSeconds(TimeDate).DateTime;

            md += MDUtil.MDTableRow("Time / Date", TimeDate.ToString("X") + " (" + dtTimeDate + ")");
            md += MDUtil.MDTableRow("Certificate Address", CertificateAddress.ToString("X"));
            md += MDUtil.MDTableRow("Number of Sections", NumberOfSections.ToString("X"));
            md += MDUtil.MDTableRow("Section Header Address", SectionHeaderAddress.ToString("X"));
            md += MDUtil.MDTableRow("Initialization Flags", Initializationflags.ToString("X"));

            md += MDUtil.MDTableRow("Mount Utility Drive", MountUtilityDrive.ToString());
            md += MDUtil.MDTableRow("Format Utility Drive", FormatUtilityDrive.ToString());
            md += MDUtil.MDTableRow("Limit Devkit Memory", LimitDevkitMemory.ToString());
            md += MDUtil.MDTableRow("Don't Setup Harddisk", DontSetupHarddisk.ToString());

            md += MDUtil.MDTableRow("Entry Point", EntryPoint.ToString("X"));
            md += MDUtil.MDTableRow("TLS Address", TLSAddress.ToString("X"));
            md += MDUtil.MDTableRow("PE Stack Commit", PEStackCommit.ToString("X"));
            md += MDUtil.MDTableRow("PE Heap Reserve", PEHeapReserve.ToString("X"));
            md += MDUtil.MDTableRow("PE Heap Commit", PEHeapCommit.ToString("X"));
            md += MDUtil.MDTableRow("PE Base Address", PEBaseAddress.ToString("X"));
            md += MDUtil.MDTableRow("PE Size of Image", PESizeOfImage.ToString("X"));
            md += MDUtil.MDTableRow("PE Checksum", BitConverter.ToString(PEChecksum).Replace("-", " "));
            DateTime dtPETimeDate = DateTimeOffset.FromUnixTimeSeconds(PETimeDate).DateTime;

            md += MDUtil.MDTableRow("PE Time / Date", PETimeDate.ToString("X") + " (" + dtPETimeDate + ")");
            md += MDUtil.MDTableRow("Debug Path Name Address", DebugPathNameAddress.ToString("X"));
            md += MDUtil.MDTableRow("Debug Path Name", DebugPathName);
            md += MDUtil.MDTableRow("Debug File Name Address", DebugFileNameAddress.ToString("X"));
            md += MDUtil.MDTableRow("Debug File Name", DebugFileName);
            md += MDUtil.MDTableRow("Debug Unicode File Name Address", DebugUnicodeFileNameAddress.ToString("X"));
            md += MDUtil.MDTableRow("Debug Unicode File Name", DebugUnicodeFileName);
            md += MDUtil.MDTableRow("Kernel Image Thunk Address", KernelImageThunkAddress.ToString("X"));
            md += MDUtil.MDTableRow("Non-Kernel Import Directory Address", NonKernelImportDirectoryAddress.ToString("X"));
            md += MDUtil.MDTableRow("Number of Library Versions", NumberOfLibraryVersions.ToString("X"));
            md += MDUtil.MDTableRow("Library Versions Address", LibraryVersionsAddress.ToString("X"));
            md += MDUtil.MDTableRow("Kernel Library Address", KernelLibraryAddress.ToString("X"));
            md += MDUtil.MDTableRow("XAPI Library Version Address", XAPILibraryVersionAddress.ToString("X"));
            md += MDUtil.MDTableRow("Logo Bitmap Address", LogoBitmapAddress.ToString("X"));
            md += MDUtil.MDTableRow("Logo Bitmap Size", LogoBitmapSize.ToString("X"));

            return(md);
        }
示例#4
0
        public string GenerateMD()
        {
            string md = "# XBE TLS\n\n";

            md += MDUtil.MDTableHeader("Field Name", "Description");
            md += MDUtil.MDTableRow("Data Start Address", DataStartAddress.ToString("X"));
            md += MDUtil.MDTableRow("Data End Address", DataEndAddress.ToString("X"));
            md += MDUtil.MDTableRow("TLS Index Address", TLSIndexAddress.ToString("X"));
            md += MDUtil.MDTableRow("TLS Callback Address", TLSCallbackAddress.ToString("X"));
            md += MDUtil.MDTableRow("Size of Zero Fill", SizeOfZeroFill.ToString("X"));
            md += MDUtil.MDTableRow("Characteristics", Characteristics.ToString("X"));

            return(md);
        }
示例#5
0
        public string GenerateMD()
        {
            string md = "# XBE Library Version - " + LibraryName + " - " + FullVersion + "\n\n";

            md += MDUtil.MDTableHeader("Field Name", "Description");
            md += MDUtil.MDTableRow("Library Name", LibraryName);
            md += MDUtil.MDTableRow("Major Version", MajorVersion.ToString());
            md += MDUtil.MDTableRow("Minor Version", MinorVersion.ToString());
            md += MDUtil.MDTableRow("Build Version", BuildVersion.ToString());
            md += MDUtil.MDTableRow("Library Flags", LibraryFlags.ToString("X"));
            md += MDUtil.MDTableRow("QFE Version", QFEVersion.ToString());
            md += MDUtil.MDTableRow("Approved", ((Enum.Approved)Approved).ToString());
            md += MDUtil.MDTableRow("Debug Build", DebugBuild.ToString());

            return(md);
        }