Changeset 10532 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Sep 13, 2024, 5:43:34 PM (7 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r10217 r10532 78 78 79 79 bncSettings settings; 80 _rnxScriptName = settings.value("rnxScript").toString(); 81 expandEnvVar(_rnxScriptName);82 80 _rnxScriptName = settings.value("rnxScript").toString(); expandEnvVar(_rnxScriptName); 81 _sklExt = settings.value("rnxSkel").toString(); 82 _sklPath = settings.value("rnxSkelPath").toString(); 83 83 _pgmName = QString(BNCPGMNAME).leftJustified(20, ' ', true); 84 84 #ifdef WIN32 … … 173 173 QUrl url; 174 174 int stIdLength = _mountPoint.path().length()-2; 175 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ". skl";176 staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ". skl";175 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + "." + _sklExt; 176 staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + "." + _sklExt; 177 177 if (url.port() == -1) { 178 178 if (sklDir.contains("https", Qt::CaseInsensitive)) { … … 377 377 // Local Skeleton file 378 378 // ------------------- 379 QString sklExt = settings.value("rnxSkel").toString(); 380 QString sklPath = settings.value("rnxSkelPath").toString(); 381 expandEnvVar(sklPath); 382 if (sklPath.length() > 0 && 383 sklPath[sklPath.length()-1] != QDir::separator()) { 384 sklPath += QDir::separator(); 385 } 386 if (sklPath.isEmpty()) { 387 sklPath = rnxPath; 388 } 389 _localSklName = sklPath + ID + distStr + "." + sklExt; 390 _localSklNameAlternative = sklPath + ID.toLower() + distStr + "." + sklExt; 379 expandEnvVar(_sklPath); 380 if (_sklPath.length() > 0 && 381 _sklPath[_sklPath.length()-1] != QDir::separator()) { 382 _sklPath += QDir::separator(); 383 } 384 if (_sklPath.isEmpty()) { 385 _sklPath = rnxPath; 386 } 387 _localSklName = _sklPath + ID + distStr + "." + _sklExt; 388 _localSklNameAlternative = _sklPath + ID.toLower() + distStr + "." + _sklExt; 391 389 392 390 if (_rnxVersion > 2) {
Note:
See TracChangeset
for help on using the changeset viewer.