mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
[UI] Fixed 'info' always true
This commit is contained in:
parent
22fdf6624c
commit
117e5f088c
@ -172,7 +172,7 @@ static std::string PostShaderTranslateName(std::string_view value) {
|
||||
const ShaderInfo *info = GetPostShaderInfo(value);
|
||||
if (info) {
|
||||
auto ps = GetI18NCategory(I18NCat::POSTSHADERS);
|
||||
return std::string(ps->T(value, info ? info->name : value));
|
||||
return std::string(ps->T(value, info->name));
|
||||
} else {
|
||||
return std::string(value);
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ static std::string TextureTranslateName(std::string_view value) {
|
||||
const TextureShaderInfo *info = GetTextureShaderInfo(value);
|
||||
if (info) {
|
||||
auto ts = GetI18NCategory(I18NCat::TEXTURESHADERS);
|
||||
return std::string(ts->T(value, info ? info->name.c_str() : value));
|
||||
return std::string(ts->T(value, info->name.c_str()));
|
||||
} else {
|
||||
return std::string(value);
|
||||
}
|
||||
@ -210,7 +210,7 @@ static std::string PostShaderTranslateName(std::string_view value) {
|
||||
const ShaderInfo *info = GetPostShaderInfo(value);
|
||||
if (info) {
|
||||
auto ps = GetI18NCategory(I18NCat::POSTSHADERS);
|
||||
return std::string(ps->T(value, info ? info->name : value));
|
||||
return std::string(ps->T(value, info->name));
|
||||
} else {
|
||||
return std::string(value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user