mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
patch_manager: fix missing config path
This commit is contained in:
parent
628cb1c779
commit
431e0eb30c
@ -65,7 +65,15 @@ patch_engine::patch_engine()
|
||||
std::string patch_engine::get_patch_config_path()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return fs::get_config_dir() + "config/patch_config.yml";
|
||||
const std::string config_dir = fs::get_config_dir() + "config/";
|
||||
const std::string patch_path = config_dir + "patch_config.yml";
|
||||
|
||||
if (!fs::create_path(config_dir))
|
||||
{
|
||||
patch_log.error("Could not create path: %s", patch_path);
|
||||
}
|
||||
|
||||
return patch_path;
|
||||
#else
|
||||
return fs::get_config_dir() + "patch_config.yml";
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user