Files
emulator/src/citron/discord_impl.h
Zephyron 3eec1ced93 feat(discord): Update Discord integration and game art fetching
- Updates the Discord application Client ID.
- Changes the game art source from static URLs on `citron-emu.org` to dynamically fetched images from `tinfoil.media` using the game's title ID.
- Removes the `GetGameString` function, as the URL formatting logic has changed.
- Modifies `UpdateGameStatus` and `Update` to accommodate the new image fetching mechanism and use the title ID.
- Adds new members to `DiscordImpl` to store title ID and cache image URLs.
- Updates copyright information in `discord_impl.cpp` and `discord_impl.h`.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-06 16:42:30 +10:00

34 lines
653 B
C++

// SPDX-FileCopyrightText: 2018 Citra Emulator Project
// SPDX-FileCopyrightText: 2025 citron Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "citron/discord.h"
namespace Core {
class System;
}
namespace DiscordRPC {
class DiscordImpl: public DiscordInterface {
public: DiscordImpl(Core::System & system_);
~DiscordImpl() override;
void Pause() override;
void Update() override;
private: void UpdateGameStatus(bool use_default);
std::string game_url {};
std::string game_title {};
std::string game_title_id {};
std::string cached_url;
Core::System & system;
u64 program_id = 0;
};
} // namespace DiscordRPC