added a SHIT ton of modules

This commit is contained in:
st committed 2026-10-14 00:10:39 -05:00
1 parent b1634d195c
commit 361892bf0b
64 files changed
+5346 -482

No files matched your search

+4 -3
View File
@@ -5,7 +5,8 @@
// optional fallback if the Segoe UI files can't be found
#if __has_include("../font_data.h")
#include "../font_data.h"
const unsigned char* amnesia_fallback_font();
int amnesia_fallback_font_size();
#define AMNESIA_HAS_FONT 1
#else
#define AMNESIA_HAS_FONT 0
@@ -55,7 +56,7 @@ namespace fonts {
#if AMNESIA_HAS_FONT
ImFontConfig cfg;
cfg.FontDataOwnedByAtlas = false;
return io.Fonts->AddFontFromMemoryTTF((void*)k_font_data, (int)k_font_size, size, &cfg);
return io.Fonts->AddFontFromMemoryTTF((void*)amnesia_fallback_font(), amnesia_fallback_font_size(), size, &cfg);
#else
return io.Fonts->AddFontDefault();
#endif
@@ -71,4 +72,4 @@ namespace fonts {
io.FontDefault = body;
}
} // namespace fonts
} // namespace fonts