@@ -238,8 +238,8 @@ class CCore : public CCoreInterface, public CSingleton<CCore>
238238 std::map<std::string, std::string>& GetCommandLineOptions () { return m_CommandLineOptions; }
239239 const char * GetCommandLineOption (const char * szOption);
240240 const char * GetCommandLineArgs () { return m_szCommandLineArgs; }
241- void RequestNewNickOnStart () { m_bWaitToSetNick = true ; };
242- bool WillRequestNewNickOnStart () { return m_bWaitToSetNick ; };
241+ void RequestNewNickOnStart () { m_requestNewNickname = true ; }
242+ bool WillRequestNewNickOnStart () { return m_requestNewNickname ; }
243243 bool WasLaunchedWithConnectURI ();
244244 void HandleCrashDumpEncryption ();
245245
@@ -279,7 +279,9 @@ class CCore : public CCoreInterface, public CSingleton<CCore>
279279 void SetFakeLagCommandEnabled (bool bEnabled) { m_bFakeLagCommandEnabled = bEnabled; }
280280 bool IsFakeLagCommandEnabled () { return m_bFakeLagCommandEnabled; }
281281 SString GetBlueCopyrightString ();
282- bool IsFirstFrame () const noexcept { return m_bFirstFrame; }
282+
283+ bool IsNetworkReady () const noexcept { return m_isNetworkReady; }
284+ bool CanHandleKeyMessages () const noexcept { return m_menuFrame > 1 ; }
283285
284286 void SetCustomStreamingMemory (size_t szMB);
285287 bool IsUsingCustomStreamingMemorySize ();
@@ -346,7 +348,8 @@ class CCore : public CCoreInterface, public CSingleton<CCore>
346348 CKeyBinds* m_pKeyBinds;
347349 CMouseControl* m_pMouseControl;
348350
349- bool m_bFirstFrame;
351+ unsigned short m_menuFrame{};
352+ bool m_isNetworkReady{};
350353 bool m_bIsOfflineMod;
351354 bool m_bCursorToggleControls;
352355 pfnProcessMessage m_pfnMessageProcessor;
@@ -368,8 +371,7 @@ class CCore : public CCoreInterface, public CSingleton<CCore>
368371 CElapsedTimeHD m_FrameRateTimer;
369372 uint m_uiQueuedFrameRate;
370373 bool m_bQueuedFrameRateValid;
371- bool m_bWaitToSetNick;
372- uint m_uiNewNickWaitFrames;
374+ bool m_requestNewNickname{false };
373375 EDiagnosticDebugType m_DiagnosticDebug;
374376
375377 // Below 2 are used for the UI only
0 commit comments