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.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,10 +715,10 @@ 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.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 << "Version" << info.patch_version;
if (!info.patch_version.empty()) out << "Patch Version" << info.patch_version;
if (!info.notes.empty()) out << "Notes" << info.notes;
out << "Patch";

View File

@ -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 ]

View File

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