mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -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(
|
||||
|
||||
Reference in New Issue
Block a user