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

Function GetDecodeScriptDir

DSView/pv/config/appconfig.cpp:526–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526QString GetDecodeScriptDir()
527{
528 QString path = GetAppDataDir() + "/decoders";
529
530 QDir dir1;
531 // ./decoders
532 if (dir1.exists(path))
533 {
534 return path; QColor GetStyleColor();
535 }
536
537 QDir dir(QCoreApplication::applicationDirPath());
538 // ../share/libsigrokdecode4DSL/decoders
539 if (dir.cd("..") && dir.cd("share") && dir.cd("libsigrokdecode4DSL") && dir.cd("decoders"))
540 {
541 return dir.absolutePath();
542 }
543 return "";
544}
545
546QString GetProfileDir()
547{

Callers 1

InitMethod · 0.85

Calls 1

GetAppDataDirFunction · 0.85

Tested by

no test coverage detected