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

Function getLevelDatFromFS

launcher/minecraft/World.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140QString getLevelDatFromFS(const QFileInfo &file)
141{
142 QDir worldDir(file.filePath());
143 if(!file.isDir() || !worldDir.exists("level.dat"))
144 {
145 return QString();
146 }
147 return worldDir.absoluteFilePath("level.dat");
148}
149
150QByteArray getLevelDatDataFromFS(const QFileInfo &file)
151{

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