コード例 #1
0
        public GameText(ORom v)
        {
            rom = v;

            if (ORom.GetLocalization(v.Version) == ORom.Localization.NTSC)
            {
                LoadNtsc();
            }
            else
            {
                LoadPal();
            }
        }
コード例 #2
0
 public bool DetectRom(string file, out ORom rom)
 {
     rom = null;
     try
     {
         using (System.IO.BinaryReader br = new System.IO.BinaryReader(
                    new System.IO.FileStream(file, System.IO.FileMode.Open, System.IO.FileAccess.Read)))
         {
             br.BaseStream.Position = 0x10;
             ulong a = (br.ReadBigUInt32() << 32) + br.ReadBigUInt32();
         }
     }
     catch
     {
     }
     return(false);
 }