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

Method replace

launcher/minecraft/World.cpp:532–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532bool World::replace(World &with)
533{
534 if (!destroy())
535 return false;
536 bool success = FS::copy(with.m_containerFile.filePath(), m_containerFile.path())();
537 if (success)
538 {
539 m_folderName = with.m_folderName;
540 m_containerFile.refresh();
541 }
542 return success;
543}
544
545bool World::destroy()
546{

Callers 12

loadIndexedPackMethod · 0.45
loadVersionModFunction · 0.45
PackInstallTaskMethod · 0.45
deleteExistingFilesMethod · 0.45
detectLibraryMethod · 0.45
downloadPackMethod · 0.45
foreachFunction · 0.45
getApplicableFilesMethod · 0.45
getDownloadsMethod · 0.45
toPathMethod · 0.45
applyModsMethod · 0.45
applyLibraryMethod · 0.45

Calls 4

copyClass · 0.85
filePathMethod · 0.80
pathMethod · 0.80
refreshMethod · 0.45

Tested by 1

toPathMethod · 0.36