2022-10-22 19:50:32 +01:00
|
|
|
//
|
|
|
|
// Created by marcelohdez on 10/22/22.
|
|
|
|
//
|
|
|
|
|
2022-10-29 05:55:33 +01:00
|
|
|
#pragma once
|
2022-10-22 19:50:32 +01:00
|
|
|
|
2022-10-26 05:20:36 +01:00
|
|
|
#include <QStringList>
|
|
|
|
|
2022-10-22 19:50:32 +01:00
|
|
|
struct InstanceCopyPrefs {
|
2022-10-29 05:55:33 +01:00
|
|
|
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;
|
2022-10-30 02:27:31 +00:00
|
|
|
[[nodiscard]] bool isCopyScreenshotsEnabled() const;
|
2023-02-07 07:05:06 +00:00
|
|
|
[[nodiscard]] bool isLinkFilesEnabled() const;
|
|
|
|
[[nodiscard]] bool isUseHardLinksEnabled() const;
|
|
|
|
[[nodiscard]] bool isLinkWorldsEnabled() const;
|
2022-10-29 05:55:33 +01:00
|
|
|
// 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 02:27:31 +00:00
|
|
|
void enableCopyScreenshots(bool b);
|
2023-02-07 07:05:06 +00:00
|
|
|
void enableLinkFiles(bool b);
|
|
|
|
void enableUseHardLinks(bool b);
|
|
|
|
void enableLinkWorlds(bool b);
|
2022-10-29 05:55:33 +01:00
|
|
|
|
|
|
|
protected: // data
|
2022-10-23 05:25:38 +01:00
|
|
|
bool copySaves = true;
|
|
|
|
bool keepPlaytime = true;
|
|
|
|
bool copyGameOptions = true;
|
|
|
|
bool copyResourcePacks = true;
|
|
|
|
bool copyShaderPacks = true;
|
|
|
|
bool copyServers = true;
|
|
|
|
bool copyMods = true;
|
2022-10-30 02:27:31 +00:00
|
|
|
bool copyScreenshots = true;
|
2023-02-07 07:05:06 +00:00
|
|
|
bool linkFiles = false;
|
|
|
|
bool useHardLinks = false;
|
|
|
|
bool linkWorlds = true;
|
2022-10-22 19:50:32 +01:00
|
|
|
};
|