2022-10-23 00:20:32 +05:30
|
|
|
//
|
|
|
|
// Created by marcelohdez on 10/22/22.
|
|
|
|
//
|
|
|
|
|
2022-10-29 10:25:33 +05:30
|
|
|
#pragma once
|
2022-10-23 00:20:32 +05:30
|
|
|
|
2022-10-26 09:50:36 +05:30
|
|
|
#include <QStringList>
|
|
|
|
|
2022-10-23 00:20:32 +05:30
|
|
|
struct InstanceCopyPrefs {
|
2022-10-29 10:25:33 +05:30
|
|
|
public:
|
|
|
|
[[nodiscard]] bool allTrue() const;
|
|
|
|
[[nodiscard]] QString getSelectedFiltersAsRegex() const;
|
2023-02-10 08:18:40 +05:30
|
|
|
[[nodiscard]] QString getSelectedFiltersAsRegex(const QStringList& additionalFilters) const;
|
2022-10-29 10:25:33 +05:30
|
|
|
// 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;
|
2022-10-30 07:57:31 +05:30
|
|
|
[[nodiscard]] bool isCopyScreenshotsEnabled() const;
|
2023-02-10 04:49:38 +05:30
|
|
|
[[nodiscard]] bool isUseSymLinksEnabled() const;
|
2023-02-09 07:09:17 +05:30
|
|
|
[[nodiscard]] bool isLinkRecursivelyEnabled() const;
|
2023-02-07 12:35:06 +05:30
|
|
|
[[nodiscard]] bool isUseHardLinksEnabled() const;
|
2023-02-09 04:00:45 +05:30
|
|
|
[[nodiscard]] bool isDontLinkSavesEnabled() const;
|
2023-02-09 14:32:40 +05:30
|
|
|
[[nodiscard]] bool isUseCloneEnabled() const;
|
2022-10-29 10:25:33 +05:30
|
|
|
// 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);
|
2022-10-30 07:57:31 +05:30
|
|
|
void enableCopyScreenshots(bool b);
|
2023-02-10 04:49:38 +05:30
|
|
|
void enableUseSymLinks(bool b);
|
2023-02-09 07:09:17 +05:30
|
|
|
void enableLinkRecursively(bool b);
|
2023-02-07 12:35:06 +05:30
|
|
|
void enableUseHardLinks(bool b);
|
2023-02-09 04:00:45 +05:30
|
|
|
void enableDontLinkSaves(bool b);
|
2023-02-09 14:32:40 +05:30
|
|
|
void enableUseClone(bool b);
|
2022-10-29 10:25:33 +05:30
|
|
|
|
|
|
|
protected: // data
|
2022-10-23 09:55:38 +05:30
|
|
|
bool copySaves = true;
|
|
|
|
bool keepPlaytime = true;
|
|
|
|
bool copyGameOptions = true;
|
|
|
|
bool copyResourcePacks = true;
|
|
|
|
bool copyShaderPacks = true;
|
|
|
|
bool copyServers = true;
|
|
|
|
bool copyMods = true;
|
2022-10-30 07:57:31 +05:30
|
|
|
bool copyScreenshots = true;
|
2023-02-10 04:49:38 +05:30
|
|
|
bool useSymLinks = false;
|
2023-02-09 07:09:17 +05:30
|
|
|
bool linkRecursively = false;
|
2023-02-07 12:35:06 +05:30
|
|
|
bool useHardLinks = false;
|
2023-02-09 04:00:45 +05:30
|
|
|
bool dontLinkSaves = false;
|
2023-02-09 14:32:40 +05:30
|
|
|
bool useClone = false;
|
2022-10-23 00:20:32 +05:30
|
|
|
};
|