diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-11-06 01:10:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 01:10:24 +0100 |
commit | 9fb80a268750866e2fdcb677ffa9b1bcfcf19ff5 (patch) | |
tree | fa9400f75ba7ce9c14ac27c2fd85ab32f0a30d8b /launcher/InstanceCopyPrefs.h | |
parent | e68fd7c1e335bd720ed997d40f7fb470947ea047 (diff) | |
parent | 5d1aac3c53904f7c843dc5cfdbdd33086eb4b6d6 (diff) | |
download | PrismLauncher-9fb80a268750866e2fdcb677ffa9b1bcfcf19ff5.tar.gz PrismLauncher-9fb80a268750866e2fdcb677ffa9b1bcfcf19ff5.tar.bz2 PrismLauncher-9fb80a268750866e2fdcb677ffa9b1bcfcf19ff5.zip |
Merge pull request #242 from marcelohdez/more-copy-options
Diffstat (limited to 'launcher/InstanceCopyPrefs.h')
-rw-r--r-- | launcher/InstanceCopyPrefs.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/launcher/InstanceCopyPrefs.h b/launcher/InstanceCopyPrefs.h new file mode 100644 index 00000000..6988b2df --- /dev/null +++ b/launcher/InstanceCopyPrefs.h @@ -0,0 +1,41 @@ +// +// Created by marcelohdez on 10/22/22. +// + +#pragma once + +#include <QStringList> + +struct InstanceCopyPrefs { + public: + [[nodiscard]] bool allTrue() const; + [[nodiscard]] QString getSelectedFiltersAsRegex() const; + // Getters + [[nodiscard]] bool isCopySavesEnabled() const; + [[nodiscard]] bool isKeepPlaytimeEnabled() const; + [[nodiscard]] bool isCopyGameOptionsEnabled() const; + [[nodiscard]] bool isCopyResourcePacksEnabled() const; + [[nodiscard]] bool isCopyShaderPacksEnabled() const; + [[nodiscard]] bool isCopyServersEnabled() const; + [[nodiscard]] bool isCopyModsEnabled() const; + [[nodiscard]] bool isCopyScreenshotsEnabled() const; + // Setters + void enableCopySaves(bool b); + void enableKeepPlaytime(bool b); + void enableCopyGameOptions(bool b); + void enableCopyResourcePacks(bool b); + void enableCopyShaderPacks(bool b); + void enableCopyServers(bool b); + void enableCopyMods(bool b); + void enableCopyScreenshots(bool b); + + protected: // data + bool copySaves = true; + bool keepPlaytime = true; + bool copyGameOptions = true; + bool copyResourcePacks = true; + bool copyShaderPacks = true; + bool copyServers = true; + bool copyMods = true; + bool copyScreenshots = true; +}; |