Line 41: |
Line 41: |
| |- | | |- |
| | 8 | | | 8 |
− | | Read 0x20 bytes of disk id [from cache.dat or disc] | + | | Read 0x20 bytes of disk id [from cache.dat or disk via DVDReadDiskID] |
| | 9 | | | 9 |
| |- | | |- |
| | 9 | | | 9 |
− | | | + | | Update cache.dat if necessary, copy the 0x20 byte long disk id to 0x80000000. |
− | | | + | if [disk_id + 0x18] is 0x5d1c9ea3, and the [disk_id + 0] is not 'RAAE', treat as a wii disc. |
| + | otherwise, if [disk_id + 0x1c] is 0xc2339f3d, treat as gamecube disk |
| + | otherwise, the disk type is unknown |
| + | | gamecube disk = 11, wii disk = 15, unknown = 54 |
| |- | | |- |
| | 10 | | | 10 |