mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Core: Keep number on setting for translated.
This way it will keep working in old versions for bisecting.
This commit is contained in:
parent
c8da2d00cc
commit
3e07b02226
1 changed files with 5 additions and 1 deletions
|
@ -679,10 +679,14 @@ static bool DefaultVertexCache() {
|
|||
template <typename T, std::string (*FTo)(T), T (*FFrom)(const std::string &)>
|
||||
struct ConfigTranslator {
|
||||
static std::string To(int v) {
|
||||
return FTo(T(v));
|
||||
return StringFromInt(v) + " (" + FTo(T(v)) + ")";
|
||||
}
|
||||
|
||||
static int From(const std::string &v) {
|
||||
int result;
|
||||
if (TryParse(v, &result)) {
|
||||
return result;
|
||||
}
|
||||
return (int)FFrom(v);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue