coastline 0.0.4
Loading...
Searching...
No Matches
podarchive.h File Reference

The archives of the game, the pod files that store its data. More...

#include <cstdint>
#include <cstdio>
Include dependency graph for podarchive.h:

Go to the source code of this file.

Classes

struct  PodHeader
 The header at the start of a pod file. More...
struct  PodEntry
 An entry of the directory of a pod file. More...
class  PodFileHelper
 The files a pod archive reads and writes. More...
class  PodArchive
 A pod file the game reads, and the writer of one. More...

Macros

#define POD_ENTRY_NAME_SIZE   64
 The size of the name of an entry of a pod file.
#define POD_PATH_SIZE   0x400
 The size of the path of a pod file.
#define POD_WRITER_ENTRY_COUNT   4096
 The most entries the writer of a pod file collects.
#define POD_FILE_VERSION   500
 The version a pod file the game writes records.

Functions

void FatalErrorWithMessage (const char *pszFormat,...)
 Format a message of an error that is not shown, and end the game.
bool ReadImportedPodEntry (const char *pszPath, void *pBuffer)
 Read an entry of BossRally.pod from its import, the directory BossRally of the default assets, where a model is built from its glTF.

Variables

PodArchive g_BossRallyPodArchive
 The archive of the data of the game.

Detailed Description

The archives of the game, the pod files that store its data.

Macro Definition Documentation

◆ POD_ENTRY_NAME_SIZE

#define POD_ENTRY_NAME_SIZE   64

The size of the name of an entry of a pod file.

◆ POD_PATH_SIZE

#define POD_PATH_SIZE   0x400

The size of the path of a pod file.

◆ POD_WRITER_ENTRY_COUNT

#define POD_WRITER_ENTRY_COUNT   4096

The most entries the writer of a pod file collects.

◆ POD_FILE_VERSION

#define POD_FILE_VERSION   500

The version a pod file the game writes records.

Function Documentation

◆ FatalErrorWithMessage()

void FatalErrorWithMessage ( const char * pszFormat,
... )

Format a message of an error that is not shown, and end the game.

Parameters
pszFormatThe format of the message.
Ghidra address:
BRD3D: 0x10008cc0
Ghidra address:
BRGlide: 0x10008ec0

◆ ReadImportedPodEntry()

bool ReadImportedPodEntry ( const char * pszPath,
void * pBuffer )

Read an entry of BossRally.pod from its import, the directory BossRally of the default assets, where a model is built from its glTF.

Parameters
pszPathThe path of the entry, whose file name names it as the archive names it.
pBufferReceives the bytes of the entry, and fits them.
Returns
Whether the entry was read.

Variable Documentation

◆ g_BossRallyPodArchive

PodArchive g_BossRallyPodArchive
extern

The archive of the data of the game.

Ghidra address:
BRD3D: 0x10a99780
Ghidra address:
BRGlide: 0x10ac0810