mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
impr: Significantly reduce memory usage
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <clocale>
|
||||
#include <sstream>
|
||||
#include <hex/helpers/auto_reset.hpp>
|
||||
|
||||
#if defined(OS_WINDOWS)
|
||||
#include <windows.h>
|
||||
@@ -660,9 +661,9 @@ namespace hex {
|
||||
return s_fileToOpen;
|
||||
}
|
||||
|
||||
static std::map<std::fs::path, std::string> s_fonts;
|
||||
static AutoReset<std::map<std::fs::path, std::string>> s_fonts;
|
||||
extern "C" void registerFont(const char *fontName, const char *fontPath) {
|
||||
s_fonts.emplace(fontPath, fontName);
|
||||
s_fonts->emplace(fontPath, fontName);
|
||||
}
|
||||
|
||||
const std::map<std::fs::path, std::string>& getFonts() {
|
||||
|
||||
Reference in New Issue
Block a user