mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 14:28:34 +00:00
Settings: Implement NetPlay globals
This commit is contained in:
parent
2e29509b75
commit
78cc759d56
4 changed files with 44 additions and 10 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "Common/FileUtil.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "DolphinQt2/GameList/GameListModel.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
#include "InputCommon/InputConfig.h"
|
||||
|
||||
|
@ -171,3 +172,29 @@ void Settings::SetLogConfigVisible(bool visible)
|
|||
emit LogConfigVisibilityChanged(visible);
|
||||
}
|
||||
}
|
||||
|
||||
GameListModel* Settings::GetGameListModel() const
|
||||
{
|
||||
static GameListModel* model = new GameListModel;
|
||||
return model;
|
||||
}
|
||||
|
||||
NetPlayClient* Settings::GetNetPlayClient()
|
||||
{
|
||||
return m_client.get();
|
||||
}
|
||||
|
||||
void Settings::ResetNetPlayClient(NetPlayClient* client)
|
||||
{
|
||||
m_client.reset(client);
|
||||
}
|
||||
|
||||
NetPlayServer* Settings::GetNetPlayServer()
|
||||
{
|
||||
return m_server.get();
|
||||
}
|
||||
|
||||
void Settings::ResetNetPlayServer(NetPlayServer* server)
|
||||
{
|
||||
m_server.reset(server);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue