MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getLevelDatFromFS

Function getLevelDatFromFS

launcher/minecraft/World.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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