update pak format
This commit is contained in:
parent
b34529a2a3
commit
32919ca13d
9 changed files with 324 additions and 73 deletions
17
engine/include/GearSrc/CRC.h
Normal file
17
engine/include/GearSrc/CRC.h
Normal 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
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,5 +15,6 @@
|
|||
#include <GearSrc/Resource.h>
|
||||
#include <GearSrc/Endian.h>
|
||||
#include <GearSrc/SkyBox.h>
|
||||
#include <GearSrc/CRC.h>
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ extern "C" {
|
|||
enum GSLogLevel {
|
||||
GSLogInfo = 0,
|
||||
GSLogWarn,
|
||||
GSLogError
|
||||
GSLogError,
|
||||
GSLogDebug
|
||||
};
|
||||
|
||||
GSDECL void GSLog(int level, const char* fmt, ...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue