mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Merge pull request #7138 from lioncash/mips
MIPSAnalyst: Pass strings by const reference.
This commit is contained in:
commit
5e9d111c95
@ -1108,7 +1108,7 @@ skip:
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SetHashMapFilename(std::string filename) {
|
||||
void SetHashMapFilename(const std::string& filename) {
|
||||
if (filename.empty())
|
||||
hashmapFileName = GetSysDirectory(DIRECTORY_SYSTEM) + "knownfuncs.ini";
|
||||
else
|
||||
@ -1180,7 +1180,7 @@ skip:
|
||||
}
|
||||
}
|
||||
|
||||
void LoadHashMap(std::string filename) {
|
||||
void LoadHashMap(const std::string& filename) {
|
||||
FILE *file = File::OpenCFile(filename, "rt");
|
||||
if (!file) {
|
||||
WARN_LOG(LOADER, "Could not load hash map: %s", filename.c_str());
|
||||
|
@ -107,9 +107,9 @@ namespace MIPSAnalyst
|
||||
void ForgetFunctions(u32 startAddr, u32 endAddr);
|
||||
void CompileLeafs();
|
||||
|
||||
void SetHashMapFilename(std::string filename = "");
|
||||
void SetHashMapFilename(const std::string& filename = "");
|
||||
void LoadBuiltinHashMap();
|
||||
void LoadHashMap(std::string filename);
|
||||
void LoadHashMap(const std::string& filename);
|
||||
void StoreHashMap(std::string filename = "");
|
||||
|
||||
const char *LookupHash(u64 hash, u32 funcSize);
|
||||
|
Loading…
Reference in New Issue
Block a user