mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-01 18:39:15 -06: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
8afa40eaa7
commit
3803c864f7
@ -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 New Issue
Block a user