mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Qt/overlays: Localize most rsx overlays
This commit is contained in:
parent
fe9c61fe73
commit
460a933267
21 changed files with 244 additions and 34 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "gs_frame.h"
|
||||
#include "gl_gs_frame.h"
|
||||
#include "display_sleep_control.h"
|
||||
#include "localized_emu.h"
|
||||
|
||||
#ifdef WITH_DISCORD_RPC
|
||||
#include "_discord_utils.h"
|
||||
|
@ -358,6 +359,16 @@ void gui_application::InitializeCallbacks()
|
|||
}
|
||||
};
|
||||
|
||||
callbacks.get_localized_string = [](localized_string_id id) -> std::string
|
||||
{
|
||||
return localized_emu::get_string(id);
|
||||
};
|
||||
|
||||
callbacks.get_localized_u32string = [](localized_string_id id) -> std::u32string
|
||||
{
|
||||
return localized_emu::get_u32string(id);
|
||||
};
|
||||
|
||||
Emu.SetCallbacks(std::move(callbacks));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue