Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
fix(baselib): build the tests on linux with gcc 16
Kane Phippsc8784878faec
diff --git a/GeneralsMD/Code/Libraries/Include/Lib/BaseType.h b/GeneralsMD/Code/Libraries/Include/Lib/BaseType.hindex b1d0df234..67021d217 100644--- a/GeneralsMD/Code/Libraries/Include/Lib/BaseType.h+++ b/GeneralsMD/Code/Libraries/Include/Lib/BaseType.h@@ -116,6 +116,7 @@#include <bitset>#include <chrono>#include <deque>+#include <fstream>#include <functional>#include <list>#include <map>diff --git a/GeneralsMD/Code/Tests/test_gameengine.cpp b/GeneralsMD/Code/Tests/test_gameengine.cppindex 8388fd9be..4e397fc68 100644--- a/GeneralsMD/Code/Tests/test_gameengine.cpp+++ b/GeneralsMD/Code/Tests/test_gameengine.cpp@@ -14819,6 +14819,8 @@ TEST(every_shipped_map_has_wire_letters_of_its_own)names a file of town building names, one a line, standing in for the object INI. Run astest_gameengine.exe write_the_maps_RMG_TEMPLATE_DUMP_names. *///-------------------------------------------------------------------------------------------------+#include "Lib/Clock.h"+TEST(write_the_maps_RMG_TEMPLATE_DUMP_names){const char *dump = getenv( "RMG_TEMPLATE_DUMP" );@@ -14858,11 +14860,9 @@ TEST(write_the_maps_RMG_TEMPLATE_DUMP_names)RandomMapGenerator::clampSettings( settings );std::vector<char> map, preview;RMGTemplateReport report;- LARGE_INTEGER frequency, before, after;- QueryPerformanceFrequency( &frequency );- QueryPerformanceCounter( &before );+ const long long before = Clock_Ticks();Bool built = rmgSynthesise( settings, exemplar, civilians ? isListedCivilian : NULL, map, &preview, &report );- QueryPerformanceCounter( &after );+ const long long after = Clock_Ticks();CHECK( built );if( !built )continue;@@ -14882,7 +14882,7 @@ TEST(write_the_maps_RMG_TEMPLATE_DUMP_names)fclose( out );printf( " wrote %s.map (%d bytes) in %.2f s: %d pads, %d ramps cut, %d patches, %d bridges, %d rivers, %d towns, %d tech, %d road ""segments, %d trees, %d scenery; cut off %d starts, %d sites, %d tech\n%s",- name, (Int)map.size(), (double)( after.QuadPart - before.QuadPart ) / (double)frequency.QuadPart,+ name, (Int)map.size(), (double)( after - before ) / (double)Clock_Ticks_Per_Second(),report.m_pads, report.m_ramps, report.m_patches, report.m_bridges, report.m_rivers, report.m_towns, report.m_tech,report.m_roads, report.m_trees, report.m_scenery, report.m_cutOffStarts, report.m_cutOffSites, report.m_cutOffTech,report.m_notes.str() );