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