diff --git a/src/hook/config.h b/src/hook/config.h index 24255d0..8c62951 100644 --- a/src/hook/config.h +++ b/src/hook/config.h @@ -28,7 +28,7 @@ namespace Config { for (const auto& filepath : std::filesystem::recursive_directory_iterator(PATH_OFFSETS)) { auto file = toml::parse_file(filepath.path().c_str()); if (target_checksum == file["metadata"]["checksum"].value_or(0)) { - return file; + return *file.as_table(); } }