Clean, self-contained extraction of the BattleTech-specific work from the
reverse-engineering workspace -- engine + game + content + build, with nothing
from Red Planet or the raw archive dumps. Builds green (Win32) and runs the
single-player drive->animate->target->fire->damage->destroy loop out of the box.
Layout:
engine/ MUNGA + MUNGA_L4 shared 2007 engine, carrying our BT render/loader
work (bgfload/L4D3D/L4VIDEO: BSL bit-slice decode, LOD/ground/shadow
models) + image codec; the minimal rp/ headers the audio HAL needs
game/ reconstructed BT logic + surviving-original BT source + fwd shims
+ WinMain launcher
content/ full runtime tree (BTL4.RES, VIDEO/, GAUGE/, AUDIO/, eggs, BTDPL.INI)
docs/ format specs + reconstruction ledgers
reference/ raw Ghidra pseudocode (recon source-of-truth) + decomp exporter
tools/ MP console emulator + map/resource scanners
One top-level CMake builds munga_engine lib + bt410_l4 game lib + btl4.exe.
All paths relativized (186 fwd shims + ~437 CMake abs paths -> repo-relative);
DXSDK is the one external, overridable via -DDXSDK. Verified: builds to a
byte-identical 2.27MB exe and runs combat (TARGET DESTROYED, 0 crashes) against
the bundled content.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
/*
|
|
-- ----------------------------------------------------------------------------
|
|
--
|
|
-- Copyright 1995 Division Limited.
|
|
-- All Rights Reserved
|
|
--
|
|
--
|
|
-- System :
|
|
-- Module :
|
|
-- Object Name : $RCSfile: getparam.h,v $
|
|
-- Revision : $Revision: 1.6 $
|
|
-- Date : $Date: 95/04/27 23:01:16 $
|
|
-- Author : $Author: bill $
|
|
--
|
|
-- Description
|
|
--
|
|
-- Notes
|
|
--
|
|
-- History
|
|
--
|
|
--
|
|
-- ----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __GETPARAM_H__
|
|
#define __GETPARAM_H__
|
|
|
|
#ifdef _PF_LOCAL
|
|
#include "pgeneral.h"
|
|
#else
|
|
#include <dsys/pgeneral.h>
|
|
#endif
|
|
|
|
/*****************************************************************************/
|
|
/* getparam error numbers */
|
|
#define dgpENO_STREXP 0x3001
|
|
#define dgpENO_UNKOPT 0x3002
|
|
#define dgpENO_USAGE 0x3003
|
|
#define dgpENO_RSRCF 0x3004
|
|
|
|
/****************************************************************************
|
|
* getparam monitor numbers */
|
|
#define dgpMON_OPTIONS 0x00001000
|
|
#define dgpMON_FILES 0x00002000
|
|
|
|
|
|
#define dgp_END 0
|
|
#define dgp_NO_STR 1
|
|
#define dgp_D_STR 2
|
|
#define dgp_DJOIN_STR 3
|
|
#define dgp_DAFTER_STR 4
|
|
#define dgp_DBOTH_STR 5
|
|
#define dgp_O_STR 6
|
|
#define dgp_OJOIN_STR 7
|
|
#define dgp_OAFTER_STR 8
|
|
#define dgp_OBOTH_STR 9
|
|
|
|
typedef struct {
|
|
char optname[15] ;
|
|
int32 opttype ;
|
|
int32 optreturn ;
|
|
} dgpTABLE, *dgpTABLEPTR ;
|
|
|
|
extern char *progname ;
|
|
|
|
int32
|
|
dgpGetopt(int32 argc, char *argv[], dgpTABLEPTR table,
|
|
int32 *NoFiles, char **files[], char **str1, char **str2) ;
|
|
|
|
void
|
|
dgpFreeFiles(int32 NoFiles, char *files[]) ;
|
|
|
|
#endif /* __GETPARAM_H__ */
|