Move implementation to GetConfigName static function
Old interface Cross::GetPlatformConfigName is retained for backwards compatibility for now.
This commit is contained in:
parent
44499e7f26
commit
9924913e4a
1 changed files with 6 additions and 8 deletions
|
@ -41,6 +41,11 @@
|
|||
|
||||
#include "support.h"
|
||||
|
||||
static std::string GetConfigName()
|
||||
{
|
||||
return "dosbox-" CONF_BRAND ".conf";
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
std::string cached_conf_path;
|
||||
|
@ -63,13 +68,6 @@ static bool CreateDirectories(const std::string &path)
|
|||
return (mkdir(path.c_str(), 0700) == 0);
|
||||
}
|
||||
|
||||
static std::string GetConfigName()
|
||||
{
|
||||
std::string file_name;
|
||||
Cross::GetPlatformConfigName(file_name);
|
||||
return file_name;
|
||||
}
|
||||
|
||||
static std::string ResolveHome(std::string tilde_path)
|
||||
{
|
||||
Cross::ResolveHomedir(tilde_path);
|
||||
|
@ -154,7 +152,7 @@ void Cross::GetPlatformConfigDir(std::string& in) {
|
|||
|
||||
void Cross::GetPlatformConfigName(std::string &in)
|
||||
{
|
||||
in = "dosbox-" CONF_BRAND ".conf";
|
||||
in = GetConfigName();
|
||||
}
|
||||
|
||||
void Cross::CreatePlatformConfigDir(std::string &in)
|
||||
|
|
Loading…
Add table
Reference in a new issue