mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
sys: Updated curl, libfmt, nativefiledialog and yara to latest version
This commit is contained in:
2
external/curl
vendored
2
external/curl
vendored
Submodule external/curl updated: 566b74a0e1...bfbde883af
2
external/fmt
vendored
2
external/fmt
vendored
Submodule external/fmt updated: 6271406233...d141cdbeb0
2
external/nativefiledialog
vendored
2
external/nativefiledialog
vendored
Submodule external/nativefiledialog updated: 300203a98d...322d1bc2a9
2
external/yara/yara
vendored
2
external/yara/yara
vendored
Submodule external/yara/yara updated: 1842271119...8206dc6f72
@@ -391,11 +391,11 @@ namespace hex::plugin::builtin {
|
||||
|
||||
static const auto WarningColor = ImColor(0.92F, 0.25F, 0.2F, 1.0F);
|
||||
if (setuid && !x[0])
|
||||
ImGui::TextColored(WarningColor, "hex.builtin.tools.permissions.setuid_error"_lang);
|
||||
ImGui::TextColored(WarningColor, "%s", static_cast<const char*>("hex.builtin.tools.permissions.setuid_error"_lang));
|
||||
if (setgid && !x[1])
|
||||
ImGui::TextColored(WarningColor, "hex.builtin.tools.permissions.setgid_error"_lang);
|
||||
ImGui::TextColored(WarningColor, "%s", static_cast<const char*>("hex.builtin.tools.permissions.setgid_error"_lang));
|
||||
if (sticky && !x[2])
|
||||
ImGui::TextColored(WarningColor, "hex.builtin.tools.permissions.sticky_error"_lang);
|
||||
ImGui::TextColored(WarningColor, "%s", static_cast<const char*>("hex.builtin.tools.permissions.sticky_error"_lang));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -8,32 +8,32 @@ namespace hex::log {
|
||||
void debug(std::string_view fmt, auto ... args) {
|
||||
#if defined(DEBUG)
|
||||
fmt::print(fg(fmt::color::green_yellow) | fmt::emphasis::bold, "[DEBUG] ");
|
||||
fmt::print(fmt, args...);
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
fmt::print("\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
void info(std::string_view fmt, auto ... args) {
|
||||
fmt::print(fg(fmt::color::cadet_blue) | fmt::emphasis::bold, "[INFO] ");
|
||||
fmt::print(fmt, args...);
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
fmt::print("\n");
|
||||
}
|
||||
|
||||
void warn(std::string_view fmt, auto ... args) {
|
||||
fmt::print(fg(fmt::color::light_golden_rod_yellow) | fmt::emphasis::bold, "[WARN] ");
|
||||
fmt::print(fmt, args...);
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
fmt::print("\n");
|
||||
}
|
||||
|
||||
void error(std::string_view fmt, auto ... args) {
|
||||
fmt::print(fg(fmt::color::red) | fmt::emphasis::bold, "[ERROR] ");
|
||||
fmt::print(fmt, args...);
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
fmt::print("\n");
|
||||
}
|
||||
|
||||
void fatal(std::string_view fmt, auto ... args) {
|
||||
fmt::print(fg(fmt::color::purple) | fmt::emphasis::bold, "[FATAL] ");
|
||||
fmt::print(fmt, args...);
|
||||
fmt::print(fmt::runtime(fmt), args...);
|
||||
fmt::print("\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -185,12 +185,12 @@ namespace hex {
|
||||
|
||||
template<typename ... Args>
|
||||
inline std::string format(std::string_view format, Args ... args) {
|
||||
return fmt::format(format, args...);
|
||||
return fmt::format(fmt::runtime(format), args...);
|
||||
}
|
||||
|
||||
template<typename ... Args>
|
||||
inline void print(std::string_view format, Args ... args) {
|
||||
fmt::print(format, args...);
|
||||
fmt::print(fmt::runtime(format), args...);
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr inline u64 extract(u8 from, u8 to, const hex::unsigned_integral auto &value) {
|
||||
|
||||
Reference in New Issue
Block a user