mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Use a common func to generate default func names.
This commit is contained in:
parent
735968ba9b
commit
2ec73a65ed
1 changed files with 3 additions and 4 deletions
|
@ -415,11 +415,10 @@ namespace MIPSAnalyst {
|
|||
currentFunction.end = addr + 4;
|
||||
functions.push_back(currentFunction);
|
||||
|
||||
for (vector<Function>::iterator iter = functions.begin(); iter!=functions.end(); iter++) {
|
||||
(*iter).size = ((*iter).end-(*iter).start+4);
|
||||
for (auto iter = functions.begin(); iter != functions.end(); iter++) {
|
||||
iter->size = iter->end - iter->start + 4;
|
||||
char temp[256];
|
||||
sprintf(temp,"z_un_%08x",(*iter).start);
|
||||
symbolMap.AddFunction(temp,(*iter).start,(*iter).end-(*iter).start+4);
|
||||
symbolMap.AddFunction(DefaultFunctionName(temp, iter->start), iter->start, iter->end - iter->start + 4);
|
||||
}
|
||||
|
||||
HashFunctions();
|
||||
|
|
Loading…
Add table
Reference in a new issue