wavelength 1.0.0
Loading...
Searching...
No Matches
Archive.h File Reference
#include <vector>
#include "os/ArkHash.h"
#include "os/FileEntry.h"
#include "utl/Str.h"
Include dependency graph for Archive.h:

Go to the source code of this file.

Classes

class  Archive
 The archive on the disc that the game files are read from. More...

Functions

void ArchivePreInit ()
 Clear the three words before gArchive.
void ArchiveInit ()
 Open the archive when the files come from the disc, and start the block manager.
bool ArchiveGetFileInfo (const char *name, __int64 &offset, int &size, int &ucSize)
 Find a file in the archive.

Variables

Archive * gArchive
 The archive, created by ArchiveInit() when the files come from the disc.

Function Documentation

◆ ArchivePreInit()

void ArchivePreInit ( )

Clear the three words before gArchive.

No routine reads them.

Ghidra address:
0x1000d2c0

◆ ArchiveInit()

void ArchiveInit ( )

Open the archive when the files come from the disc, and start the block manager.

Ghidra address:
0x1000d2e0

◆ ArchiveGetFileInfo()

bool ArchiveGetFileInfo ( const char * name,
__int64 & offset,
int & size,
int & ucSize )

Find a file in the archive.

Parameters
nameThe file's path relative to the root.
offsetReceives the offset of the file in the archive.
sizeReceives the size of the file.
ucSizeReceives the size of the file before compression.
Returns
Whether the archive is open and has the file.
Ghidra address:
0x1000d350

Variable Documentation

◆ gArchive

Archive* gArchive
extern

The archive, created by ArchiveInit() when the files come from the disc.

Ghidra address:
0x10040ccc