mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-22 03:57:17 +01:00
Revert "Merge pull request #47 from lioncash/remove-stringfromint"
Breaks Android build. This reverts commit 12d026c544748521332ad5edfaf123547fa18233, reversing changes made to 6d678490f51cc0154a0bdedf9dce23c77fdfb991.
This commit is contained in:
parent
12d026c544
commit
70e2ed320d
@ -56,7 +56,7 @@ public:
|
|||||||
|
|
||||||
void Set(const char* key, int newValue, int defaultValue);
|
void Set(const char* key, int newValue, int defaultValue);
|
||||||
void Set(const char* key, int newValue) {
|
void Set(const char* key, int newValue) {
|
||||||
Set(key, std::to_string(newValue).c_str());
|
Set(key, StringFromInt(newValue).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Set(const char* key, bool newValue, bool defaultValue);
|
void Set(const char* key, bool newValue, bool defaultValue);
|
||||||
|
@ -185,6 +185,13 @@ bool TryParse(const std::string &str, bool *const output)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string StringFromInt(int value)
|
||||||
|
{
|
||||||
|
char temp[16];
|
||||||
|
sprintf(temp, "%i", value);
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
|
||||||
std::string StringFromBool(bool value)
|
std::string StringFromBool(bool value)
|
||||||
{
|
{
|
||||||
return value ? "True" : "False";
|
return value ? "True" : "False";
|
||||||
|
@ -55,6 +55,7 @@ std::string ThousandSeparate(I value, int spaces = 0)
|
|||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string StringFromInt(int value);
|
||||||
std::string StringFromBool(bool value);
|
std::string StringFromBool(bool value);
|
||||||
|
|
||||||
bool TryParse(const std::string &str, bool *output);
|
bool TryParse(const std::string &str, bool *output);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user