mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
Properly detect if the instance is vanilla and don't treat it as custom.
This commit is contained in:
parent
fd6706391b
commit
814d5d3315
6 changed files with 23 additions and 2 deletions
|
|
@ -157,8 +157,11 @@ bool InstanceVersion::removeFtbPack()
|
|||
bool InstanceVersion::isVanilla()
|
||||
{
|
||||
QDir patches(PathCombine(m_instance->instanceRoot(), "patches/"));
|
||||
if(VersionPatches.size() >= 1)
|
||||
return false;
|
||||
for(auto patchptr: VersionPatches)
|
||||
{
|
||||
if(patchptr->isCustom())
|
||||
return false;
|
||||
}
|
||||
if(QFile::exists(PathCombine(m_instance->instanceRoot(), "custom.json")))
|
||||
return false;
|
||||
if(QFile::exists(PathCombine(m_instance->instanceRoot(), "version.json")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue