update pak format

This commit is contained in:
Nishi 2026-01-12 11:48:26 +09:00
commit 32919ca13d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
9 changed files with 324 additions and 73 deletions

View file

@ -0,0 +1,17 @@
#ifndef __GEARSRC_CRC_H__
#define __GEARSRC_CRC_H__
#include <GearSrc/MachDep.h>
#include <GearSrc/TypeDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
GSDECL GSU32 GSCRC32(void* input, unsigned int len);
#ifdef __cplusplus
}
#endif
#endif

View file

@ -12,6 +12,7 @@ extern "C" {
GSDECL GSFile GSFileOpen(GSEngine engine, const char* path);
GSDECL int GSFileRead(GSFile file, void* out, int size);
GSDECL void GSFileSeek(GSFile file, int pos);
GSDECL void GSFileSeekFromCurrent(GSFile file, int pos);
GSDECL unsigned int GSFileSize(GSFile file);
GSDECL void GSFileClose(GSFile file);

View file

@ -15,5 +15,6 @@
#include <GearSrc/Resource.h>
#include <GearSrc/Endian.h>
#include <GearSrc/SkyBox.h>
#include <GearSrc/CRC.h>
#endif

View file

@ -11,7 +11,8 @@ extern "C" {
enum GSLogLevel {
GSLogInfo = 0,
GSLogWarn,
GSLogError
GSLogError,
GSLogDebug
};
GSDECL void GSLog(int level, const char* fmt, ...);