mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
patches: create patch path on update
This commit is contained in:
parent
af3154a0d4
commit
f255392a75
1 changed files with 10 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue