mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Reduce gettext wide/narrow and string/char* conversions
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user