patch manager: replace Version and Title keys

With Patch Version and Game Title
This commit is contained in:
Megamouse 2020-06-19 14:37:49 +02:00
parent 1c7a318413
commit d3c6472c0f
3 changed files with 10 additions and 10 deletions

View file

@ -224,7 +224,7 @@ bool patch_engine::load(patch_map& patches_map, const std::string& path, bool im
info.hash = main_key; info.hash = main_key;
info.version = version; 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(); 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(); 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(); 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 << description;
out << YAML::BeginMap; out << YAML::BeginMap;
if (!info.title.empty()) out << "Title" << info.title; if (!info.title.empty()) out << "Game Title" << info.title;
if (!info.serials.empty()) out << "Serials" << info.serials; if (!info.serials.empty()) out << "Serials" << info.serials;
if (!info.author.empty()) out << "Author" << info.author; if (!info.author.empty()) out << "Author" << info.author;
if (!info.patch_version.empty()) out << "Version" << info.patch_version; if (!info.patch_version.empty()) out << "Patch Version" << info.patch_version;
if (!info.notes.empty()) out << "Notes" << info.notes; if (!info.notes.empty()) out << "Notes" << info.notes;
out << "Patch"; out << "Patch";
out << YAML::BeginSeq; out << YAML::BeginSeq;

View file

@ -79,11 +79,11 @@ public:
// PPU-8007056e52279bea26c15669d1ee08c2df321d00: // PPU-8007056e52279bea26c15669d1ee08c2df321d00:
// Patches: // Patches:
// 60fps: // 60fps:
// Title: Fancy Game // Game Title: Fancy Game
// Serials: ABCD12345, SUPA13337 v.1.3 // Serials: ABCD12345, SUPA13337 v.1.3
// Author: Batman bin Suparman // Author: Batman bin Suparman
// Version: 1.3
// Notes: This is super // Notes: This is super
// Patch Version: 1.3
// Patch: // Patch:
// - [ be32, 0x000e522c, 0x995d0072 ] // - [ be32, 0x000e522c, 0x995d0072 ]
// - [ be32, 0x000e5234, 0x995d0074 ] // - [ be32, 0x000e5234, 0x995d0074 ]

View file

@ -109,7 +109,7 @@
<item> <item>
<widget class="QGroupBox" name="gb_title"> <widget class="QGroupBox" name="gb_title">
<property name="title"> <property name="title">
<string>Title</string> <string>Game Title</string>
</property> </property>
<layout class="QVBoxLayout" name="title_layout"> <layout class="QVBoxLayout" name="title_layout">
<item> <item>