impr: Speed up initial resource loading and event handling slightly

This commit is contained in:
WerWolv
2025-08-02 01:14:00 +02:00
parent 1e18abc598
commit f73866b86e
12 changed files with 44 additions and 27 deletions

View File

@@ -658,7 +658,7 @@ namespace hex {
static std::map<std::fs::path, std::string> s_fonts;
extern "C" void registerFont(const char *fontName, const char *fontPath) {
s_fonts[fontPath] = fontName;
s_fonts.emplace(fontPath, fontName);
}
const std::map<std::fs::path, std::string>& getFonts() {