MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getLevelDatFromFS

Function getLevelDatFromFS

launcher/minecraft/World.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161QString getLevelDatFromFS(const QFileInfo &file)
162{
163 QDir worldDir(file.filePath());
164 if(!file.isDir() || !worldDir.exists("level.dat"))
165 {
166 return QString();
167 }
168 return worldDir.absoluteFilePath("level.dat");
169}
170
171QByteArray getLevelDatDataFromFS(const QFileInfo &file)
172{

Callers 2

getLevelDatDataFromFSFunction · 0.85
putLevelDatDataToFSFunction · 0.85

Calls 3

QStringClass · 0.85
filePathMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected