mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00

The Host URL setting in the RetroAchievements config will, if set, be used as the host URL for all server requests for achievements. This allows for an easy switch to the RetroAchievements staging server for testing.
35 lines
1.6 KiB
C++
35 lines
1.6 KiB
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include "Core/Config/AchievementSettings.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Common/Config/Config.h"
|
|
|
|
namespace Config
|
|
{
|
|
// Configuration Information
|
|
const Info<bool> RA_ENABLED{{System::Achievements, "Achievements", "Enabled"}, false};
|
|
const Info<std::string> RA_HOST_URL{{System::Achievements, "Achievements", "HostUrl"}, ""};
|
|
const Info<std::string> RA_USERNAME{{System::Achievements, "Achievements", "Username"}, ""};
|
|
const Info<std::string> RA_API_TOKEN{{System::Achievements, "Achievements", "ApiToken"}, ""};
|
|
const Info<bool> RA_ACHIEVEMENTS_ENABLED{
|
|
{System::Achievements, "Achievements", "AchievementsEnabled"}, false};
|
|
const Info<bool> RA_LEADERBOARDS_ENABLED{
|
|
{System::Achievements, "Achievements", "LeaderboardsEnabled"}, false};
|
|
const Info<bool> RA_RICH_PRESENCE_ENABLED{
|
|
{System::Achievements, "Achievements", "RichPresenceEnabled"}, false};
|
|
const Info<bool> RA_HARDCORE_ENABLED{{System::Achievements, "Achievements", "HardcoreEnabled"},
|
|
false};
|
|
const Info<bool> RA_PROGRESS_ENABLED{{System::Achievements, "Achievements", "ProgressEnabled"},
|
|
false};
|
|
const Info<bool> RA_BADGES_ENABLED{{System::Achievements, "Achievements", "BadgesEnabled"}, false};
|
|
const Info<bool> RA_UNOFFICIAL_ENABLED{{System::Achievements, "Achievements", "UnofficialEnabled"},
|
|
false};
|
|
const Info<bool> RA_ENCORE_ENABLED{{System::Achievements, "Achievements", "EncoreEnabled"}, false};
|
|
} // namespace Config
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|