コード例 #1
0
ファイル: InteropEmu.cs プロジェクト: seem-sky/Mesen
        public static RomInfo GetRomInfo(string filename = "", Int32 archiveFileIndex = -1)
        {
            InteropRomInfo romInfo = new InteropRomInfo();

            InteropEmu.GetRomInfoWrapper(ref romInfo, filename, archiveFileIndex);
            return(new RomInfo(romInfo));
        }
コード例 #2
0
ファイル: EmuApi.cs プロジェクト: yoshisuga/Mesen-S
 public RomInfo(InteropRomInfo romInfo)
 {
     RomPath         = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.RomPath);
     PatchPath       = (ResourcePath)Utf8Marshaler.GetStringFromIntPtr(romInfo.PatchPath);
     Header          = romInfo.Header;
     CoprocessorType = romInfo.CoprocessorType;
 }
コード例 #3
0
ファイル: EmuApi.cs プロジェクト: gouchi/Mesen-S
 [DllImport(DllPath, EntryPoint = "GetRomInfo")] private static extern void GetRomInfoWrapper(out InteropRomInfo romInfo);
コード例 #4
0
ファイル: InteropEmu.cs プロジェクト: seem-sky/Mesen
 public RomInfo(InteropRomInfo romInfo)
 {
     this.RomName  = UTF8Marshaler.GetStringFromIntPtr(romInfo.RomNamePointer);
     this.Crc32    = romInfo.Crc32;
     this.PrgCrc32 = romInfo.PrgCrc32;
 }
コード例 #5
0
ファイル: InteropEmu.cs プロジェクト: seem-sky/Mesen
 [DllImport(DLLPath, EntryPoint = "GetRomInfo")] private static extern UInt32 GetRomInfoWrapper(ref InteropRomInfo romInfo, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))] string filename = "", Int32 archiveFileIndex = -1);