mirror of
https://github.com/codestation/mhtools
synced 2024-11-10 05:44:17 +00:00
Added support to recognize pak files
This commit is contained in:
parent
4434e73314
commit
5452659d0c
1 changed files with 9 additions and 0 deletions
|
@ -140,6 +140,15 @@ public class Decrypter extends DecryptTable {
|
|||
return "dbst";
|
||||
if(equals(buffer, wav))
|
||||
return "wav";
|
||||
if(size >= 8) {
|
||||
if((buffer[0] == 0x3 && buffer[4] == 0x20) ||
|
||||
(buffer[0] == 0x4 && buffer[4] == 0x30) ||
|
||||
(buffer[0] == 0x6 && buffer[4] == 0x40) ||
|
||||
(buffer[0] == 0x7 && buffer[4] == 0x40) ||
|
||||
(buffer[0] == 0x8 && buffer[4] == 0x50)) {
|
||||
return "pak";
|
||||
}
|
||||
}
|
||||
return "bin";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue