# discoverDefaultProductRoot
function discoverDefaultProductRoot()Discover default product root.
src/main.mlProvides main facilities for this project.
miniquake2/qcommon/byteio.ml as mainByteio → src/miniquake2/qcommon/byteio.mlminiquake2/runtime/application.ml as runtimeApplication → src/miniquake2/runtime/application.mlminiquake2/runtime/crash_report.ml as crashReport → src/miniquake2/runtime/crash_report.mlminiquake2/runtime/diagnostics.ml as runtimeDiagnostics → src/miniquake2/runtime/diagnostics.mlminiquake2/runtime/product_startup.ml as productStartup → src/miniquake2/runtime/product_startup.mlfunction discoverDefaultProductRoot()Discover default product root.
function dispatchMain(args)Dispatch the asset-free bootstrap commands.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function main(args)Catch every propagated MiniLang error at the process boundary. Keeping the original error value preserves its source file, line and function for the persistent report and the copyable Windows crash dialog.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
const MINIQUAKE2_VERSION = "0.5.0-foundation"Defines the miniquake2 version constant used by the main module.
const PORT_STAGE = "integrated-runtime-foundation"Defines the port stage constant used by the main module.
function printCapabilities()Print capabilities.
function printDiagnostics()Report capabilities that must remain usable without proprietary assets.
function printUsage()Print the small bootstrap command surface.
function printVersion()Print stable build and compatibility identifiers for scripts and humans.
const QUAKE2_PROTOCOL_VERSION = 34Defines the quake2 protocol version constant used by the main module.
const QUAKE2_REFERENCE_VERSION = "3.19"Defines the quake2 reference version constant used by the main module.
function runAssetSmoke(args)Run asset smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runCampaignSessionSmoke(args)Run campaign session smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runChangeLevelSmoke(args)Run change level smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runCinematic(args)Run cinematic.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runCliSmoke(args)Exercise argv transport with an optional caller-provided token.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runDataRoot(args)Run data root.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runDedicated(args)Runs dedicated for the main workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runDefaultProduct(root)Run default product.
| Parameter | Type | Default | Description |
|---|---|---|---|
root | dynamic | — | root value consumed by this operation. |
function runDemo(args)Run demo.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runHeadlessClient(args)Run headless client.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runListen(args)Run listen.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runMapPreview(args)Run map preview.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runMediaAudit(args)Run media audit.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runMediaSequence(args)Run media sequence.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runPlay(args)Run play.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runPlayInputSmoke(args)Run play input smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runProductSmoke(args)Run product smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runProjectileVisualSmoke(args)Run projectile visual smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runRemoteProductSmoke(args)Run remote product smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runVideoRestartSmokeCommand(args)Run video restart smoke command.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |
function runWeaponWheelSmoke(args)Run weapon wheel smoke.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Command-line or caller-supplied arguments. |