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

Method readFromFS

launcher/minecraft/World.cpp:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void World::readFromFS(const QFileInfo &file)
227{
228 auto bytes = getLevelDatDataFromFS(file);
229 if(bytes.isEmpty())
230 {
231 is_valid = false;
232 return;
233 }
234 loadFromLevelDat(bytes);
235 levelDatTime = file.lastModified();
236}
237
238void World::readFromZip(const QFileInfo &file)
239{

Callers

nothing calls this directly

Calls 2

getLevelDatDataFromFSFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected