mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-10 23:45:16 +01:00
rpcn: Fix file access error when loading rpcn.yml with version 1
The file was still in use when saving.
This commit is contained in:
parent
093e9dc5c7
commit
c3aef0ca53
|
|
@ -10,8 +10,7 @@ void cfg_rpcn::load()
|
|||
{
|
||||
const std::string path = cfg_rpcn::get_path();
|
||||
|
||||
fs::file cfg_file(path, fs::read);
|
||||
if (cfg_file)
|
||||
if (fs::file cfg_file(path, fs::read); cfg_file)
|
||||
{
|
||||
rpcn_log.notice("Loading RPCN config. Path: %s", path);
|
||||
from_string(cfg_file.to_string());
|
||||
|
|
|
|||
Loading…
Reference in a new issue