From dec45ba859608870401a16db49f03a0a4b11cbfb Mon Sep 17 00:00:00 2001 From: Iss Mneur Date: Mon, 10 Oct 2016 18:32:24 -0600 Subject: [PATCH] Log binaries as found --- code/datastructures/FSOExecutable.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/datastructures/FSOExecutable.cpp b/code/datastructures/FSOExecutable.cpp index 41109b7..abe9969 100644 --- a/code/datastructures/FSOExecutable.cpp +++ b/code/datastructures/FSOExecutable.cpp @@ -157,22 +157,30 @@ wxArrayString FSOExecutable::GetBinariesFromRootFolder( #endif for (; cont; cont = folder.GetNext(&filename)) { + wxLogInfo(wxT("Found file: %s"), filename.c_str()); wxString lowerFilename(filename.Lower()); + wxLogDebug(wxT(" '%s'"), lowerFilename.c_str()); // filter out "launcher" binaries (particularly on OSX) // otherwise they endup in the binary list if (lowerFilename.Contains(_T("launcher"))) { + wxLogDebug(wxT(" contains 'launcher'.")); continue; } if (!lowerFilename.StartsWith(startPattern)) { + wxLogDebug(wxT(" does not start with '%s'."), + startPattern.c_str()); continue; } #if IS_LINUX if (IsFileToIgnore(filename)) { + wxLogDebug(wxT(" ignored.")); continue; } #endif - if (!lowerFilename.EndsWith(wxEmptyString)) { + if (!lowerFilename.EndsWith(endPattern)) { + wxLogDebug(wxT(" does not end with '%s'."), + endPattern.c_str()); continue; } files.Add(filename);