MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / GetFirmwareDir

Function GetFirmwareDir

DSView/pv/config/appconfig.cpp:498–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498QString GetFirmwareDir()
499{
500 QDir dir1 = GetAppDataDir() + "/res";
501 // ./res
502 if (dir1.exists()){
503 return dir1.absolutePath();
504 }
505
506 QDir dir(QCoreApplication::applicationDirPath());
507 // ../share/DSView/res
508 if (dir.cd("..") && dir.cd("share") && dir.cd("DSView") && dir.cd("res"))
509 {
510 return dir.absolutePath();
511 }
512
513 dsv_err("%s%s", "Resource directory is not exists:", dir1.absolutePath().toUtf8().data());
514 return dir1.absolutePath();
515}
516
517QString GetUserDataDir()
518{

Callers 5

InitMethod · 0.85
initMethod · 0.85
load_device_configMethod · 0.85
genDefaultSessionFileMethod · 0.85

Calls 2

GetAppDataDirFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected