Added missing increase of the versioning (#7220)

Follow up 17751aa4d7
This commit is contained in:
Atemo 2022-08-29 16:28:54 +02:00 committed by GitHub
parent 17751aa4d7
commit 7c3bb6124a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 14 additions and 14 deletions

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
#Body:
# THQ Quest Items

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Footer:
Imports:

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Footer:
Imports:

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 1101

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 670

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 501

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Footer:
Imports:

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 1101

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 670

View File

@ -86,7 +86,7 @@
Header:
Type: ITEM_DB
Version: 2
Version: 3
Body:
- Id: 500

View File

@ -1294,7 +1294,7 @@ private:
e_sex defaultGender( const ryml::NodeRef& node, std::shared_ptr<item_data> id );
public:
ItemDatabase() : TypesafeCachedYamlDatabase("ITEM_DB", 2, 1) {
ItemDatabase() : TypesafeCachedYamlDatabase("ITEM_DB", 3, 1) {
}

View File

@ -301,14 +301,14 @@ int do_init( int argc, char** argv ){
}
item_txt_data(path_db_mode, path_db);
if (!process("ITEM_DB", 2, { path_db_mode }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
if (!process("ITEM_DB", 3, { path_db_mode }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
return itemdb_read_db((path + name_ext).c_str());
})) {
return 0;
}
item_txt_data(path_db_import, path_db_import);
if (!process("ITEM_DB", 2, { path_db_import }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
if (!process("ITEM_DB", 3, { path_db_import }, "item_db", [](const std::string& path, const std::string& name_ext) -> bool {
return itemdb_read_db((path + name_ext).c_str());
})) {
return 0;

View File

@ -110,7 +110,7 @@ int do_init(int argc, char** argv) {
return 0;
}
if (!process("ITEM_DB", 2, root_paths, "item_db", [](const std::string& path, const std::string& name_ext, uint32 source_version) -> bool {
if (!process("ITEM_DB", 3, root_paths, "item_db", [](const std::string& path, const std::string& name_ext, uint32 source_version) -> bool {
return upgrade_item_db(path + name_ext, source_version);
})) {
return 0;