Changeset 8936 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
May 22, 2020, 10:24:33 AM (4 years ago)
Author:
stuerze
Message:

minor changes to allow/check for local skl files that have lower and upper cases in the basename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r8792 r8936  
    217217  // Read the local file
    218218  // -------------------
    219   QFile skl(_sklName);
     219  QFile skl(_localSklName), sklAlt(_localSklNameAlternative);
    220220  if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) {
    221221    QTextStream in(&skl);
     222    if (_sklHeader.read(&in) == success) {
     223      readDone = true;
     224    }
     225  } else if ( sklAlt.exists() && sklAlt.open(QIODevice::ReadOnly) ) {
     226    QTextStream in(&sklAlt);
    222227    if (_sklHeader.read(&in) == success) {
    223228      readDone = true;
     
    372377  QString sklExt = settings.value("rnxSkel").toString();
    373378  if (!sklExt.isEmpty()) {
    374     _sklName = path + ID + distStr + "." + sklExt;
     379    _localSklName            = path + ID           + distStr + "." + sklExt;
     380    _localSklNameAlternative = path + ID.toLower() + distStr + "." + sklExt;
    375381  }
    376382
Note: See TracChangeset for help on using the changeset viewer.