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;
|
currentFunction.end = addr + 4;
|
||||||
functions.push_back(currentFunction);
|
functions.push_back(currentFunction);
|
||||||
|
|
||||||
for (vector<Function>::iterator iter = functions.begin(); iter!=functions.end(); iter++) {
|
for (auto iter = functions.begin(); iter != functions.end(); iter++) {
|
||||||
(*iter).size = ((*iter).end-(*iter).start+4);
|
iter->size = iter->end - iter->start + 4;
|
||||||
char temp[256];
|
char temp[256];
|
||||||
sprintf(temp,"z_un_%08x",(*iter).start);
|
symbolMap.AddFunction(DefaultFunctionName(temp, iter->start), iter->start, iter->end - iter->start + 4);
|
||||||
symbolMap.AddFunction(temp,(*iter).start,(*iter).end-(*iter).start+4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HashFunctions();
|
HashFunctions();
|
||||||
|
|
Loading…
Add table
Reference in a new issue