Implement Instance launching

Use --launch <instance> to test
This commit is contained in:
Orochimarufan
2013-02-22 16:17:31 +01:00
parent eda7b6cf9d
commit 9f174ad4e7
8 changed files with 425 additions and 20 deletions

View File

@ -339,4 +339,7 @@ private:
QString m_rootDir;
};
// pointer for lazy people
typedef QSharedPointer<Instance> InstancePtr;
#endif // INSTANCE_H

View File

@ -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