The files a pod archive reads and writes.
More...
#include <podarchive.h>
The files a pod archive reads and writes.
Every routine that fails ends the game.
◆ PodFileHelper()
| PodFileHelper::PodFileHelper |
( |
| ) |
|
Initialise the archive helper without opening a file.
- Ghidra address:
- BRD3D: 0x10008b70
- Ghidra address:
- BRGlide: 0x10008d50
◆ ExtractFileName()
| void PodFileHelper::ExtractFileName |
( |
const char * | pszPath, |
|
|
char * | pszName ) |
Copy the part of a path after its last backslash.
- Parameters
-
| pszPath | The path. |
| pszName | Receives the name. |
- Ghidra address:
- BRD3D: 0x10008b90
- Ghidra address:
- BRGlide: 0x10008d70
◆ FileOpenBinaryWriteOrFatal()
| FILE * PodFileHelper::FileOpenBinaryWriteOrFatal |
( |
const char * | pszPath | ) |
|
Create a file to write.
- Parameters
-
| pszPath | The path of the file. |
- Returns
- The file.
- Ghidra address:
- BRD3D: 0x10008be0
- Ghidra address:
- BRGlide: 0x10008dc0
◆ FileOpenBinaryReadOrFatal()
| FILE * PodFileHelper::FileOpenBinaryReadOrFatal |
( |
const char * | pszPath | ) |
|
Open a file to read.
- Parameters
-
| pszPath | The path of the file. |
- Returns
- The file.
- Ghidra address:
- BRD3D: 0x10008c20
- Ghidra address:
- BRGlide: 0x10008e10
◆ FileReadExactOrFatal()
| void PodFileHelper::FileReadExactOrFatal |
( |
FILE * | pFile, |
|
|
void * | pBuffer, |
|
|
unsigned | dwSize ) |
Read an exact number of bytes from a file.
- Parameters
-
| pFile | The file. |
| pBuffer | Receives the bytes. |
| dwSize | The number of bytes. |
- Ghidra address:
- BRD3D: 0x10008c60
- Ghidra address:
- BRGlide: 0x10008e60
◆ FileWriteChecked()
| void PodFileHelper::FileWriteChecked |
( |
FILE * | pFile, |
|
|
const void * | pBuffer, |
|
|
unsigned | dwSize ) |
Write an exact number of bytes to a file.
Its failure reports a failure to read.
- Parameters
-
| pFile | The file. |
| pBuffer | The bytes. |
| dwSize | The number of bytes. |
- Ghidra address:
- BRD3D: 0x10008c90
- Ghidra address:
- BRGlide: 0x10008e90
The documentation for this class was generated from the following file: