mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Disable debug-breaking locale workaround when debugging (#15859)
This commit is contained in:
parent
98048cb06d
commit
0eb047ca33
1 changed files with 7 additions and 2 deletions
|
@ -171,8 +171,13 @@ void init_gettext(const char *path, const std::string &configured_language,
|
||||||
|
|
||||||
#if CHECK_CLIENT_BUILD()
|
#if CHECK_CLIENT_BUILD()
|
||||||
// Hack to force gettext to see the right environment
|
// Hack to force gettext to see the right environment
|
||||||
if (current_language != configured_language)
|
if (current_language != configured_language) {
|
||||||
MSVC_LocaleWorkaround(argc, argv);
|
// Disabled when debugger is present as it can break debugging
|
||||||
|
if (!IsDebuggerPresent())
|
||||||
|
MSVC_LocaleWorkaround(argc, argv);
|
||||||
|
else
|
||||||
|
actionstream << "Debugger detected. Skipping MSVC_LocaleWorkaround." << std::endl;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
errorstream << "*******************************************************" << std::endl;
|
errorstream << "*******************************************************" << std::endl;
|
||||||
errorstream << "Can't apply locale workaround for server!" << std::endl;
|
errorstream << "Can't apply locale workaround for server!" << std::endl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue