mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 02:41:49 -05:00
Merge pull request #12320 from liamwhite/debug-fix
debug: fix reading of module names
This commit is contained in:
commit
5646e313a0
1 changed files with 4 additions and 1 deletions
|
@ -282,6 +282,8 @@ Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) {
|
||||||
|
|
||||||
// Ignore leading directories.
|
// Ignore leading directories.
|
||||||
char* path_pointer = module_path.path.data();
|
char* path_pointer = module_path.path.data();
|
||||||
|
char* path_end =
|
||||||
|
path_pointer + std::min(PathLengthMax, module_path.path_length);
|
||||||
|
|
||||||
for (s32 i = 0; i < std::min(PathLengthMax, module_path.path_length) &&
|
for (s32 i = 0; i < std::min(PathLengthMax, module_path.path_length) &&
|
||||||
module_path.path[i] != '\0';
|
module_path.path[i] != '\0';
|
||||||
|
@ -292,7 +294,8 @@ Loader::AppLoader::Modules FindModules(const Kernel::KProcess* process) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert output.
|
// Insert output.
|
||||||
modules.emplace(svc_mem_info.base_address, path_pointer);
|
modules.emplace(svc_mem_info.base_address,
|
||||||
|
std::string_view(path_pointer, path_end));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue