mirror of
https://github.com/libretro/Play-.git
synced 2024-12-04 07:20:56 +00:00
d5f0ebc83b
git-svn-id: http://svn.purei.org/purei/trunk@982 b36208d7-6611-0410-8bec-b1987f11c4a2
30 lines
562 B
C++
30 lines
562 B
C++
#include "AppConfig.h"
|
|
#include "PathUtils.h"
|
|
|
|
#define BASE_DATA_PATH (L"Play Data Files")
|
|
#define CONFIG_FILENAME (L"config.xml")
|
|
|
|
CAppConfig::CAppConfig()
|
|
: CConfig(BuildConfigPath())
|
|
{
|
|
|
|
}
|
|
|
|
CAppConfig::~CAppConfig()
|
|
{
|
|
|
|
}
|
|
|
|
Framework::CConfig::PathType CAppConfig::GetBasePath()
|
|
{
|
|
auto result = Framework::PathUtils::GetPersonalDataPath() / BASE_DATA_PATH;
|
|
return result;
|
|
}
|
|
|
|
Framework::CConfig::PathType CAppConfig::BuildConfigPath()
|
|
{
|
|
auto userPath(GetBasePath());
|
|
Framework::PathUtils::EnsurePathExists(userPath);
|
|
return userPath / CONFIG_FILENAME;
|
|
}
|