.mod import

This commit is contained in:
Natt Akuma 2022-03-14 21:50:52 +07:00
parent 372f2a20a2
commit 87f225074c
10 changed files with 432 additions and 10 deletions

View file

@ -91,10 +91,10 @@ short SafeReader::readS() {
}
short SafeReader::readS_BE() {
if (curSeek+1>len) throw EndOfFileException(this,len);
if (curSeek+2>len) throw EndOfFileException(this,len);
short ret=*(short*)(&buf[curSeek]);
curSeek+=2;
return (ret>>8)|((ret&0xff)<<8);
return ((ret>>8)&0xff)|(ret<<8);
}
int SafeReader::readI() {