#include #include #include #include #include #include void ResourcePackRepository::setCustomResourcePackPath(PackType type, const std::string& path) { auto CompositePack = dAccess(this, ll::offset::RESOURCEPACKREPOSITORYAPI_setCustomResourcePackPath); auto PackSourceFactory = getPackSourceFactory(); auto& DirectoryPackSource = PackSourceFactory->createDirectoryPackSource(Core::Path(path), type, PackOrigin::PackOrigin_Dev, 0); CompositePack->addPackSource((PackSource*)&DirectoryPackSource); refreshPacks(); }