MCPcopy Create free account
hub / github.com/MultiMC/Launcher / encodeBaseFile

Function encodeBaseFile

launcher/updater/DownloadTask_test.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11using namespace GoUpdate;
12
13FileSourceList encodeBaseFile(const char *suffix)
14{
15 auto base = QDir::currentPath();
16 QUrl localFile = QUrl::fromLocalFile(base + suffix);
17 QString localUrlString = localFile.toString(QUrl::FullyEncoded);
18 auto item = FileSource("http", localUrlString);
19 return FileSourceList({item});
20}
21
22Q_DECLARE_METATYPE(VersionFileList)
23Q_DECLARE_METATYPE(Operation)

Callers 1

Calls 2

FileSourceClass · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected