Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions Core/GameEngine/Source/GameNetwork/GameSpy/MainMenuUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,15 +854,6 @@ static void reallyStartPatchCheck()

FormatURLFromRegistry(gameURL, mapURL, configURL, motdURL);

std::string proxy;
if (GetStringFromRegistry("", "Proxy", proxy))
{
if (!proxy.empty())
{
ghttpSetProxy(proxy.c_str());
}
}

// check for a patch first
DEBUG_LOG(("Game patch check: [%s]", gameURL.c_str()));
DEBUG_LOG(("Map patch check: [%s]", mapURL.c_str()));
Expand Down
9 changes: 0 additions & 9 deletions Core/Tools/PATCHGET/CHATAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,15 +451,6 @@ static void StartPatchCheck( void )

FormatURLFromRegistry(gameURL, mapURL, configURL, motdURL);

std::string proxy;
if (GetStringFromRegistry("", "Proxy", proxy))
{
if (!proxy.empty())
{
ghttpSetProxy(proxy.c_str());
}
}

// check for a patch first
checksLeft = 2;
cantConnect = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,18 +501,6 @@ static void saveOptions()
}
}

//-------------------------------------------------------------------------------------------------
// HTTP Proxy
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryHTTPProxy"));
if (textEntryHTTPProxy && textEntryHTTPProxy->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryHTTPProxy);
AsciiString aStr;
aStr.translate(uStr);
SetStringInRegistry("", "Proxy", aStr.str());
ghttpSetProxy(aStr.str());
}

//-------------------------------------------------------------------------------------------------
// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
Expand Down Expand Up @@ -1125,16 +1113,18 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
}
}

// 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
NameKeyType textEntryHTTPProxyID = TheNameKeyGenerator->nameToKey("OptionsMenu.wnd:TextEntryHTTPProxy");
Comment thread
githubawn marked this conversation as resolved.
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, textEntryHTTPProxyID);
if (textEntryHTTPProxy)
{
UnicodeString uStr;
std::string proxy;
GetStringFromRegistry("", "Proxy", proxy);
uStr.translate(proxy.c_str());
GadgetTextEntrySetText(textEntryHTTPProxy, uStr);
}
textEntryHTTPProxy->winHide(TRUE);
Comment thread
githubawn marked this conversation as resolved.

NameKeyType staticTextHTTPProxyID = TheNameKeyGenerator->nameToKey("OptionsMenu.wnd:StaticTextHTTPProxy");
GameWindow *staticTextHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, staticTextHTTPProxyID);
if (staticTextHTTPProxy)
staticTextHTTPProxy->winHide(TRUE);
#endif

// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
Expand Down Expand Up @@ -1402,9 +1392,6 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
if (textEntryFirewallPortOverride)
textEntryFirewallPortOverride->winEnable(FALSE);

if (textEntryHTTPProxy)
textEntryHTTPProxy->winEnable(FALSE);

// if (checkAudioSurround)
// checkAudioSurround->winEnable(FALSE);
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,18 +520,6 @@ static void saveOptions()
}
}

//-------------------------------------------------------------------------------------------------
// HTTP Proxy
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryHTTPProxy"));
if (textEntryHTTPProxy && textEntryHTTPProxy->winGetEnabled())
{
UnicodeString uStr = GadgetTextEntryGetText(textEntryHTTPProxy);
AsciiString aStr;
aStr.translate(uStr);
SetStringInRegistry("", "Proxy", aStr.str());
ghttpSetProxy(aStr.str());
}

//-------------------------------------------------------------------------------------------------
// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
Expand Down Expand Up @@ -1157,16 +1145,18 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
}
}

// 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also explain why this was obsoleted.

NameKeyType textEntryHTTPProxyID = TheNameKeyGenerator->nameToKey("OptionsMenu.wnd:TextEntryHTTPProxy");
GameWindow *textEntryHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, textEntryHTTPProxyID);
if (textEntryHTTPProxy)
{
UnicodeString uStr;
std::string proxy;
GetStringFromRegistry("", "Proxy", proxy);
uStr.translate(proxy.c_str());
GadgetTextEntrySetText(textEntryHTTPProxy, uStr);
}
textEntryHTTPProxy->winHide(TRUE);

NameKeyType staticTextHTTPProxyID = TheNameKeyGenerator->nameToKey("OptionsMenu.wnd:StaticTextHTTPProxy");
GameWindow *staticTextHTTPProxy = TheWindowManager->winGetWindowFromId(nullptr, staticTextHTTPProxyID);
if (staticTextHTTPProxy)
staticTextHTTPProxy->winHide(TRUE);
#endif

// Firewall Port Override
GameWindow *textEntryFirewallPortOverride = TheWindowManager->winGetWindowFromId(nullptr, NAMEKEY("OptionsMenu.wnd:TextEntryFirewallPortOverride"));
Expand Down Expand Up @@ -1438,9 +1428,6 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
if (textEntryFirewallPortOverride)
textEntryFirewallPortOverride->winEnable(FALSE);

if (textEntryHTTPProxy)
textEntryHTTPProxy->winEnable(FALSE);

// if (checkAudioSurround)
// checkAudioSurround->winEnable(FALSE);
//
Expand Down
Loading