dm 7 years ago
parent
commit
96039439a7
1 changed files with 13 additions and 2 deletions
  1. 13 2
      oxygine/src/oxygine/utils/stringUtils.cpp

+ 13 - 2
oxygine/src/oxygine/utils/stringUtils.cpp

@@ -296,7 +296,12 @@ namespace oxygine
         SDL_free(s);
         return str;
 #else
-        logs::warning("utf8tows not implemented correctly!");
+        static bool warned = false;
+        if (warned)
+        {
+            warned = true;
+            logs::warning("utf8tows not implemented correctly!");
+        }
 
         std::wstring ws;
         ws.reserve(n);
@@ -334,7 +339,13 @@ namespace oxygine
         SDL_free(s);
         return str;
 #else
-        logs::warning("utf8tows not implemented correctly!");
+        static bool warned = false;
+        if (warned)
+        {
+            warned = true;
+            logs::warning("utf8tows not implemented correctly!");
+        }
+
         std::string s;
         int i = 0;
         while (wchar_t t = wstr[i])