mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
patch manager: replace Version and Title keys
With Patch Version and Game Title
This commit is contained in:
parent
1c7a318413
commit
d3c6472c0f
@ -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";
|
||||
|
@ -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 ]
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user