# cleanupNameText
function cleanupNameText(input)Implements the `cleanupNameText` operation for `miniquake.wad` (cleanup name text).
| Parameter | Type | Default | Description |
|---|---|---|---|
input | dynamic | — | The input input consumed by `cleanupNameText`. |
src/miniquake/wad.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/protocol_text.ml as quakeText → src/miniquake/protocol_text.mlminiquake/types.ml as t → src/miniquake/types.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction cleanupNameText(input)Implements the `cleanupNameText` operation for `miniquake.wad` (cleanup name text).
| Parameter | Type | Default | Description |
|---|---|---|---|
input | dynamic | — | The input input consumed by `cleanupNameText`. |
const CMP_LZSS = 1Defines the cmp lzss value used by `miniquake.wad`.
const CMP_NONE = 0Defines the cmp none value used by `miniquake.wad`.
function find(archive, name)Implements the `find` operation for `miniquake.wad` (find).
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `find`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function load(filename)Implements the `load` operation for `miniquake.wad` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
function parse(data, filename)Existing idiomatic API retained for callers already ported to MiniLang.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function pictureDimensions(archive, name)Implements the `pictureDimensions` operation for `miniquake.wad` (picture dimensions).
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `pictureDimensions`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function readLump(archive, name)Read and validate lump.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `readLump`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function SwapPic(data, offset)SwapPic performs the two LittleLong conversions from the original. The supported Windows x64 build is little-endian, but writing the decoded values back makes the operation explicit and keeps the observable in-place API.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
const TYP_LABEL = 1Defines the typ label value used by `miniquake.wad`.
const TYP_LUMPY = 64Defines the typ lumpy value used by `miniquake.wad`.
const TYP_MIPTEX = 68Defines the typ miptex value used by `miniquake.wad`.
const TYP_NONE = 0Defines the typ none value used by `miniquake.wad`.
const TYP_PALETTE = 64Defines the typ palette value used by `miniquake.wad`.
const TYP_QPIC = 66Defines the typ qpic value used by `miniquake.wad`.
const TYP_QTEX = 65Defines the typ qtex value used by `miniquake.wad`.
const TYP_SOUND = 67Defines the typ sound value used by `miniquake.wad`.
function W_CleanupName(input)W_CleanupName lowercases only ASCII A-Z, stops at the first NUL, truncates at 16 bytes, and NUL-pads the rest. Returning the fixed buffer preserves the exact lumpinfo_t name representation and is safe for in-place callers.
| Parameter | Type | Default | Description |
|---|---|---|---|
input | dynamic | — | The input input consumed by `W_CleanupName`. |
function W_GetLumpinfo(archive, name)Mirror Quake's W_GetLumpinfo routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `W_GetLumpinfo`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function W_GetLumpName(archive, name)C returns an untyped pointer. MiniLang exposes the exact on-disk byte range instead; like the original this does not reject compressed lumps.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `W_GetLumpName`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function W_GetLumpNum(archive, number)Mirror Quake's W_GetLumpNum routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `W_GetLumpNum`. |
number | dynamic | — | The number input consumed by `W_GetLumpNum`. |
function W_LoadWadData(data, filename)Data-oriented counterpart used when gfx.wad came from a Quake search path (most retail installs keep it inside pak0.pak).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function W_LoadWadFile(filename)Mirror Quake's W_LoadWadFile routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
const WAD_LUMPINFO_SIZE = 32Defines the wad lumpinfo size value used by `miniquake.wad`.
const WAD_NAME_LENGTH = 16Defines the wad name length value used by `miniquake.wad`.