mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-15 06:48:55 +02:00
This is adapted from kleidis old PR to Azahar. Changes from it: - Fixed inconsistent button styling in the dialog for connection - Allowed to hide both empty and full rooms. - Proper serving of preferred games - Enables web service for android by default - Better implementation of multiplayer.cpp that works with oop Also fixes the room network class and turns it into a static namespace in network Signed-off-by: Aleksandr Popovich <alekpopo@pm.me> Co-authored-by: swurl <swurl@swurl.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/125 Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-committed-by: Aleksandr Popovich <alekpopo@pm.me>
27 lines
721 B
C++
27 lines
721 B
C++
// SPDX-FileCopyrightText: Copyright 2017 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include "network/room.h"
|
|
#include "network/room_member.h"
|
|
|
|
namespace Network {
|
|
|
|
/// Initializes and registers the network device, the room, and the room member.
|
|
bool Init();
|
|
|
|
/// Returns a pointer to the room handle
|
|
std::weak_ptr<Room> GetRoom();
|
|
|
|
/// Returns a pointer to the room member handle
|
|
std::weak_ptr<RoomMember> GetRoomMember();
|
|
|
|
/// Unregisters the network device, the room, and the room member and shut them down.
|
|
void Shutdown();
|
|
|
|
} // namespace Network
|