MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / getDatDataFromFS

Function getDatDataFromFS

launcher/minecraft/World.cpp:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170QByteArray getDatDataFromFS(const QFileInfo& root, QString file)
171{
172 auto fullFilePath = getDatFromFS(root, file);
173 if (fullFilePath.isNull()) {
174 return QByteArray();
175 }
176 QFile f(fullFilePath);
177 if (!f.open(QIODevice::ReadOnly)) {
178 return QByteArray();
179 }
180 return f.readAll();
181}
182
183QByteArray getLevelDatDataFromFS(const QFileInfo& file)
184{

Callers 2

getLevelDatDataFromFSFunction · 0.85
getWorldGenDataFromFSFunction · 0.85

Calls 4

getDatFromFSFunction · 0.85
QByteArrayClass · 0.85
readAllMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected