Skip to content

Commit

Permalink
Added stubs for NetClose on other platforms
Browse files Browse the repository at this point in the history
These will need someone with much better experience to implement correctly to abort the net window
  • Loading branch information
Boondorl committed Nov 5, 2024
1 parent 0abaa43 commit 4d49953
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/platform/posix/cocoa/st_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class FConsoleWindow
void NetInit(const char* message, int playerCount);
void NetProgress(int count);
void NetDone();
void NetClose();

private:
NSWindow* m_window;
Expand Down
5 changes: 5 additions & 0 deletions src/common/platform/posix/cocoa/st_console.mm
Original file line number Diff line number Diff line change
Expand Up @@ -531,3 +531,8 @@ static void UpdateTimed(const Function& function)
m_netAbortButton = nil;
}
}

void FConsoleWindow::NetClose()
{
// TODO: Implement this
}
5 changes: 5 additions & 0 deletions src/common/platform/posix/cocoa/st_start.mm
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
FConsoleWindow::GetInstance().NetDone();
}

void FBasicStartupScreen::NetClose()
{
FConsoleWindow::GetInstance().NetClose();
}

bool FBasicStartupScreen::NetLoop(bool (*timerCallback)(void*), void* const userData)
{
while (true)
Expand Down
6 changes: 6 additions & 0 deletions src/common/platform/posix/sdl/st_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class FTTYStartupScreen : public FStartupScreen
void NetInit(const char *message, int num_players);
void NetProgress(int count);
void NetDone();
void NetClose();
bool NetLoop(bool (*timer_callback)(void *), void *userdata);
protected:
bool DidNetInit;
Expand Down Expand Up @@ -237,6 +238,11 @@ void FTTYStartupScreen::NetProgress(int count)
}
}

void FTTYStartupScreen::NetClose()
{
// TODO: Implement this
}

//===========================================================================
//
// FTTYStartupScreen :: NetLoop
Expand Down

0 comments on commit 4d49953

Please sign in to comment.