mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-05 13:18:01 +03:00
Auth 2D stuff
This commit is contained in:
+13
-1
@@ -60,6 +60,18 @@ void data_struct_load_db() {
|
||||
data_struct* ds = &data_list[DATA_AFT];
|
||||
data_ft* d = &ds->data_ft;
|
||||
|
||||
for (const std::string& i : mdata_manager_get()->GetPrefixes()) {
|
||||
std::string file;
|
||||
file.assign(i);
|
||||
file.append("aet_db.bin");
|
||||
|
||||
aet_database_file aet_db_file;
|
||||
aet_db_file.modern = false;
|
||||
ds->load_file(&aet_db_file, "rom/2d/", file.c_str(),
|
||||
aet_database_file::load_file);
|
||||
d->aet_db.add(&aet_db_file);
|
||||
}
|
||||
|
||||
for (const std::string& i : mdata_manager_get()->GetPrefixes()) {
|
||||
std::string file;
|
||||
file.assign(i);
|
||||
@@ -563,7 +575,7 @@ bool data_struct::get_file(const char* dir, uint32_t hash, const char* ext, std:
|
||||
}
|
||||
|
||||
bool data_struct::load_file(void* data, const char* path,
|
||||
bool (*load_func)(void* data, const char* path, const char* file, uint32_t hash)) {
|
||||
bool (*load_func)(void* data, const char* path, const char* file, uint32_t hash)) {
|
||||
const char* t = strrchr(path, '/');
|
||||
if (t) {
|
||||
std::string dir = std::string(path, t - path + 1);
|
||||
|
||||
Reference in New Issue
Block a user