Esempio n. 1
0
        public static RomInfo GetRomInfo(string filename = "", Int32 archiveFileIndex = -1)
        {
            InteropRomInfo romInfo = new InteropRomInfo();

            InteropEmu.GetRomInfoWrapper(ref romInfo, filename, archiveFileIndex);
            return(new RomInfo(romInfo));
        }
Esempio n. 2
0
 public RomInfo(InteropRomInfo romInfo)
 {
     RomPath         = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.RomPath);
     PatchPath       = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.PatchPath);
     Header          = romInfo.Header;
     CoprocessorType = romInfo.CoprocessorType;
 }
Esempio n. 3
0
 [DllImport(DllPath, EntryPoint = "GetRomInfo")] private static extern void GetRomInfoWrapper(out InteropRomInfo romInfo);
Esempio n. 4
0
 public RomInfo(InteropRomInfo romInfo)
 {
     this.RomName  = UTF8Marshaler.GetStringFromIntPtr(romInfo.RomNamePointer);
     this.Crc32    = romInfo.Crc32;
     this.PrgCrc32 = romInfo.PrgCrc32;
 }
Esempio n. 5
0
 [DllImport(DLLPath, EntryPoint = "GetRomInfo")] private static extern UInt32 GetRomInfoWrapper(ref InteropRomInfo romInfo, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))] string filename = "", Int32 archiveFileIndex = -1);