mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
20 lines
441 B
C++
20 lines
441 B
C++
|
|
#include "stdafx.h"
|
|||
|
|
#include "system_config.h"
|
|||
|
|
#include "Utilities/StrUtil.h"
|
|||
|
|
|
|||
|
|
cfg_root g_cfg;
|
|||
|
|
|
|||
|
|
std::string cfg_root::node_vfs::get(const cfg::string& _cfg, const char* _def) const
|
|||
|
|
{
|
|||
|
|
auto [spath, sshared] = _cfg.get();
|
|||
|
|
|
|||
|
|
if (spath.empty())
|
|||
|
|
{
|
|||
|
|
return fs::get_config_dir() + _def;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
auto [semudir, sshared2] = emulator_dir.get();
|
|||
|
|
|
|||
|
|
return fmt::replace_all(spath, "$(EmulatorDir)", semudir.empty() ? fs::get_config_dir() : semudir);
|
|||
|
|
}
|