From d3c6472c0fd2d12f42b5469b8734bb4a0fb4d871 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 19 Jun 2020 14:37:49 +0200 Subject: [PATCH] patch manager: replace Version and Title keys With Patch Version and Game Title --- Utilities/bin_patch.cpp | 14 +++++++------- Utilities/bin_patch.h | 4 ++-- rpcs3/rpcs3qt/patch_manager_dialog.ui | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Utilities/bin_patch.cpp b/Utilities/bin_patch.cpp index eee63d6c34..873892f8e9 100644 --- a/Utilities/bin_patch.cpp +++ b/Utilities/bin_patch.cpp @@ -224,7 +224,7 @@ bool patch_engine::load(patch_map& patches_map, const std::string& path, bool im info.hash = main_key; info.version = version; - if (const auto title_node = patches_entry.second["Title"]) + if (const auto title_node = patches_entry.second["Game Title"]) { info.title = title_node.Scalar(); } @@ -239,7 +239,7 @@ bool patch_engine::load(patch_map& patches_map, const std::string& path, bool im info.author = author_node.Scalar(); } - if (const auto patch_version_node = patches_entry.second["Version"]) + if (const auto patch_version_node = patches_entry.second["Patch Version"]) { info.patch_version = patch_version_node.Scalar(); } @@ -715,11 +715,11 @@ bool patch_engine::save_patches(const patch_map& patches, const std::string& pat out << description; out << YAML::BeginMap; - if (!info.title.empty()) out << "Title" << info.title; - if (!info.serials.empty()) out << "Serials" << info.serials; - if (!info.author.empty()) out << "Author" << info.author; - if (!info.patch_version.empty()) out << "Version" << info.patch_version; - if (!info.notes.empty()) out << "Notes" << info.notes; + if (!info.title.empty()) out << "Game Title" << info.title; + if (!info.serials.empty()) out << "Serials" << info.serials; + if (!info.author.empty()) out << "Author" << info.author; + if (!info.patch_version.empty()) out << "Patch Version" << info.patch_version; + if (!info.notes.empty()) out << "Notes" << info.notes; out << "Patch"; out << YAML::BeginSeq; diff --git a/Utilities/bin_patch.h b/Utilities/bin_patch.h index a40bd3a986..b926fdc4a4 100644 --- a/Utilities/bin_patch.h +++ b/Utilities/bin_patch.h @@ -79,11 +79,11 @@ public: // PPU-8007056e52279bea26c15669d1ee08c2df321d00: // Patches: // 60fps: - // Title: Fancy Game + // Game Title: Fancy Game // Serials: ABCD12345, SUPA13337 v.1.3 // Author: Batman bin Suparman - // Version: 1.3 // Notes: This is super + // Patch Version: 1.3 // Patch: // - [ be32, 0x000e522c, 0x995d0072 ] // - [ be32, 0x000e5234, 0x995d0074 ] diff --git a/rpcs3/rpcs3qt/patch_manager_dialog.ui b/rpcs3/rpcs3qt/patch_manager_dialog.ui index 27f5c5b6a4..6ff394f2eb 100644 --- a/rpcs3/rpcs3qt/patch_manager_dialog.ui +++ b/rpcs3/rpcs3qt/patch_manager_dialog.ui @@ -109,7 +109,7 @@ - Title + Game Title