feat: writeable pack entry points cleanup

This commit is contained in:
MihailRis 2025-03-12 23:42:40 +03:00
parent 4b09b108fd
commit 794d1d71f5

View File

@ -186,6 +186,9 @@ void EnginePaths::setContentPacks(std::vector<ContentPack>* contentPacks) {
for (const auto& id : contentEntryPoints) {
io::remove_device(id);
}
for (const auto& [_, entryPoint] : writeablePacks) {
io::remove_device(entryPoint);
}
contentEntryPoints.clear();
this->contentPacks = contentPacks;
// Create content devices