mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
feat: writeable pack entry points cleanup
This commit is contained in:
parent
4b09b108fd
commit
794d1d71f5
1 changed files with 3 additions and 0 deletions
|
|
@ -186,6 +186,9 @@ void EnginePaths::setContentPacks(std::vector<ContentPack>* contentPacks) {
|
||||||
for (const auto& id : contentEntryPoints) {
|
for (const auto& id : contentEntryPoints) {
|
||||||
io::remove_device(id);
|
io::remove_device(id);
|
||||||
}
|
}
|
||||||
|
for (const auto& [_, entryPoint] : writeablePacks) {
|
||||||
|
io::remove_device(entryPoint);
|
||||||
|
}
|
||||||
contentEntryPoints.clear();
|
contentEntryPoints.clear();
|
||||||
this->contentPacks = contentPacks;
|
this->contentPacks = contentPacks;
|
||||||
// Create content devices
|
// Create content devices
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue