+2005-11-05 Perry
+ PATCH: [ 1337905 ] Allow comparing binary files with binary unpacker
+ Src: DirView.cpp
+
2005-11-04 Perry
PATCH: [ 1335072 ] Add text to Plugins.txt to cover DisplayXMLFiles
Plugins/dlls: Plugins.txt
}
/**
+ * @brief Return true if this unpacker handles binary files
+ */
+static bool
+IsBinaryUnpacker(PackingInfo * infoUnpacker)
+{
+ if (!infoUnpacker)
+ return false;
+ if (!_tcsstr(infoUnpacker->pluginName, _T("BinaryFile")))
+ return false;
+ return true;
+}
+
+/**
* @brief Open selected files or directories.
*
* Opens selected files to file compare. If comparing
if (di1->isBin() || di2->isBin())
{
- AfxMessageBox(IDS_FILEBINARY, MB_ICONSTOP);
- return;
+ if (!IsBinaryUnpacker(infoUnpacker))
+ {
+ AfxMessageBox(IDS_FILEBINARY, MB_ICONSTOP);
+ return;
+ }
}
// Close open documents first (ask to save unsaved data)