1
0
Fork 0

Move implementation to GetConfigName static function

Old interface Cross::GetPlatformConfigName is retained for backwards
compatibility for now.
This commit is contained in:
Patryk Obara 2020-04-18 20:05:51 +02:00 committed by Patryk Obara
parent 44499e7f26
commit 9924913e4a

View file

@ -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)