mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Add a ZipFileLoader, which can let us load any single-file file type from a zip.
Useful for loading framedumps from github without manually having to unzip each one, for example.
This commit is contained in:
@@ -266,6 +266,15 @@ std::string_view KeepAfterLast(std::string_view s, char c) {
|
||||
}
|
||||
}
|
||||
|
||||
std::string_view KeepIncludingLast(std::string_view s, char c) {
|
||||
size_t pos = s.rfind(c);
|
||||
if (pos != std::string_view::npos) {
|
||||
return s.substr(pos);
|
||||
} else {
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
void SkipSpace(const char **ptr) {
|
||||
while (**ptr && isspace(**ptr)) {
|
||||
(*ptr)++;
|
||||
|
||||
Reference in New Issue
Block a user