mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
Support "game count" and v4 objects (#140)
* generate object, but not supported in linker yet * add link and tests * update types
This commit is contained in:
@@ -46,6 +46,12 @@ int main(int argc, char** argv) {
|
||||
file_util::write_text_file(file_util::combine_path(out_folder, "obj.txt"),
|
||||
db.generate_obj_listing());
|
||||
|
||||
if (get_config().dump_objs) {
|
||||
auto path = file_util::combine_path(out_folder, "raw_obj");
|
||||
file_util::create_dir_if_needed(path);
|
||||
db.dump_raw_objects(path);
|
||||
}
|
||||
|
||||
db.process_link_data();
|
||||
db.find_code();
|
||||
db.process_labels();
|
||||
@@ -71,6 +77,11 @@ int main(int argc, char** argv) {
|
||||
db.process_tpages();
|
||||
}
|
||||
|
||||
if (get_config().process_game_count) {
|
||||
auto result = db.process_game_count();
|
||||
file_util::write_text_file(file_util::get_file_path({"assets", "game_count.txt"}), result);
|
||||
}
|
||||
|
||||
if (get_config().write_disassembly) {
|
||||
db.write_disassembly(out_folder, get_config().disassemble_objects_without_functions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user