source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived

- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-19 07:33:26 -05:00
co-authored by Claude Fable 5
parent 599b2388a1
commit 63312e07f9
5913 changed files with 756089 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

@@ -0,0 +1,22 @@
#*------------------------------------------------------------------------*/
#* */
#* MAKEFILE */
#* */
#* Copyright Borland International, 1993 */
#* */
#* Streaming example makefile */
#* */
#*------------------------------------------------------------------------*/
EXE = stream0
RESEXE = streams.res
RESEXE_= streams.h
EXEALL = stream0.exe stream1.exe stream2.exe
EXEMAKE= $(STREAM0) $(STREAM1) $(STREAM2)
STREAM0 = $(EXERULE)
STREAM1 = $(EXERULE:stream0=stream1)
STREAM2 = $(EXERULE:stream0=stream2)
!include $(BCEXAMPLEDIR)\owlmake.gen
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
NAME Stream0
DESCRIPTION 'Streaming Demo 0'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4096
STACKSIZE 5120
Binary file not shown.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
NAME Stream1
DESCRIPTION 'Streaming Demo 1'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4096
STACKSIZE 5120
Binary file not shown.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
NAME Stream2
DESCRIPTION 'Streaming Demo 2'
EXETYPE WINDOWS
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD MOVEABLE MULTIPLE
HEAPSIZE 4096
STACKSIZE 5120
Binary file not shown.
@@ -0,0 +1,35 @@
/*------------------------------------------------------------------------*/
/* */
/* STREAMS.H */
/* */
/* Copyright Borland International, 1993 */
/* */
/* Streaming example header file */
/* */
/*------------------------------------------------------------------------*/
#define CM_FILENEW 24331
#define CM_FILEOPEN 24332
#define CM_FILESAVE 24333
#define CM_FILESAVEAS 24334
#define CM_EXIT 24310
#define CM_EDITLINE 201
#define CM_EDITRECTANGLE 202
#define CM_EDITCAPTIONEDRECTANGLE 203
#define CM_EDITFILLEDRECTANGLE 204
#define CM_EDITELLIPSE 205
#define CM_EDITCAPTIONEDELLIPSE 206
#define CM_EDITFILLEDELLIPSE 207
#define CM_HELPABOUT 24346
#define ELLIPSE_CURSOR 1
#define LINE_CURSOR 2
#define RECT_CURSOR 3
#define IDD_INPUTEDITBOX 501
#define IDD_TOP 502
#define IDD_CENTER 503
#define IDD_BOTTOM 504
#define IDD_POSITIONBOX 505
@@ -0,0 +1,75 @@
/*------------------------------------------------------------------------*/
/* */
/* STREAMS.RC */
/* */
/* Copyright Borland International, 1993 */
/* */
/* Streaming example resource definition file */
/* */
/*------------------------------------------------------------------------*/
#include "streams.h"
ELLIPSE_CURSOR CURSOR "ellipse.cur"
LINE_CURSOR CURSOR "line.cur"
RECT_CURSOR CURSOR "rect.cur"
COMMANDS MENU LOADONCALL MOVEABLE PURE DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&New", CM_FILENEW
MENUITEM "&Open...", CM_FILEOPEN
MENUITEM "&Save", CM_FILESAVE
MENUITEM "Save &as...", CM_FILESAVEAS
MENUITEM SEPARATOR
MENUITEM "E&xit", CM_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Line", CM_EDITLINE
MENUITEM "&Rectangle", CM_EDITRECTANGLE
MENUITEM "&Captioned Rectangle", CM_EDITCAPTIONEDRECTANGLE
MENUITEM "&Filled Rectangle", CM_EDITFILLEDRECTANGLE
MENUITEM "&Ellipse", CM_EDITELLIPSE
MENUITEM "C&aptioned Ellipse", CM_EDITCAPTIONEDELLIPSE
MENUITEM "F&illed Ellipse", CM_EDITFILLEDELLIPSE
END
POPUP "&Help"
BEGIN
MENUITEM "&About...", CM_HELPABOUT
END
END
CaptionDlg DIALOG 85, 79, 156, 111
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Caption"
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "&Caption:", -1, 11, 7, 48, 8, NOT WS_GROUP
EDITTEXT IDD_INPUTEDITBOX, 12, 19, 126, 11
GROUPBOX "&Position", IDD_POSITIONBOX, 12, 39, 59, 58, BS_GROUPBOX
CONTROL "Top", IDD_TOP, "BUTTON", BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP, 21, 52, 41, 12
CONTROL "Center", IDD_CENTER, "BUTTON", BS_AUTORADIOBUTTON, 21, 65, 43, 13
CONTROL "Bottom", IDD_BOTTOM, "BUTTON", BS_AUTORADIOBUTTON, 21, 80, 44, 9
DEFPUSHBUTTON "Ok", IDOK, 88, 64, 50, 14, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
END
About DIALOG 82, 84, 194, 79
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "Ok", IDOK, 73, 53, 50, 14
CTEXT "Borland C++ 4.0", -1, 15, 10, 165, 18
CTEXT "Streaming Demo", -1, 15, 27, 165, 11
END