Detect _savevr/_restvr + check in RELs

Some games include a copy of MW
runtime.c in RELs. Easy to check.

Some games also include _savevr/
_restvr for AltiVec. This is weird
but we can handle it as well.
This commit is contained in:
2024-06-10 00:43:00 -06:00
parent 3289b2a3aa
commit eb7c3e9d9f
4 changed files with 59 additions and 21 deletions

View File

@@ -1056,6 +1056,7 @@ fn load_analyze_rel(config: &ProjectConfig, module_config: &ModuleConfig) -> Res
debug!("Analyzing module {}", module_obj.module_id);
if !config.quick_analysis {
let mut state = AnalyzerState::default();
FindSaveRestSleds::execute(&mut state, &module_obj)?;
state.detect_functions(&module_obj)?;
FindRelCtorsDtors::execute(&mut state, &module_obj)?;
FindRelRodataData::execute(&mut state, &module_obj)?;