diff options
| author | Matthew Toro <48634881+mattsumi@users.noreply.github.com> | 2026-03-08 04:10:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-08 03:10:15 -0500 |
| commit | 3a5f1b617931d00145504d97ef4fbef4f3138b5b (patch) | |
| tree | 925a71e25f2b9256f85c50833585a791e44771de /Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h | |
| parent | d461012efb3855d1fbfe9dc3696562223f21334a (diff) | |
Add "Add Server" functionally to "Join Game" Menu + relocate servers.txt to servers.db. (#911)
* Add "Add Server" functionally to "Join Game" Menu + relocate servers.txt to servers.db
* enchancement: add edit and delete server functionality, solves FriendSessionInfo corruption issues
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h')
| -rw-r--r-- | Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h b/Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h index 3599aa37..9f5fe17f 100644 --- a/Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h +++ b/Minecraft.Client/Common/UI/UIScene_LoadOrJoinMenu.h @@ -175,6 +175,18 @@ public: private: void CheckAndJoinGame(int gameIndex); + +#ifdef _WINDOWS64 + static const int ADD_SERVER_BUTTON_INDEX = 0; + enum eAddServerPhase { eAddServer_Idle, eAddServer_IP, eAddServer_Port, eAddServer_Name }; + eAddServerPhase m_addServerPhase; + wstring m_addServerIP; + wstring m_addServerPort; + void BeginAddServer(); + void AppendServerToFile(const wstring& ip, const wstring& port, const wstring& name); + static int AddServerKeyboardCallback(LPVOID lpParam, bool bRes); +#endif + #if defined(__PS3__) || defined(__PSVITA__) || defined(__ORBIS__) static int MustSignInReturnedPSN(void *pParam,int iPad,C4JStorage::EMessageResult result); static int PSN_SignInReturned(void *pParam,bool bContinue, int iPad); |
