2
0
forked from Ivasoft/DSView

Add multibytes search feature for protocol list viewer;Add absolute time to session file;fix other minor issues

This commit is contained in:
DreamSourceLab
2016-06-14 22:52:27 +08:00
parent b1446b780d
commit aa9d7c400b
31 changed files with 605 additions and 334 deletions

View File

@@ -47,7 +47,7 @@ using std::ostringstream;
using std::runtime_error;
using std::string;
char config_path[256];
extern char AppDataPath[256];
namespace pv {
@@ -103,12 +103,9 @@ std::list<boost::shared_ptr<device::DevInst> > DeviceManager::driver_scan(
// Check If DSL hardware driver
if (strncmp(driver->name, "virtual", 7)) {
QDir dir(QCoreApplication::applicationDirPath());
if (!dir.cd("res"))
QDir dir(DS_RES_PATH);
if (!dir.exists())
return driver_devices;
QString str = dir.absolutePath() + "/";
QString str_utf8 = QString::fromLocal8Bit(str.toLocal8Bit());
strcpy(config_path, str_utf8.toUtf8().data());
}
// Do the scan