Added stubs for NetClose on other platforms

These will need someone with much better experience to implement correctly to abort the net window
This commit is contained in:
Boondorl 2024-11-05 16:24:10 -05:00 committed by Ricardo Luís Vaz Silva
parent e898139690
commit b6fd65988b
4 changed files with 17 additions and 0 deletions

View file

@ -66,6 +66,7 @@ public:
void NetInit(const char* message, int playerCount); void NetInit(const char* message, int playerCount);
void NetProgress(int count); void NetProgress(int count);
void NetDone(); void NetDone();
void NetClose();
private: private:
NSWindow* m_window; NSWindow* m_window;

View file

@ -531,3 +531,8 @@ void FConsoleWindow::NetDone()
m_netAbortButton = nil; m_netAbortButton = nil;
} }
} }
void FConsoleWindow::NetClose()
{
// TODO: Implement this
}

View file

@ -110,6 +110,11 @@ void FBasicStartupScreen::NetDone()
FConsoleWindow::GetInstance().NetDone(); FConsoleWindow::GetInstance().NetDone();
} }
void FBasicStartupScreen::NetClose()
{
FConsoleWindow::GetInstance().NetClose();
}
bool FBasicStartupScreen::NetLoop(bool (*timerCallback)(void*), void* const userData) bool FBasicStartupScreen::NetLoop(bool (*timerCallback)(void*), void* const userData)
{ {
while (true) while (true)

View file

@ -57,6 +57,7 @@ class FTTYStartupScreen : public FStartupScreen
void NetInit(const char *message, int num_players); void NetInit(const char *message, int num_players);
void NetProgress(int count); void NetProgress(int count);
void NetDone(); void NetDone();
void NetClose();
bool NetLoop(bool (*timer_callback)(void *), void *userdata); bool NetLoop(bool (*timer_callback)(void *), void *userdata);
protected: protected:
bool DidNetInit; bool DidNetInit;
@ -237,6 +238,11 @@ void FTTYStartupScreen::NetProgress(int count)
} }
} }
void FTTYStartupScreen::NetClose()
{
// TODO: Implement this
}
//=========================================================================== //===========================================================================
// //
// FTTYStartupScreen :: NetLoop // FTTYStartupScreen :: NetLoop