GameDatabase: Remove redundant SetRymlCallbacks()

This commit is contained in:
Stenzek
2025-07-30 21:12:38 +10:00
parent fef553ff12
commit c8dd9995ec

View File

@@ -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();