1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-05 01:54:00 +00:00

Added language default

This commit is contained in:
Bryan Roe
2020-12-18 13:29:44 -08:00
parent bbd080f99c
commit c37087272a

View File

@@ -1094,6 +1094,10 @@ INT_PTR CALLBACK DialogHandler(HWND hDlg, UINT message, WPARAM wParam, LPARAM lP
lang = (char*)duk_safe_to_string(ctx, -1);
duk_dup(ctx, -4); // [obj][string][array][string][obj]
}
if (!duk_has_prop_string(ctx, -1, lang))
{
lang = "en";
}
if (duk_has_prop_string(ctx, -1, lang))
{