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

+1 -12
View File
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
#include "formats/vga.hpp"
#include "formats/content.hpp"
namespace bmh {
@@ -41,16 +40,6 @@ Image decode_vga(const Bytes& d) {
return img;
}
Image load_vga(const std::filesystem::path &path) {
if (const auto r = content::find(path)) {
auto name = std::filesystem::path(r->key);
name.replace_extension();
const auto found = r->content->images.find(name.generic_string());
if (found == r->content->images.end())
throw FormatError("content: missing image: " + r->key);
return found->second;
}
return decode_vga(read_file(path));
}
Image load_vga(const std::filesystem::path& path) { return decode_vga(read_file(path)); }
} // namespace bmh