mirror of
https://github.com/open-goal/jak-project
synced 2026-07-10 23:22:17 -04:00
PAL jak 1 decompiler profile (#891)
* [decompiler] pal "support" * inoffensively add some PAL-updated types * fixes! * clarify some things for windows * Update README.md * dummy * config fixes * dummy
This commit is contained in:
@@ -213,8 +213,20 @@ void ObjectFileDB::get_objs_from_dgo(const std::string& filename, const Config&
|
||||
// get all obj files...
|
||||
for (uint32_t i = 0; i < header.object_count; i++) {
|
||||
auto obj_header = reader.read<DgoHeader>();
|
||||
assert(reader.bytes_left() >= obj_header.object_count);
|
||||
assert_string_empty_after(obj_header.name, 60);
|
||||
if (i == header.object_count - 1) {
|
||||
if (reader.bytes_left() == obj_header.object_count - 0x30) {
|
||||
if (config.is_pal) {
|
||||
lg::warn("Skipping {} because it is a broken PAL object", obj_header.name);
|
||||
reader.ffwd(reader.bytes_left());
|
||||
continue;
|
||||
} else {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
assert(reader.bytes_left() >= obj_header.object_count);
|
||||
}
|
||||
|
||||
if (std::string(obj_header.name).find("-ag") != std::string::npos) {
|
||||
lg::error(
|
||||
|
||||
@@ -125,6 +125,7 @@ class ObjectFileDB {
|
||||
assert(obj_files_by_name.size() == obj_file_order.size());
|
||||
for (const auto& name : obj_file_order) {
|
||||
for (auto& obj : obj_files_by_name.at(name)) {
|
||||
// lg::info("{}...", name);
|
||||
f(obj);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user