mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-29 22:24:26 +02:00
remove defaults blocked list
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
82e59658d5
commit
9d25680587
@ -82,14 +82,6 @@ ExportPackDialog::ExportPackDialog(InstancePtr instance, QWidget* parent, ModPla
|
||||
loadPackIgnore();
|
||||
|
||||
const QDir::Filters filter(QDir::AllEntries | QDir::NoDotAndDotDot | QDir::AllDirs | QDir::Hidden);
|
||||
if (m_proxy->blockedPaths().leaf()) { // only add this if the list is empty
|
||||
const QDir gameRoot(instance->gameRoot());
|
||||
for (const QString& file : gameRoot.entryList(filter)) {
|
||||
if (!(file == "mods" || file == "coremods" || file == "datapacks" || file == "config" || file == "options.txt" ||
|
||||
file == "servers.dat"))
|
||||
m_proxy->blockedPaths().insert(FS::PathCombine(prefix, file));
|
||||
}
|
||||
}
|
||||
|
||||
MinecraftInstance* mcInstance = dynamic_cast<MinecraftInstance*>(instance.get());
|
||||
if (mcInstance) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user