mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 20:06:58 +03:00
Parsing the version files, part III
This commit is contained in:
parent
97cf08f964
commit
a7a84d4dbb
8 changed files with 214 additions and 94 deletions
|
|
@ -116,8 +116,11 @@ class LIBMULTIMC_EXPORT Instance : public QObject
|
|||
*/
|
||||
Q_PROPERTY(qint64 lastCurrentVersionUpdate READ lastCurrentVersionUpdate WRITE setLastCurrentVersionUpdate)
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
* Is the instance a new launcher instance? Get/Set
|
||||
*/
|
||||
Q_PROPERTY(bool isForNewLauncher READ isForNewLauncher WRITE setIsForNewLauncher)
|
||||
|
||||
// Dirs
|
||||
//! Path to the instance's .minecraft folder.
|
||||
Q_PROPERTY(QString minecraftDir READ minecraftDir STORED false)
|
||||
|
|
@ -250,6 +253,15 @@ public:
|
|||
virtual qint64 lastCurrentVersionUpdate() const { return settings().get("lastVersionUpdate").value<qint64>(); }
|
||||
virtual void setLastCurrentVersionUpdate(qint64 val) { settings().set("lastVersionUpdate", val); }
|
||||
|
||||
virtual bool isForNewLauncher()
|
||||
{
|
||||
return settings().get("IsForNewLauncher").value<bool>();
|
||||
}
|
||||
|
||||
virtual void setIsForNewLauncher(bool value = true)
|
||||
{
|
||||
settings().set("IsForNewLauncher", value);
|
||||
}
|
||||
|
||||
////// Directories //////
|
||||
QString minecraftDir() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue