mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-27 15:20:25 +00:00
PKR_DIRINFO
This commit is contained in:
parent
6ceff55438
commit
598d1f2df2
1
main.cpp
1
main.cpp
@ -408,6 +408,7 @@ i32 validate(void)
|
||||
validate_SBitServerEntry();
|
||||
validate_PKR_FILEINFO();
|
||||
validate_PKR_FOOTER();
|
||||
validate_PKR_DIRINFO();
|
||||
|
||||
puts("[*] Validation done!");
|
||||
|
||||
|
9
pkr.cpp
9
pkr.cpp
@ -114,3 +114,12 @@ void validate_PKR_FOOTER(void)
|
||||
VALIDATE(PKR_FOOTER, numDirs, 0x4);
|
||||
VALIDATE(PKR_FOOTER, numFiles, 0x8);
|
||||
}
|
||||
|
||||
void validate_PKR_DIRINFO(void)
|
||||
{
|
||||
VALIDATE_SIZE(PKR_DIRINFO, 0x28);
|
||||
|
||||
VALIDATE(PKR_DIRINFO, name, 0x0);
|
||||
VALIDATE(PKR_DIRINFO, field_20, 0x20);
|
||||
VALIDATE(PKR_DIRINFO, numFiles, 0x24);
|
||||
}
|
||||
|
9
pkr.h
9
pkr.h
@ -22,6 +22,14 @@ struct PKR_FOOTER
|
||||
i32 numFiles;
|
||||
};
|
||||
|
||||
struct PKR_DIRINFO
|
||||
{
|
||||
char name[0x20];
|
||||
|
||||
i32 field_20;
|
||||
i32 numFiles;
|
||||
};
|
||||
|
||||
EXPORT u8 fileCRCCheck(u8*, i32, u32);
|
||||
EXPORT void PKR_ReportError(const char*, ...);
|
||||
|
||||
@ -31,5 +39,6 @@ EXPORT u8 PKR_UnlockFile(FILE** fp);
|
||||
|
||||
void validate_PKR_FILEINFO(void);
|
||||
void validate_PKR_FOOTER(void);
|
||||
void validate_PKR_DIRINFO(void);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user