Skip to content

Commit

Permalink
Log binaries as found
Browse files Browse the repository at this point in the history
  • Loading branch information
IssMneur committed Oct 11, 2016
1 parent 3a6d367 commit dec45ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/datastructures/FSOExecutable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dec45ba

Please sign in to comment.