diff options
| author | Desour <ds.desour@proton.me> | 2023-03-03 01:18:38 +0100 |
|---|---|---|
| committer | sfan5 <sfan5@live.de> | 2023-04-08 20:17:50 +0200 |
| commit | 67068cfaf43ef95e526401d9f788790516b9f8ed (patch) | |
| tree | f4e219f632bff88aa0c798b42b4a27e2e353acef /src/client/clientlauncher.cpp | |
| parent | 35929d27e3a93085c3a27180c1805711dcfe95d5 (diff) | |
| download | minetest-67068cfaf43ef95e526401d9f788790516b9f8ed.tar.xz | |
Get rid of wgettext
Diffstat (limited to 'src/client/clientlauncher.cpp')
| -rw-r--r-- | src/client/clientlauncher.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 15263de9b..ed6afe7e4 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -208,12 +208,10 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args) while (m_rendering_engine->run() && !*kill && !g_gamecallback->shutdown_requested) { // Set the window caption - const wchar_t *text = wgettext("Main Menu"); m_rendering_engine->get_raw_device()-> setWindowCaption((utf8_to_wide(PROJECT_NAME_C) + L" " + utf8_to_wide(g_version_hash) + - L" [" + text + L"]").c_str()); - delete[] text; + L" [" + wstrgettext("Main Menu") + L"]").c_str()); try { // This is used for catching disconnects |
