pakfile.h

来自「著名物理引擎Hawk的源代码」· C头文件 代码 · 共 32 行

H
32
字号
/* pakfile.h, HAWK game engine
 *
 * Copyright 1997-1998 by Phil Frisbie, Jr.
 * for Hawk Software
 *
 * All hardware specific code goes here
 *
 */

#ifndef PAKFILE_H
#define PAKFILE_H

#ifdef __cplusplus
extern "C" {
#endif

void			initPAKfile(void);	/* open the PAK file (if it exists) */
void			closePAKfile(void);	/* close the PAK file */
int				fileSize(char *);	/* Size of file, looks in PAK file first */
int				loadFile(char *,int, int, void *);/* Load a file, looks in PAK file first */
int				saveFile(char *, int, void *);/* Save a file */
int				openFile(char *filename, int oflag);/* replacement for open that works with PAK files */
long			seekFile(int handle, long offset, int origin);/* replacement for lseek that works with PAK files */
int				readFile(int handle, void *buffer, unsigned int count);/* replacement for read that works with PAK files */
void			closeFile(int handle);/* replacement for close that works with PAK files */

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?