spidey-decomp/pcdcFile.h

40 lines
669 B
C
Raw Normal View History

2024-05-23 17:19:28 +00:00
#pragma once
#ifndef PCDCFILE_H
#define PCDCFILE_H
2024-08-04 16:17:33 +00:00
#include "export.h"
2024-08-18 16:30:56 +00:00
#ifdef _WIN32
#include <windows.h>
2024-08-20 21:32:57 +00:00
#else
2024-08-20 22:19:40 +00:00
typedef void* HANDLE;
2024-08-18 16:30:56 +00:00
#endif
2024-08-20 21:32:57 +00:00
struct SGDOpenFile
{
void* field_0;
i32 field_4;
i32 field_8;
};
2024-08-04 16:17:33 +00:00
EXPORT void closeFilePKR(i32);
EXPORT void closePKR(void);
2024-08-21 08:35:18 +00:00
EXPORT i32 findFilePKR(char *,const char *);
2024-08-21 08:18:09 +00:00
EXPORT i32 nextFile(void);
2024-08-21 08:51:31 +00:00
EXPORT i32 openFilePKR(char *,const char*);
2024-08-04 16:17:33 +00:00
EXPORT void openPKR(void);
EXPORT void readFilePKR(i32,char *,i32);
EXPORT void seekFilePKR(i32,i32,i32);
2024-08-21 09:13:24 +00:00
EXPORT i32 tellFilePKR(i32);
2024-08-04 16:17:33 +00:00
2024-08-20 21:32:57 +00:00
EXPORT void gdFsClose(HANDLE);
2024-08-21 09:02:10 +00:00
EXPORT HANDLE gdFsOpen(const char*, i32);
2024-08-20 21:32:57 +00:00
2024-08-18 16:30:56 +00:00
EXPORT i32 gdFsInit(void);
2024-08-20 21:32:57 +00:00
void validate_SGDOpenFile(void);
2024-08-04 16:17:33 +00:00
#endif