Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
remove namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
shevernitskiy committed Feb 14, 2024
1 parent bddadff commit 543d91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hook/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ namespace Config {
return nt_header->FileHeader.TimeDateStamp;
}

inline toml::v3::ex::parse_result GetOffsetsFile(time_t target_checksum) {
inline toml::parse_result GetOffsetsFile(time_t target_checksum) {
for (const auto& filepath : std::filesystem::recursive_directory_iterator(PATH_OFFSETS)) {
auto file = toml::v3::parse_file(filepath.path().c_str());
auto file = toml::parse_file(filepath.path().c_str());
if (target_checksum == file["metadata"]["checksum"].value_or<time_t>(0)) {
return file;
}
Expand All @@ -37,7 +37,7 @@ namespace Config {
MessageBoxA(nullptr, message.c_str(), "dfint hook error", MB_ICONERROR);
exit(2);

return toml::v3::ex::parse_result{};
return toml::parse_result{};
}

inline auto config = toml::parse_file("./dfint_data/dfint_config.toml");
Expand Down

0 comments on commit 543d91f

Please sign in to comment.