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

Function getLevelDatDataFromFS

launcher/minecraft/World.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167QByteArray getLevelDatDataFromFS(const QFileInfo& file)
168{
169 auto fullFilePath = getLevelDatFromFS(file);
170 if (fullFilePath.isNull()) {
171 return QByteArray();
172 }
173 QFile f(fullFilePath);
174 if (!f.open(QIODevice::ReadOnly)) {
175 return QByteArray();
176 }
177 return f.readAll();
178}
179
180bool putLevelDatDataToFS(const QFileInfo& file, QByteArray& data)
181{

Callers 2

readFromFSMethod · 0.85
renameMethod · 0.85

Calls 2

getLevelDatFromFSFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected