Restore direct-installation Classic baseline for OpenBMH 1.0 (by Codex)

This commit is contained in:
Codex committed 2026-10-30 14:19:25 +01:00
1 parent c8f04d0099
commit c3704878d6
255 files changed
+311 -21131

No files matched your search

-7
View File
@@ -1,16 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
#include "formats/content.hpp"
#include "formats/font.hpp"
namespace bmh {
Font load_font(const std::filesystem::path& path) {
if (const auto r = content::find(path)) {
const auto found = r->content->fonts.find(std::filesystem::path(r->key).filename().string());
if (found == r->content->fonts.end())
throw FormatError("content: missing font: " + r->key);
return found->second;
}
Bytes d = read_file(path);
if (d.size() < 28) throw FormatError("FNT: file too short");
Font f;