MiniQuake

src/miniquake/pak.ml

Package
miniquake.pak
Reachable
Yes

Imports

Declarations

directoryCrc

function directoryCrc(archive)

Return directory crc derived from the active module state.

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `directoryCrc`.

View source

directoryRange

function directoryRange(archive)

Implements the `directoryRange` operation for `miniquake.pak` (directory range).

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `directoryRange`.

View source

find

function find(archive, name)

Implements the `find` operation for `miniquake.pak` (find).

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `find`.
namedynamic—Stable name that identifies the requested object or option.

View source

hasFile

function hasFile(archive, name)

Report whether file.

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `hasFile`.
namedynamic—Stable name that identifies the requested object or option.

View source

isOriginalPak0Directory

function isOriginalPak0Directory(archive)

Report whether is original pak0 directory.

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `isOriginalPak0Directory`.

View source

load

function load(filename)

Implements the `load` operation for `miniquake.pak` (load).

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.

View source

MAX_FILES_IN_PACK

const MAX_FILES_IN_PACK = 2048

Defines the max files in pack value used by `miniquake.pak`.

View source

PAK0_COUNT

const PAK0_COUNT = 339

Defines the pak0 count value used by `miniquake.pak`.

View source

PAK0_CRC

const PAK0_CRC = 32981

Defines the pak0 crc value used by `miniquake.pak`.

View source

parse

function parse(data, filename)

Implements the `parse` operation for `miniquake.pak` (parse).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
filenamedynamic—Path of the file to process.

View source

readFile

function readFile(archive, name)

Read and validate file.

ParameterTypeDefaultDescription
archivedynamic—The archive input consumed by `readFile`.
namedynamic—Stable name that identifies the requested object or option.

View source