sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#include "tools/replay/filereader.h"
|
||||
|
||||
#include "common/util.h"
|
||||
#include "tools/replay/py_downloader.h"
|
||||
|
||||
std::string FileReader::read(const std::string &file, std::atomic<bool> *abort) {
|
||||
const bool is_remote = (file.find("https://") == 0) || (file.find("http://") == 0);
|
||||
if (is_remote) {
|
||||
std::string local_path = PyDownloader::download(file, cache_to_local_, abort);
|
||||
if (local_path.empty()) return {};
|
||||
return util::read_file(local_path);
|
||||
}
|
||||
return util::read_file(file);
|
||||
}
|
||||
Reference in new issue
Block a user