mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
15 lines
380 B
C++
15 lines
380 B
C++
![]() |
#include "AppConfig.h"
|
||
|
#include "PathUtils.h"
|
||
|
|
||
|
fs::path CAppConfig::GetBasePath() const
|
||
|
{
|
||
|
static const char* BASE_DATA_PATH = "PsfPlayer Data Files";
|
||
|
static const auto basePath =
|
||
|
[]() {
|
||
|
auto result = Framework::PathUtils::GetPersonalDataPath() / BASE_DATA_PATH;
|
||
|
Framework::PathUtils::EnsurePathExists(result);
|
||
|
return result;
|
||
|
}();
|
||
|
return basePath;
|
||
|
}
|