From 794d1d71f5ef83e1548e7afa1880294481c626d7 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 12 Mar 2025 23:42:40 +0300 Subject: [PATCH] feat: writeable pack entry points cleanup --- src/io/engine_paths.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io/engine_paths.cpp b/src/io/engine_paths.cpp index 147f4f89..03973d60 100644 --- a/src/io/engine_paths.cpp +++ b/src/io/engine_paths.cpp @@ -186,6 +186,9 @@ void EnginePaths::setContentPacks(std::vector* 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