mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
fix the problem with replay routes locally (#24350)
fix: fix the problem with replay routes locally Co-authored-by: Anton Rudomaneko <anton.rudomanenko@nami.ru>
This commit is contained in:
committed by
GitHub
parent
7ff3e32c2b
commit
3bfe4a691c
@@ -77,7 +77,11 @@ bool Route::loadFromLocal() {
|
||||
}
|
||||
|
||||
void Route::addFileToSegment(int n, const QString &file) {
|
||||
const QString name = QUrl(file).fileName();
|
||||
QString name = QUrl(file).fileName();
|
||||
|
||||
const int pos = name.lastIndexOf("--");
|
||||
name = pos != -1 ? name.mid(pos + 2) : name;
|
||||
|
||||
if (name == "rlog.bz2") {
|
||||
segments_[n].rlog = file;
|
||||
} else if (name == "qlog.bz2") {
|
||||
|
||||
Reference in New Issue
Block a user