Trophy: use system language setting

This commit is contained in:
Zangetsu38 2017-10-26 15:12:08 +02:00 committed by Ani
parent 4bf8d1e41f
commit 53f9defb07
2 changed files with 3 additions and 3 deletions

View file

@ -268,7 +268,7 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
const size_t kTargetBufferLength = 31;
char target[kTargetBufferLength + 1];
target[kTargetBufferLength] = 0;
strcpy_trunc(target, fmt::format("TROP_%02d.SFM", /*rpcs3::config.system.language.value()*/0));
strcpy_trunc(target, fmt::format("TROP_%02d.SFM", static_cast<s32>(g_cfg.sys.language)));
if (trp.ContainsEntry(target))
{
@ -290,7 +290,7 @@ error_code sceNpTrophyRegisterContext(ppu_thread& ppu, u32 context, u32 handle,
for (s32 i = 0; i <= 18; i++)
{
strcpy_trunc(target, fmt::format("TROP_%02d.SFM", i));
if (i != /*rpcs3::config.system.language.value()*/0)
if (i != g_cfg.sys.language)
{
trp.RemoveEntry(target);
}

View file

@ -10,7 +10,7 @@ inline QString qstr(const std::string& _in) { return QString::fromUtf8(_in.data(
trophy_notification_frame::trophy_notification_frame(const std::vector<uchar>& imgBuffer, const SceNpTrophyDetails& trophy, int height) : QWidget()
{
setWindowFlags(Qt::FramelessWindowHint);
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
setAttribute(Qt::WA_ShowWithoutActivating);
// Fill the background with black