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

Method readFromFS

launcher/minecraft/World.cpp:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void World::readFromFS(const QFileInfo &file)
269{
270 auto bytes = getLevelDatDataFromFS(file);
271 if(bytes.isEmpty())
272 {
273 is_valid = false;
274 return;
275 }
276 loadFromLevelDat(bytes);
277 levelDatTime = file.lastModified();
278}
279
280void World::readFromZip(const QFileInfo &file)
281{

Callers

nothing calls this directly

Calls 2

getLevelDatDataFromFSFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected