Edit state.h

This commit is contained in:
collecting
2025-10-04 04:17:25 +00:00
parent 18c37c0ebf
commit 3592194bed

View File

@@ -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
*/