mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Trophy: use system language setting
This commit is contained in:
parent
4bf8d1e41f
commit
53f9defb07
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue