X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cecc483e14c2fa839830052ab870de6c53ef3095..1d14c0051c7530f303855d454e5601a596284a71:/contrib/utils/wxrc/wxrc.cpp diff --git a/contrib/utils/wxrc/wxrc.cpp b/contrib/utils/wxrc/wxrc.cpp index bb3fdcc62c..8bf7f2ef0a 100644 --- a/contrib/utils/wxrc/wxrc.cpp +++ b/contrib/utils/wxrc/wxrc.cpp @@ -36,6 +36,8 @@ class XmlResApp : public wxAppConsole { public: + // don't use builtin cmd line parsing: + virtual bool OnInit() { return true; } virtual int OnRun(); @@ -144,7 +146,18 @@ void XmlResApp::ParseParams(const wxCmdLineParser& cmdline) parFuncname = _T("InitXmlResource"); for (size_t i = 0; i < cmdline.GetParamCount(); i++) + { +#ifdef __WINDOWS__ + wxString fn=wxFindFirstFile(cmdline.GetParam(i), wxFILE); + while (!fn.IsEmpty()) + { + parFiles.Add(fn); + fn=wxFindNextFile(); + } +#else parFiles.Add(cmdline.GetParam(i)); +#endif + } }