#include <ucdata.h>
Collaboration diagram for UCData:
Public Member Functions | |
UCData () | |
~UCData () | |
void | dump_unknown_opcodes () |
void | dump_unknown_intrinsics () |
void | parse_params (const unsigned int argc, char **argv) |
void | open_usecode (const std::string &filename) |
void | load_funcs () |
void | disassamble () |
void | dump_flags (std::ostream &o) |
void | output_extern_header (std::ostream &o) |
std::string | output_redirect () const |
std::string | input_usecode_file () const |
bool | fail () const |
const std::map< unsigned int, UCFuncSet > & | funcmap () |
const UCOptions & | opt () |
Public Attributes | |
UCOptions | options |
Private Member Functions | |
void | file_open (const std::string &filename) |
void | file_seek_start () |
void | file_seek_end () |
Private Attributes | |
std::ifstream | _file |
std::string | _output_redirect |
std::string | _input_usecode_file |
unsigned int | _funcid |
std::vector< UCc > | _codes |
std::vector< UCFunc * > | _funcs |
FuncMap | _funcmap |
long | _search_opcode |
long | _search_intrinsic |
std::vector< unsigned int > | search_funcs |
Definition at line 29 of file ucdata.h.
void UCData::dump_unknown_opcodes | ( | ) |
void UCData::dump_unknown_intrinsics | ( | ) |
void UCData::parse_params | ( | const unsigned int | argc, | |
char ** | argv | |||
) |
Definition at line 53 of file ucdata.cc.
References UCOptions::_game, _input_usecode_file, _output_redirect, UCOptions::autocomment, UCOptions::basic, UCOptions::force_ext32, UCOptions::GAME_BG, UCOptions::GAME_SI, UCOptions::GAME_U8, UCOptions::mode_all, UCOptions::mode_dis, UCOptions::noconf, options, UCOptions::output_asm, UCOptions::output_extern_header, UCOptions::output_flag, UCOptions::output_list, UCOptions::output_trans_table, UCOptions::output_ucs, UCOptions::rawops, search_funcs, size, UCOptions::ucdebug, UCOptions::uselesscomment, UCOptions::verbose, and UCOptions::very_verbose.
Referenced by main().
void UCData::open_usecode | ( | const std::string & | filename | ) |
Referenced by open_usecode_file().
void UCData::load_funcs | ( | ) |
Definition at line 277 of file ucdata.cc.
References _file, _funcmap, _funcs, UCFunc::ext32, UCOptions::force_ext32, UCOptions::game_bg(), UCOptions::game_si(), UCOptions::game_u8(), options, readbin_U7UCFunc(), readbin_U8UCFunc(), and UCOptions::verbose.
Referenced by disassamble().
Here is the call graph for this function:
void UCData::disassamble | ( | ) |
Definition at line 124 of file ucdata.cc.
References _funcmap, _funcs, load_funcs(), UCOptions::mode_all, UCOptions::mode_dis, options, UCOptions::output_asm, UCOptions::output_list, UCOptions::output_trans_table, UCOptions::output_ucs, search_funcs, uc_intrinsics, UCOptions::ucdebug, and UCOptions::verbose.
Referenced by main().
Here is the call graph for this function:
void UCData::dump_flags | ( | std::ostream & | o | ) |
Referenced by main().
void UCData::output_extern_header | ( | std::ostream & | o | ) |
Referenced by main().
std::string UCData::output_redirect | ( | ) | const [inline] |
std::string UCData::input_usecode_file | ( | ) | const [inline] |
Definition at line 47 of file ucdata.h.
References _input_usecode_file.
Referenced by open_usecode_file().
bool UCData::fail | ( | ) | const [inline] |
const std::map<unsigned int, UCFuncSet>& UCData::funcmap | ( | ) | [inline] |
const UCOptions& UCData::opt | ( | ) | [inline] |
void UCData::file_open | ( | const std::string & | filename | ) | [private] |
void UCData::file_seek_start | ( | ) | [inline, private] |
void UCData::file_seek_end | ( | ) | [inline, private] |
Definition at line 53 of file ucdata.h.
Referenced by disassamble(), load_funcs(), main(), open_usecode_file(), and parse_params().
std::ifstream UCData::_file [private] |
Definition at line 61 of file ucdata.h.
Referenced by fail(), file_seek_end(), file_seek_start(), load_funcs(), and ~UCData().
std::string UCData::_output_redirect [private] |
std::string UCData::_input_usecode_file [private] |
unsigned int UCData::_funcid [private] |
std::vector<UCc> UCData::_codes [private] |
std::vector<UCFunc *> UCData::_funcs [private] |
FuncMap UCData::_funcmap [private] |
long UCData::_search_opcode [private] |
long UCData::_search_intrinsic [private] |
std::vector<unsigned int> UCData::search_funcs [private] |