mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
Print the resource directorys
This commit is contained in:
parent
41d06c0fb3
commit
298cc1bae5
@ -65,10 +65,28 @@ void AppControl::Destroy(){
|
|||||||
|
|
||||||
bool AppControl::Init()
|
bool AppControl::Init()
|
||||||
{
|
{
|
||||||
|
QString qs;
|
||||||
|
std::string cs;
|
||||||
|
|
||||||
|
qs = GetAppDataDir();
|
||||||
|
cs = qs.toStdString();
|
||||||
|
dsv_info("GetAppDataDir:\"%s\"", cs.c_str());
|
||||||
|
|
||||||
|
qs = GetResourceDir();
|
||||||
|
cs = qs.toStdString();
|
||||||
|
dsv_info("GetResourceDir:\"%s\"", cs.c_str());
|
||||||
|
|
||||||
|
qs = GetUserDataDir();
|
||||||
|
cs = qs.toStdString();
|
||||||
|
dsv_info("GetUserDataDir:\"%s\"", cs.c_str());
|
||||||
|
|
||||||
|
qs = GetDecodeScriptDir();
|
||||||
|
cs = qs.toStdString();
|
||||||
|
dsv_info("GetDecodeScriptDir:\"%s\"", cs.c_str());
|
||||||
|
//---------------end print directorys.
|
||||||
|
|
||||||
_session->init();
|
_session->init();
|
||||||
|
|
||||||
pv::encoding::init();
|
pv::encoding::init();
|
||||||
|
|
||||||
srd_log_set_context(dsv_log_context());
|
srd_log_set_context(dsv_log_context());
|
||||||
|
|
||||||
#if defined(_WIN32) && defined(DEBUG_INFO)
|
#if defined(_WIN32) && defined(DEBUG_INFO)
|
||||||
@ -87,8 +105,6 @@ bool AppControl::Init()
|
|||||||
QString dir = GetDecodeScriptDir();
|
QString dir = GetDecodeScriptDir();
|
||||||
strcpy(path, dir.toUtf8().data());
|
strcpy(path, dir.toUtf8().data());
|
||||||
|
|
||||||
dsv_info("Decode script files directory:\"%s\"", dir.toUtf8().data());
|
|
||||||
|
|
||||||
// Initialise libsigrokdecode
|
// Initialise libsigrokdecode
|
||||||
if (srd_init(path) != SRD_OK)
|
if (srd_init(path) != SRD_OK)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user