mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 05:16:59 +03:00
Implement Instance launching
Use --launch <instance> to test
This commit is contained in:
parent
eda7b6cf9d
commit
9f174ad4e7
8 changed files with 425 additions and 20 deletions
|
|
@ -339,4 +339,7 @@ private:
|
|||
QString m_rootDir;
|
||||
};
|
||||
|
||||
// pointer for lazy people
|
||||
typedef QSharedPointer<Instance> InstancePtr;
|
||||
|
||||
#endif // INSTANCE_H
|
||||
|
|
|
|||
|
|
@ -50,13 +50,9 @@ QString Instance::minecraftDir() const
|
|||
QFileInfo dotMCDir(PathCombine(rootDir(), ".minecraft"));
|
||||
|
||||
if (dotMCDir.exists() && !mcDir.exists())
|
||||
{
|
||||
return dotMCDir.path();
|
||||
}
|
||||
return dotMCDir.filePath();
|
||||
else
|
||||
{
|
||||
return mcDir.path();
|
||||
}
|
||||
return mcDir.filePath();
|
||||
}
|
||||
|
||||
QString Instance::binDir() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue