mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +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))
|
if (patch_engine::load(patches, "From Download", content, true, &log_message))
|
||||||
{
|
{
|
||||||
patch_log.notice("Successfully validated downloaded patch file");
|
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
|
// Back up current patch file if possible
|
||||||
if (fs::is_file(path))
|
if (fs::is_file(path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user