mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00

Fixes a crash that could occur if the static constructor function for the MainSettings.cpp TU happened to run before the variables in Common/Version.cpp are initialised. (This is known as the static initialisation order fiasco.) By using wrapper functions, those variables are now guaranteed to be constructed on first use.
18 lines
440 B
C++
18 lines
440 B
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace Common
|
|
{
|
|
const std::string& GetScmDescStr();
|
|
const std::string& GetScmBranchStr();
|
|
const std::string& GetScmRevStr();
|
|
const std::string& GetScmRevGitStr();
|
|
const std::string& GetScmDistributorStr();
|
|
const std::string& GetScmUpdateTrackStr();
|
|
const std::string& GetNetplayDolphinVer();
|
|
} // namespace Common
|