mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reduce gettext wide/narrow and string/char* conversions
This commit is contained in:
parent
84c367bb46
commit
9e2a9b55e1
15 changed files with 125 additions and 141 deletions
|
@ -1684,7 +1684,7 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args)
|
|||
while (device->run() && !*kill && !g_gamecallback->shutdown_requested)
|
||||
{
|
||||
// Set the window caption
|
||||
wchar_t *text = wgettext("Main Menu");
|
||||
const wchar_t *text = wgettext("Main Menu");
|
||||
device->setWindowCaption((std::wstring(L"Minetest [") + text + L"]").c_str());
|
||||
delete[] text;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue