Restore direct-installation Classic baseline for OpenBMH 1.0 (by Codex)
This commit is contained in:
1 parent
c8f04d0099
commit
c3704878d6
255 files changed
+311
-21131
No files matched your search
+1
-12
@@ -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
|
||||
Reference in new issue
Block a user