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(gameengine): missing music no longer ends the process without a word
Olcay Seyganac86ae965a2f
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cppindex 0dd17abfb..8f4d9e96f 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/GameEngine.cpp@@ -647,8 +647,15 @@ void GameEngine::init( int argc, char *argv[] )DEBUG_LOG(("%s", Buf));////////////////////////////////////////////////////////////////////////////#endif/////////////////////////////////////////////////////////////////////////////////////////////initSubsystem(TheAudio,"TheAudio", createAudioManager(), NULL);+ //+ // Missing music used to end the process here, with setQuitting and not one word anywhere: the+ // game started, the window appeared for a moment and it closed again. A player who deleted+ // Music.big to save space, or a mod that ships without music, got that and no way to find out+ // why. Music is not a thing the game needs to run - the audio manager already plays nothing+ // when it has nothing - so say so in the log and carry on.+ //if (!TheAudio->isMusicAlreadyLoaded())- setQuitting(TRUE);+ DEBUG_LOG(("No music track was found - the game runs without music. Check that Music.big is next to the exe.\n"));#ifdef DUMP_PERF_STATS///////////////////////////////////////////////////////////////////////////GetPrecisionTimer(&endTime64);//////////////////////////////////////////////////////////////////