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:
ManDude
2021-10-15 23:17:51 +01:00
committed by GitHub
parent 3a1c9eaf75
commit bacf9fd130
23 changed files with 12768 additions and 13 deletions
+13 -1
View File
@@ -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(