Implement Instance launching
Use --launch <instance> to test
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user