mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-06-29 12:26:03 +02:00
Check if the TMD is from a WiiU by checking the titleID
This commit is contained in:
parent
2f820bbe17
commit
cbfe6539a5
|
@ -147,6 +147,9 @@ public final class TMD {
|
|||
buffer.position(0x184);
|
||||
long systemVersion = buffer.getLong();
|
||||
long titleID = buffer.getLong();
|
||||
if((titleID & 0x0005000000000000L) != 0x0005000000000000L) {
|
||||
throw new ParseException("Invalid TMD file. This is not a Wii U TMD", 0);
|
||||
}
|
||||
int titleType = buffer.getInt();
|
||||
short groupID = buffer.getShort();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user