mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 15:02:01 -04:00
[Decompiler] Expression 5 (#218)
* new method of inline-array-class * up to new array * wip side effect stuff * prepare for pop barrier stuff * add pop barrier * add local vars hack to compiler * fix bug, make sort work * add test for array * bug fixes * another bug fix * refactoring env variable print for casts * more tweaks * updates * final cleanup * codacy fixes
This commit is contained in:
@@ -155,6 +155,11 @@ ObjectFileDB::ObjectFileDB(const std::vector<std::string>& _dgos,
|
||||
}
|
||||
|
||||
lg::info("ObjectFileDB Initialized\n");
|
||||
if (obj_files_by_name.empty()) {
|
||||
lg::die(
|
||||
"No object files have been added. Check that there are input files and the allowed_objects "
|
||||
"list.");
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectFileDB::load_map_file(const std::string& map_data) {
|
||||
@@ -280,6 +285,12 @@ void ObjectFileDB::add_obj_from_dgo(const std::string& obj_name,
|
||||
const uint8_t* obj_data,
|
||||
uint32_t obj_size,
|
||||
const std::string& dgo_name) {
|
||||
const auto& config = get_config();
|
||||
if (!config.allowed_objects.empty()) {
|
||||
if (config.allowed_objects.find(obj_name) == config.allowed_objects.end()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
stats.total_obj_files++;
|
||||
assert(obj_size > 128);
|
||||
uint16_t version = *(const uint16_t*)(obj_data + 8);
|
||||
|
||||
Reference in New Issue
Block a user