refactor(network): Remove obsolete HTTP Proxy option - #3009
Conversation
|
| Filename | Overview |
|---|---|
| Core/GameEngine/Source/GameNetwork/GameSpy/MainMenuUtils.cpp | Removes registry-based proxy configuration before in-game patch and bulletin requests. |
| Core/Tools/PATCHGET/CHATAPI.cpp | Removes registry-based proxy configuration from the standalone patch downloader. |
| Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp | Removes proxy loading and saving and hides the obsolete controls in Generals. |
| GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/OptionsMenu.cpp | Removes proxy loading and saving and hides the obsolete controls in Zero Hour. |
Reviews (3): Last reviewed commit: "refactor(network): Put HTTP Proxy option..." | Re-trigger Greptile
fd4ed7a to
29f538f
Compare
|
Instead of removing the http proxy port, would it be possible to repurpose is and bind net packet traffic for game messages hrough it or is that not needed or possible? |
|
Not needed IMHO. |
|
Have you validated that the game actually respects the OS proxy settings? Also we should consider |
|
The original code relied on its own internal registry keys rather than OS settings; it does not follow the OS proxy settings. Will update the description. Adding http_proxy / https_proxy support would just reintroduce player confusion (thinking it routes P2P game traffic) and unnecessary code complexity. If someone actually needs to proxy HTTP (or UDP) traffic for this game, better system-level tools and wrappers already exist to handle that far more cleanly. I'll be happy to add the switch if users report that they need this switch without having superior options already available. |
| // HTTP Proxy | ||
| GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryHTTPProxy")); | ||
| #if ENABLE_GUI_HACKS | ||
| // TheSuperHackers @tweak 26/07/2026 Hide the obsolete HTTP Proxy entry and its label |
There was a problem hiding this comment.
Can also explain why this was obsoleted.
What this code did:
The
TextEntryHTTPProxyoption inOptionsMenu.cpp:Proxy) inHKLM\SOFTWARE\Electronic Arts\EA Games\Command and Conquer Generals Zero Hour.ghttpSetProxy()for HTTP web requests (MOTD news bulletins and patch checks).Background & Reason for Removal:
textEntryHTTPProxy->winHide(TRUE)in C++ hides the obsolete setting from the Options menu without breaking custom/legacy.wndlayout assets.HKEY_LOCAL_MACHINE(HKLM) that caused Windows UAC permission failures (ERROR_ACCESS_DENIED) when playing without Administrator privileges on certain variants of Windows.