2020-09-13 21:32:55 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-22 23:30:17 -04:00
|
|
|
#ifndef JAK2_DISASSEMBLER_CONFIG_H
|
|
|
|
#define JAK2_DISASSEMBLER_CONFIG_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <unordered_set>
|
|
|
|
|
|
|
|
struct Config {
|
|
|
|
int game_version = -1;
|
|
|
|
std::vector<std::string> dgo_names;
|
2020-11-19 21:22:16 -05:00
|
|
|
std::vector<std::string> object_file_names;
|
2020-11-21 15:58:51 -05:00
|
|
|
std::vector<std::string> str_file_names;
|
2020-10-24 22:51:40 -04:00
|
|
|
std::unordered_set<std::string> bad_inspect_types;
|
2020-10-24 14:27:50 -04:00
|
|
|
std::string obj_file_name_map_file;
|
2020-08-22 23:30:17 -04:00
|
|
|
bool write_disassembly = false;
|
|
|
|
bool write_hexdump = false;
|
|
|
|
bool write_scripts = false;
|
|
|
|
bool write_hexdump_on_v3_only = false;
|
|
|
|
bool disassemble_objects_without_functions = false;
|
|
|
|
bool write_hex_near_instructions = false;
|
2020-11-16 19:57:45 -05:00
|
|
|
bool analyze_functions = false;
|
|
|
|
bool process_tpages = false;
|
2020-11-19 21:22:16 -05:00
|
|
|
bool process_game_text = false;
|
2020-11-24 20:48:38 -05:00
|
|
|
bool process_game_count = false;
|
|
|
|
bool dump_objs = false;
|
2020-08-22 23:30:17 -04:00
|
|
|
std::unordered_set<std::string> asm_functions_by_name;
|
|
|
|
// ...
|
|
|
|
};
|
|
|
|
|
|
|
|
Config& get_config();
|
|
|
|
void set_config(const std::string& path_to_config_file);
|
|
|
|
|
|
|
|
#endif // JAK2_DISASSEMBLER_CONFIG_H
|