diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-04 01:17:28 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-04 01:19:04 +0100 |
commit | 87dd9515052661e622587cafcf972ea1beee8195 (patch) | |
tree | b0e491c544180a9629f78b4fb9df3a383858b26b /api/logic/BaseInstance.cpp | |
parent | 3780a25d27ae5c803ce9ed075928fff365104987 (diff) | |
download | PrismLauncher-87dd9515052661e622587cafcf972ea1beee8195.tar.gz PrismLauncher-87dd9515052661e622587cafcf972ea1beee8195.tar.bz2 PrismLauncher-87dd9515052661e622587cafcf972ea1beee8195.zip |
NOISSUE add a badge for crashed instances
Not persistent across MultiMC runs.
Diffstat (limited to 'api/logic/BaseInstance.cpp')
-rw-r--r-- | api/logic/BaseInstance.cpp | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/api/logic/BaseInstance.cpp b/api/logic/BaseInstance.cpp index b499c106..b7a7f9fd 100644 --- a/api/logic/BaseInstance.cpp +++ b/api/logic/BaseInstance.cpp @@ -172,44 +172,9 @@ SettingsObjectPtr BaseInstance::settings() const return m_settings; } -BaseInstance::InstanceFlags BaseInstance::flags() const -{ - return m_flags; -} - -void BaseInstance::setFlags(const InstanceFlags &flags) -{ - if (flags != m_flags) - { - m_flags = flags; - emit flagsChanged(); - emit propertiesChanged(this); - } -} - -void BaseInstance::setFlag(const BaseInstance::InstanceFlag flag) -{ - // nothing to set? - if(flag & m_flags) - return; - m_flags |= flag; - emit flagsChanged(); - emit propertiesChanged(this); -} - -void BaseInstance::unsetFlag(const BaseInstance::InstanceFlag flag) -{ - // nothing to unset? - if(!(flag & m_flags)) - return; - m_flags &= ~flag; - emit flagsChanged(); - emit propertiesChanged(this); -} - bool BaseInstance::canLaunch() const { - return (!(flags() & VersionBrokenFlag)) && (!isRunning()); + return (!hasVersionBroken() && !isRunning()); } bool BaseInstance::reload() |