mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
UpdaterCommon, WinUpdater, MacUpdater and UICommon's AutoUpdate only served the standalone Dolphin frontends; RetroArch updates the core. Also drop the AutoUpdate settings, the update-track build string and the u32 WindowsRegistry::ReadValue instantiation only WinUpdater used.
97 lines
2.2 KiB
C++
97 lines
2.2 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "Common/Version.h"
|
|
|
|
#include <string>
|
|
|
|
#include "Common/scmrev.h"
|
|
|
|
namespace Common
|
|
{
|
|
#define EMULATOR_NAME "Dolphin"
|
|
|
|
#ifdef _DEBUG
|
|
#define BUILD_TYPE_STR "Debug "
|
|
#elif defined DEBUGFAST
|
|
#define BUILD_TYPE_STR "DebugFast "
|
|
#else
|
|
#define BUILD_TYPE_STR ""
|
|
#endif
|
|
|
|
const std::string& GetEmulatorName()
|
|
{
|
|
static const std::string emulator_name = EMULATOR_NAME;
|
|
return emulator_name;
|
|
}
|
|
|
|
const std::string& GetScmRevStr()
|
|
{
|
|
static const std::string scm_rev_str = EMULATOR_NAME " "
|
|
// Note this macro can be empty if the master branch does not exist.
|
|
#if 1 - SCM_COMMITS_AHEAD_MASTER - 1 != 0
|
|
"[" SCM_BRANCH_STR "] "
|
|
#endif
|
|
|
|
#ifdef __INTEL_COMPILER
|
|
BUILD_TYPE_STR SCM_DESC_STR "-ICC";
|
|
#else
|
|
BUILD_TYPE_STR SCM_DESC_STR;
|
|
#endif
|
|
return scm_rev_str;
|
|
}
|
|
|
|
const std::string& GetScmRevGitStr()
|
|
{
|
|
static const std::string scm_rev_git_str = SCM_REV_STR;
|
|
return scm_rev_git_str;
|
|
}
|
|
|
|
const std::string& GetScmDescStr()
|
|
{
|
|
static const std::string scm_desc_str = SCM_DESC_STR;
|
|
return scm_desc_str;
|
|
}
|
|
|
|
const std::string& GetScmBranchStr()
|
|
{
|
|
static const std::string scm_branch_str = SCM_BRANCH_STR;
|
|
return scm_branch_str;
|
|
}
|
|
|
|
const std::string& GetUserAgentStr()
|
|
{
|
|
static const std::string user_agent_str = EMULATOR_NAME "/" SCM_DESC_STR;
|
|
return user_agent_str;
|
|
}
|
|
|
|
const std::string& GetScmDistributorStr()
|
|
{
|
|
static const std::string scm_distributor_str = SCM_DISTRIBUTOR_STR;
|
|
return scm_distributor_str;
|
|
}
|
|
|
|
const std::string& GetNetplayDolphinVer()
|
|
{
|
|
#ifdef _WIN32
|
|
static const std::string netplay_dolphin_ver = SCM_DESC_STR " Windows";
|
|
#elif __APPLE__
|
|
static const std::string netplay_dolphin_ver = SCM_DESC_STR " macOS";
|
|
#elif ANDROID
|
|
static const std::string netplay_dolphin_ver = SCM_DESC_STR " Android";
|
|
#elif __linux__
|
|
static const std::string netplay_dolphin_ver = SCM_DESC_STR " Linux";
|
|
#else
|
|
static const std::string netplay_dolphin_ver = SCM_DESC_STR;
|
|
#endif
|
|
return netplay_dolphin_ver;
|
|
}
|
|
|
|
int GetScmCommitsAheadMaster()
|
|
{
|
|
// Note this macro can be empty if the master branch does not exist.
|
|
return SCM_COMMITS_AHEAD_MASTER + 0;
|
|
}
|
|
|
|
} // namespace Common
|