parent
17751aa4d7
commit
7c3bb6124a
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
#Body:
|
||||
# THQ Quest Items
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Footer:
|
||||
Imports:
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Footer:
|
||||
Imports:
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 1101
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 670
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 501
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Footer:
|
||||
Imports:
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 1101
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 670
|
||||
|
@ -86,7 +86,7 @@
|
||||
|
||||
Header:
|
||||
Type: ITEM_DB
|
||||
Version: 2
|
||||
Version: 3
|
||||
|
||||
Body:
|
||||
- Id: 500
|
||||
|
@ -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) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user