Temp commit. Cloth

This commit is contained in:
korenkonder
2022-06-19 05:32:43 +03:00
parent 82da8a484d
commit 8a0f0d4aa3
165 changed files with 14548 additions and 14988 deletions
+11
View File
@@ -131,6 +131,17 @@ int32_t auth_3d_database::get_category_index(const char* name) {
return -1;
}
void auth_3d_database::get_category_uids(const char* name, std::vector<int32_t>& uid) {
uid.clear();
uint32_t name_hash = hash_utf8_murmurhash(name);
for (auth_3d_database_category& i : category)
if (hash_string_murmurhash(&i.name) == name_hash) {
uid = i.uid;
return;
}
}
int32_t auth_3d_database::get_uid(const char* name) {
uint32_t name_hash = hash_utf8_murmurhash(name);
for (auth_3d_database_uid& i : uid)