chore: update project references and add Citron copyright

- Replaced all references to the old project name with Citron.
- Added Citron copyright information alongside existing notices in all files.
This commit is contained in:
Zephyron 2024-12-31 17:07:49 +10:00
parent 6778aa8ec8
commit b3facaa6bb
No known key found for this signature in database
GPG key ID: 8DA271B6A74353F1
2802 changed files with 60643 additions and 60643 deletions

View file

@ -15,14 +15,14 @@
#include "common/string_util.h"
#include "core/core.h"
#include "core/loader/loader.h"
#include "yuzu/discord_impl.h"
#include "yuzu/uisettings.h"
#include "citron/discord_impl.h"
#include "citron/uisettings.h"
namespace DiscordRPC {
DiscordImpl::DiscordImpl(Core::System& system_) : system{system_} {
DiscordEventHandlers handlers{};
// The number is the client ID for yuzu, it's used for images and the
// The number is the client ID for citron, it's used for images and the
// application name
Discord_Initialize("712465656758665259", &handlers, 1, nullptr);
}
@ -62,8 +62,8 @@ 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 = "citron is an emulator for the Nintendo Switch";
const std::string default_image = "citron_logo";
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,15 @@ 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 = "citron is an emulator for the Nintendo Switch";
const std::string default_image = "citron_logo";
if (system.IsPoweredOn()) {
system.GetAppLoader().ReadTitle(game_title);
// Used to format Icon URL for yuzu website game compatibility page
// Used to format Icon URL for citron 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://citron-emu.org/images/game/boxart/{}.png", icon_name);
QNetworkAccessManager manager;
QNetworkRequest request;