]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/util.cxx
Force 32 bits depth on .ico - only for Windows
[flightgear.git] / src / Main / util.cxx
index 8dd2bd54d92566778e3d456fc754663ce33a998b..5eed377345eeeb3cc6bb20d1d30b4a5c9732f3f7 100644 (file)
@@ -91,5 +91,12 @@ const char *fgValidatePath (const char *str, bool write)
     return result[0] ? result : 0;
 }
 
+//------------------------------------------------------------------------------
+std::string fgValidatePath(const std::string& path, bool write)
+{
+  const char* validate_path = fgValidatePath(path.c_str(), write);
+  return std::string(validate_path ? validate_path : "");
+}
+
 // end of util.cxx