Exemple #1
0
 def gameType(self) -> Boot.Type:
     self._rawdata.seek(24)
     if read_uint32(self._rawdata) == Boot.Magic.WIIMAGIC:
         return Boot.Type.WII
     if read_uint32(self._rawdata) == Boot.Magic.GCNMAGIC:
         return Boot.Type.GCN
     return Boot.Type.UNKNOWN
Exemple #2
0
 def debugFlag(self) -> int:
     self._rawdata.seek(8)
     return read_uint32(self._rawdata)
Exemple #3
0
 def simulatedMemSize(self) -> int:
     self._rawdata.seek(4)
     return read_uint32(self._rawdata)
Exemple #4
0
 def debugMonitorSize(self) -> int:
     self._rawdata.seek(0)
     return read_uint32(self._rawdata)
Exemple #5
0
 def loaderSize(self) -> int:
     self._rawdata.seek(0x14)
     return read_uint32(self._rawdata)
Exemple #6
0
 def firstFileOffset(self) -> int:
     self._rawdata.seek(0x434)
     return read_uint32(self._rawdata)
Exemple #7
0
 def fstOffset(self) -> int:
     self._rawdata.seek(0x424)
     return read_uint32(self._rawdata)
Exemple #8
0
 def trackSize(self) -> int:
     self._rawdata.seek(20)
     return read_uint32(self._rawdata)
Exemple #9
0
 def debugMonitorVirtualAddr(self) -> int:
     self._rawdata.seek(0x404)
     return read_uint32(self._rawdata)
Exemple #10
0
 def dolOffset(self) -> int:
     self._rawdata.seek(0x420)
     return read_uint32(self._rawdata)
Exemple #11
0
 def debugMonitorOffset(self) -> int:
     self._rawdata.seek(0x400)
     return read_uint32(self._rawdata)
Exemple #12
0
 def __init__(self, f):
     f.seek(0x14, 1)
     size = read_uint32(f)
     size += read_uint32(f)
     f.seek(-0x1C, 1)
     self._rawdata = BytesIO(f.read(size + 0x20))
Exemple #13
0
 def trailerSize(self) -> int:
     self._rawdata.seek(0x18)
     return read_uint32(self._rawdata)
Exemple #14
0
 def argumentOffset(self) -> int:
     self._rawdata.seek(12)
     return read_uint32(self._rawdata)
Exemple #15
0
 def fstMaxSize(self) -> int:
     self._rawdata.seek(0x42C)
     return read_uint32(self._rawdata)
Exemple #16
0
 def trackLocation(self) -> int:
     self._rawdata.seek(16)
     return read_uint32(self._rawdata)
Exemple #17
0
 def userVirtualAddress(self) -> int:
     self._rawdata.seek(0x430)
     return read_uint32(self._rawdata)
Exemple #18
0
 def countryCode(self) -> int:
     self._rawdata.seek(24)
     return read_uint32(self._rawdata)
Exemple #19
0
 def entryPoint(self) -> int:
     self._rawdata.seek(0x10)
     return read_uint32(self._rawdata)