impr: Remove hex::format, improve format and logging type safety

This commit is contained in:
WerWolv
2025-08-06 20:01:58 +02:00
parent d429424f67
commit 9cff9043ee
109 changed files with 473 additions and 455 deletions

View File

@@ -154,4 +154,13 @@ struct std::hash<hex::UnlocalizedString> {
std::size_t operator()(const hex::UnlocalizedString &string) const noexcept {
return std::hash<std::string>{}(string.get());
}
};
};
namespace fmt {
template<typename ... Args>
auto format(const hex::Lang &entry, Args &&... args) {
return fmt::format(fmt::runtime(entry.get()), std::forward<Args>(args)...);
}
}