mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
patches: create patch path on update
This commit is contained in:
parent
af3154a0d4
commit
f255392a75
@ -1247,7 +1247,16 @@ bool patch_manager_dialog::handle_json(const QByteArray& data)
|
||||
if (patch_engine::load(patches, "From Download", content, true, &log_message))
|
||||
{
|
||||
patch_log.notice("Successfully validated downloaded patch file");
|
||||
const std::string path = patch_engine::get_patches_path() + "patch.yml";
|
||||
|
||||
const std::string patches_path = patch_engine::get_patches_path();
|
||||
|
||||
if (!fs::create_path(patches_path))
|
||||
{
|
||||
patch_log.fatal("Failed to create path: %s (%s)", patches_path, fs::g_tls_error);
|
||||
return false;
|
||||
}
|
||||
|
||||
const std::string path = patches_path + "patch.yml";
|
||||
|
||||
// Back up current patch file if possible
|
||||
if (fs::is_file(path))
|
||||
|
Loading…
x
Reference in New Issue
Block a user