mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 10:19:04 +02:00
More InstallZip refactoring, add options for install directory where applicable
This commit is contained in:
1 parent
d3fca5b8eb
commit
10d3b253a4
10 files changed
+117
-39
No files matched your search
@@ -93,6 +93,12 @@ long parseLong(std::string s) {
|
||||
return value;
|
||||
}
|
||||
|
||||
bool containsNoCase(std::string_view haystack, std::string_view needle) {
|
||||
auto pred = [](char ch1, char ch2) { return std::toupper(ch1) == std::toupper(ch2); };
|
||||
auto found = std::search(haystack.begin(), haystack.end(), needle.begin(), needle.end(), pred);
|
||||
return found != haystack.end();
|
||||
}
|
||||
|
||||
bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args)
|
||||
{
|
||||
int writtenCount = vsnprintf(out, outsize, format, args);
|
||||
|
||||
Reference in new issue
Block a user