mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Second to last commit
Everything but getting ISO name
This commit is contained in:
1 parent
0b2885c2fe
commit
9d2667fc0d
7 files changed
+243
-216
No files matched your search
@@ -22,6 +22,27 @@
|
||||
#include "CommonPaths.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
long parseHexLong(std::string s) {
|
||||
long value = 0;
|
||||
|
||||
if (s.substr(0,2) == "0x") {
|
||||
//s = s.substr(2);
|
||||
}
|
||||
value = strtoul(s.c_str(),0, 0);
|
||||
return value;
|
||||
}
|
||||
long parseLong(std::string s) {
|
||||
long value = 0;
|
||||
if (s.substr(0,2) == "0x") {
|
||||
s = s.substr(2);
|
||||
value = strtol(s.c_str(),NULL, 16);
|
||||
} else {
|
||||
value = strtol(s.c_str(),NULL, 10);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
// faster than sscanf
|
||||
bool AsciiToHex(const char* _szValue, u32& result)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user