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): stop asking for a CD the install cannot have
Olcay Seygand1446246233f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 91fe360ca..0435be2df 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1188,7 +1188,7 @@ The whole HUD is on the hardware. Four colours carry it, and they mean the same- Vertical sync works in a window. The option has always been in the menu, and in a window the oldpath ignored it and ran the picture as fast as it could, which is what a screen tears from. It ishonoured now, so the picture holds to your monitor's refresh rate unless you turn it off.-- No disc, no registry keys, no retail installer — a normal install works.+- No disc, no registry keys, no retail installer — a normal install works. "Please insert the first game CD" used to come up over the startup screen of an install that has no disc to put in, and pressing OK only asked again; Cancel was the one way through to the game. A disc is still read when there is one, and when there is not the game carries on without music instead of standing there asking.- The startup screen is this build's own, with the Zero Hour Reforged name on it, so you can see which one you launched before the menu loads.- The main menu buttons are there when the menu is. On the first visit they used to stay hidden, pointer and all, until you nudged the mouse or pressed a key, so a freshly started game looked stuck on the background battle. A match started straight from the command line no longer plays those buttons sliding in over its loading screen.- The zip installs itself and takes itself back off. `install.bat` asks where the game is, offeringdiff --git a/GeneralsMD/Code/GameEngine/Source/Common/Audio/GameAudio.cpp b/GeneralsMD/Code/GameEngine/Source/Common/Audio/GameAudio.cppindex 755ae4e74..845907ffd 100644--- a/GeneralsMD/Code/GameEngine/Source/Common/Audio/GameAudio.cpp+++ b/GeneralsMD/Code/GameEngine/Source/Common/Audio/GameAudio.cpp@@ -235,33 +235,22 @@ void AudioManager::init()// do the miscellaneous sound files last so that we find the audioeventrts associated with the events.ini.load( AsciiString( "Data\\INI\\MiscAudio.ini" ), INI_LOAD_OVERWRITE, NULL);- // determine if one of the music tracks exists. Since their now BIGd, one implies all.- // If they don't exist, then attempt to load them from the CD.- if (!isMusicAlreadyLoaded())+ //+ // One music track existing implies all, since they are BIGd, and when none does the retail+ // disc may still have them: the music shipped on CD 1. So the disc is still read.+ //+ // What is gone is the loop that used to sit around this read. A system-modal "Please insert+ // the first game CD" came up over the splash screen, OK asked again forever and only Cancel+ // let the game start - and no digital install can ever satisfy it, because there is no disc to+ // insert and the missing music is the base game's Music.big, not a CD. Music is not something+ // the game needs to run: the audio manager plays nothing when it has nothing, which is the call+ // GameEngine::init already makes two lines after this returns.+ //+ if (!isMusicAlreadyLoaded()){- m_musicPlayingFromCD = TRUE;- while (TRUE)- {- // @todo Unload any files from CD first. - jkmcd-- TheFileSystem->loadMusicFilesFromCD();- if (isMusicAlreadyLoaded())- {- break;- }- // We loop infinitely on the splash screen if we don't allow breaking out of this loop.-//#if !defined( _DEBUG ) && !defined( _INTERNAL )- else- {- // Display the warning.-- if (OSDisplayWarningBox("GUI:InsertCDPrompt", "GUI:InsertCDMessage", OSDBT_OK | OSDBT_CANCEL, OSDOF_SYSTEMMODAL | OSDOF_EXCLAMATIONICON) == OSDBT_CANCEL) {- //TheGameEngine->setQuitting(TRUE); // Can't do this to WorldBuilder- break;- }- }-//#endif- }+ // @todo Unload any files from CD first. - jkmcd+ TheFileSystem->loadMusicFilesFromCD();+ m_musicPlayingFromCD = isMusicAlreadyLoaded();}m_music = NEW MusicManager;