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(gameclient): save hotkeys through zh_fopen so linux finds the file
Olcay Seygan80e161b5bdb0
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cppindex e45168185..49cc246a2 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenuHotkeys.cpp@@ -29,6 +29,7 @@// and unit through every build button, in the engine's own templates instead of the INI text.#include "PreRTS.h" // This must go first in EVERY cpp file in the GameEngine+#include "zhio.h"#include "Common/FileSystem.h"#include "Common/file.h"@@ -810,7 +811,7 @@ void OptionsHotkeysSave( void )s_commandList = NULL;return;}- FILE *file = fopen( hotkeysPath().str(), "wb" );+ FILE *file = zh_fopen( hotkeysPath().str(), "wb" );if( file == NULL ){DEBUG_LOG(( "HOTKEYS: %s could not be written\n", hotkeysPath().str() ));