| 530 | } |
| 531 | |
| 532 | bool 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 | |
| 545 | bool World::destroy() |
| 546 | { |