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

Method readFromFS

launcher/minecraft/World.cpp:251–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void World::readFromFS(const QFileInfo& file)
252{
253 auto bytes = getLevelDatDataFromFS(file);
254 if (bytes.isEmpty()) {
255 is_valid = false;
256 return;
257 }
258 loadFromLevelDat(bytes);
259 levelDatTime = file.lastModified();
260}
261
262void World::readFromZip(const QFileInfo& file)
263{

Callers

nothing calls this directly

Calls 2

getLevelDatDataFromFSFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected