mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
d/j3: all-types: guess at associated process for non-virtual states and fix some issues along the way (#3300)
This will make a best effort attempt at guessing which process a non-virtual state belongs to:  I also noticed some issues while working on this, mainly around how virtual states were being output. They were being duplicated, for example:  or  I think I've fixed that, but @Hat-Kid I defer to you to see if i've done something terrible. 
This commit is contained in:
@@ -222,13 +222,14 @@ class ObjectFileDB {
|
||||
void ir2_setup_labels(const Config& config, ObjectFileData& data);
|
||||
void ir2_run_mips2c(const Config& config, ObjectFileData& data);
|
||||
struct PerObjectAllTypeInfo {
|
||||
std::string object_name;
|
||||
std::unordered_set<std::string> already_seen_symbols;
|
||||
|
||||
// type-name : { method id : state name }
|
||||
std::unordered_map<std::string, std::unordered_map<int, std::string>> state_methods;
|
||||
// symbol-name : type-name
|
||||
std::unordered_map<std::string, std::string> symbol_types;
|
||||
// state-name : type-name
|
||||
std::unordered_map<std::string, std::string> non_virtual_state_guesses;
|
||||
|
||||
struct TypeInfo {
|
||||
bool from_inspect_method = false; // does this come from an inspect method?
|
||||
|
||||
Reference in New Issue
Block a user