diff options
| author | swurl <swurl@swurl.xyz> | 2025-05-11 23:58:25 +0000 |
|---|---|---|
| committer | crueter <crueter@noreply.localhost> | 2025-05-11 23:58:25 +0000 |
| commit | 7e943732bf025bb7ead5ee3e104b88c020f9f422 (patch) | |
| tree | 0f1a403b8f44190c90f9b4fab0a8de188237f735 /src/yuzu/discord_impl.cpp | |
| parent | 5bbb9eba32734219cd9b57dfeefaa028b1e8ab02 (diff) | |
fix a large variety of issues (#101)
- GLASM/SPIR-V mixup on Android
- potential greenscreen fix (thx suyu)
- save memory layout and add 10gb/12gb options
- potential samsung gaming hub fix
- fix layout of controller UI
- fix default settings to sensible defaults.
- note to TotK that you should increase memory layout
- Error checking for Windows linking
- fix an IDE error
- improved migration system w/threading and busy indicator
- disabled citron migration for now
- replaced some user-facing legacy strings with eden
- Added 10GB and 12GB DRAM layouts
- Fix Android black screen issues
- add discord link & update FAQ/Quickstart
- update links in about page
- add back rich presence
- add Don't show again for desktop pre alpha banner
- add citron warning to android and polaris to desktop
Signed-off-by: swurl <swurl@swurl.xyz>
Co-authored-by: Pavel Barabanov <pavelbarabanov94@gmail.com>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/101
Co-authored-by: swurl <swurl@swurl.xyz>
Co-committed-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'src/yuzu/discord_impl.cpp')
| -rw-r--r-- | src/yuzu/discord_impl.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/yuzu/discord_impl.cpp b/src/yuzu/discord_impl.cpp index 57b50abd0d..7ed400c955 100644 --- a/src/yuzu/discord_impl.cpp +++ b/src/yuzu/discord_impl.cpp @@ -16,7 +16,6 @@ #include "core/core.h" #include "core/loader/loader.h" #include "yuzu/discord_impl.h" -#include "yuzu/uisettings.h" namespace DiscordRPC { @@ -24,7 +23,7 @@ DiscordImpl::DiscordImpl(Core::System& system_) : system{system_} { DiscordEventHandlers handlers{}; // The number is the client ID for yuzu, it's used for images and the // application name - Discord_Initialize("712465656758665259", &handlers, 1, nullptr); + Discord_Initialize("1371246384434380841", &handlers, 1, nullptr); } DiscordImpl::~DiscordImpl() { @@ -62,8 +61,9 @@ std::string DiscordImpl::GetGameString(const std::string& title) { } void DiscordImpl::UpdateGameStatus(bool use_default) { - const std::string default_text = "yuzu is an emulator for the Nintendo Switch"; - const std::string default_image = "yuzu_logo"; + const std::string default_text = "eden is an emulator for the Nintendo Switch"; + const std::string default_image = "https://git.eden-emu.dev/eden-emu/eden/raw/branch/master/" + "dist/qt_themes/default/icons/256x256/eden_named.png"; const std::string url = use_default ? default_image : game_url; s64 start_time = std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch()) @@ -81,15 +81,18 @@ void DiscordImpl::UpdateGameStatus(bool use_default) { } void DiscordImpl::Update() { - const std::string default_text = "yuzu is an emulator for the Nintendo Switch"; - const std::string default_image = "yuzu_logo"; + const std::string default_text = "eden is an emulator for the Nintendo Switch"; + const std::string default_image = "https://git.eden-emu.dev/eden-emu/eden/raw/branch/master/" + "dist/qt_themes/default/icons/256x256/eden_named.png"; if (system.IsPoweredOn()) { system.GetAppLoader().ReadTitle(game_title); // Used to format Icon URL for yuzu website game compatibility page std::string icon_name = GetGameString(game_title); - game_url = fmt::format("https://yuzu-emu.org/images/game/boxart/{}.png", icon_name); + game_url = fmt::format( + "https://raw.githubusercontent.com/eden-emulator/boxart/refs/heads/master/img/{}.png", + icon_name); QNetworkAccessManager manager; QNetworkRequest request; @@ -100,6 +103,7 @@ void DiscordImpl::Update() { QObject::connect(reply, &QNetworkReply::finished, &request_event_loop, &QEventLoop::quit); request_event_loop.exec(); UpdateGameStatus(reply->error()); + return; } |
