Build 0.2 native launcher and portable Classic runtime (by Codex)
This commit is contained in:
1 parent
3a021fc160
commit
2552528176
84 files changed
+5004
-197
No files matched your search
@@ -1,4 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "formats/content.hpp"
|
||||
#include "formats/m3d.hpp"
|
||||
|
||||
#include <cstring>
|
||||
@@ -35,6 +36,11 @@ std::string pool_string(const Bytes& pool, size_t offset) {
|
||||
} // namespace
|
||||
|
||||
Database load_database(const std::filesystem::path& path, const DbCounts& c) {
|
||||
if (const auto r = content::find(path)) {
|
||||
if (r->key != "m3d.man")
|
||||
throw FormatError("content: unknown database");
|
||||
return r->content->database;
|
||||
}
|
||||
return decode_database(read_file(path), c);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user