dolphin/Source/Core/Common/Version.cpp
Nora 2b811d8272
more stuff (#1)
Co-authored-by: JosJuice <josjuice@gmail.com>
2022-02-28 16:48:25 -07:00

70 lines
1.5 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
{
#ifdef _DEBUG
#define BUILD_TYPE_STR "Debug "
#elif defined DEBUGFAST
#define BUILD_TYPE_STR "DebugFast "
#else
#define BUILD_TYPE_STR ""
#endif
const std::string& GetScmRevStr()
{
#define MPN_REV_STR "02/27/2022"
static const std::string scm_rev_str = "Dolphin MPN";
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& GetScmDistributorStr()
{
static const std::string scm_distributor_str = SCM_DISTRIBUTOR_STR;
return scm_distributor_str;
}
const std::string& GetScmUpdateTrackStr()
{
static const std::string scm_update_track_str = SCM_UPDATE_TRACK_STR;
return scm_update_track_str;
}
const std::string& GetNetplayDolphinVer()
{
#define LABEL "MPN"
#ifdef _WIN32
static const std::string netplay_dolphin_ver = LABEL " Win";
#elif __APPLE__
static const std::string netplay_dolphin_ver = LABEL " Mac";
#else
static const std::string netplay_dolphin_ver = LABEL " Lin";
#endif
return netplay_dolphin_ver;
}
} // namespace Common