Move the build to VS2022 (v143) with runtime parity against VC9

Hand-converted the four .vcproj projects to .vcxproj (Win32, v143,
Windows 11 SDK + DXSDK June 2010 for d3dx9/dxerr only). WinTesla.sln now
builds the v143 projects; the legacy solution is kept as WinTesla_vc9.sln.

Kept: /Zp1 in Munga_L4+RP_L4, Unicode, x86, /DYNAMICBASE:NO,
/FORCE:MULTIPLE (header-defined globals still duplicated across TUs).
Changed: CRT unified to /MD(d); import libs linked by the exes instead of
merged into Munga_L4.lib; WINDOWS_IGNORE_PACKING_MISMATCH and
_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS defined;
legacy_stdio_definitions.lib for the June-2010 dxerr.lib.

Source fixes, all behavior-preserving: Time gains standard (non-volatile)
copy-ctor/assignment overloads (rvalues cannot bind to volatile& in
standard C++); operator==(SOCKADDR_IN&,...) made inline; L4DINPUT's
Enum*Callback pair renamed DIEnum* (collided with L4CTRL's under LTCG);
std::ios.in -> std::ios::in in CAMMGR.cpp.

Verified: VC9 baseline rebuilt from this tree first, then the v143 build
compared against it in a sandboxed game working copy - identical logs and
behavior through RIO init (against vRIO) and mission load, including the
same pre-existing AV in d3d_OBJECT::LoadTexture (L4D3D.cpp:262) that both
toolchains hit; documented in BUILD.md 4 as the next debugging target.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-12 12:22:31 -05:00
co-authored by Claude Fable 5
parent 467934c968
commit 12b31187f9
17 changed files with 2561 additions and 203 deletions
+1 -1
View File
@@ -435,7 +435,7 @@ void
std::fstream cam_file;
//cam_file.open(cameraFilename, std::ios::nocreate | std::ios::in | std::ios::out);
// following alternate line created by Ryan Bunker on 1/6/07
cam_file.open(cameraFilename, std::ios.in);
cam_file.open(cameraFilename, std::ios::in);
if(cam_file) //NOTE: this appears broken (RB 1/6/07)
{
cam_file.close();
+1 -1
View File
@@ -273,7 +273,7 @@ public:
bool operator==(SOCKADDR_IN &address1, SOCKADDR_IN &address2)
inline bool operator==(SOCKADDR_IN &address1, SOCKADDR_IN &address2)
{
return (address1.sin_family == address2.sin_family &&
address1.sin_addr.S_un.S_addr == address2.sin_addr.S_un.S_addr &&
+10
View File
@@ -52,9 +52,19 @@ public:
#endif
Time() {}
// Non-volatile overloads: rvalues (function returns) cannot bind to a
// volatile reference in standard C++; VC9 allowed it as an extension.
Time(const Time &t) : ticks(t.ticks) {}
Time(const volatile Time &t) : ticks(t.ticks) {}
Time(SystemClock&) : ticks(0) {}
Time& operator=(const Time &t)
{
Check_Pointer(this);
Check(&t);
ticks = t.ticks;
return *this;
}
Time& operator=(const volatile Time &t)
{
Check_Pointer(this);