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

Method destroy

launcher/minecraft/World.cpp:545–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545bool World::destroy()
546{
547 if(!is_valid) return false;
548 if (m_containerFile.isDir())
549 {
550 QDir d(m_containerFile.filePath());
551 return d.removeRecursively();
552 }
553 else if(m_containerFile.isFile())
554 {
555 QFile file(m_containerFile.absoluteFilePath());
556 return file.remove();
557 }
558 return true;
559}
560
561bool World::operator==(const World &other) const
562{

Callers 2

deleteWorldMethod · 0.45
deleteWorldsMethod · 0.45

Calls 2

filePathMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected