mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-31 15:33:44 +00:00
Edit state.h
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// SPDX-FileCopyrightText: Copyright 2018 Citra Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
@@ -15,7 +16,7 @@ class DirectConnectWindow;
|
||||
class ClickableLabel;
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
class System;
|
||||
}
|
||||
|
||||
class MultiplayerState : public QWidget {
|
||||
@@ -33,6 +34,13 @@ public:
|
||||
QAction* show_room, Core::System& system_);
|
||||
~MultiplayerState();
|
||||
|
||||
/**
|
||||
* This is the new function to safely access the multiplayer session.
|
||||
*/
|
||||
std::shared_ptr<Core::AnnounceMultiplayerSession> GetSession() {
|
||||
return announce_multiplayer_session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Close all open multiplayer related dialogs
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user