From 3592194bedd88f471d849952dee28cc341c27fc6 Mon Sep 17 00:00:00 2001 From: collecting Date: Sat, 4 Oct 2025 04:17:25 +0000 Subject: [PATCH] Edit state.h --- src/citron/multiplayer/state.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/citron/multiplayer/state.h b/src/citron/multiplayer/state.h index d6149838f..82f20bde2 100644 --- a/src/citron/multiplayer/state.h +++ b/src/citron/multiplayer/state.h @@ -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 GetSession() { + return announce_multiplayer_session; + } + /** * Close all open multiplayer related dialogs */