More module loading cleanup, choose better filenames for dumped PRX files

This commit is contained in:
Henrik Rydgård committed 2025-03-31 12:09:25 +02:00
1 parent 7e2f724d35
commit a79f986411
4 files changed
+20 -3

No files matched your search

+9
View File
@@ -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)++;