mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
More module loading cleanup, choose better filenames for dumped PRX files
This commit is contained in:
1 parent
7e2f724d35
commit
a79f986411
4 files changed
+20
-3
No files matched your search
@@ -250,6 +250,15 @@ std::string_view StripPrefix(std::string_view prefix, std::string_view s) {
|
||||
}
|
||||
}
|
||||
|
||||
std::string_view KeepAfterLast(std::string_view s, char c) {
|
||||
size_t pos = s.rfind(c);
|
||||
if (pos != std::string_view::npos) {
|
||||
return s.substr(pos + 1);
|
||||
} else {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
void SkipSpace(const char **ptr) {
|
||||
while (**ptr && isspace(**ptr)) {
|
||||
(*ptr)++;
|
||||
|
||||
Reference in new issue
Block a user