GameDatabase: Remove redundant SetRymlCallbacks()

pull/3498/head
Stenzek 3 months ago
parent fef553ff12
commit c8dd9995ec
No known key found for this signature in database

@ -1210,8 +1210,6 @@ bool GameDatabase::LoadGameDBYaml()
return false;
}
SetRymlCallbacks();
const ryml::Tree tree = ryml::parse_in_place(
to_csubstr(GAMEDB_YAML_FILENAME), c4::substr(reinterpret_cast<char*>(gamedb_data->data()), gamedb_data->size()));
const ryml::ConstNodeRef root = tree.rootref();
@ -1546,8 +1544,6 @@ bool GameDatabase::LoadTrackHashes()
return false;
}
SetRymlCallbacks();
// TODO: Parse in-place, avoid string allocations.
const ryml::Tree tree = ryml::parse_in_arena(to_csubstr(DISCDB_YAML_FILENAME), to_csubstr(gamedb_data.value()));
const ryml::ConstNodeRef root = tree.rootref();

Loading…
Cancel
Save