From 5c4006ee5fe345dfc0973017ea569d028d4cf2d9 Mon Sep 17 00:00:00 2001 From: Christian Heimlich Date: Fri, 28 Jun 2024 22:39:16 -0400 Subject: [PATCH] Make fpfssBaseUrl preference optional since Ultimate is missing it --- lib/include/fp/fp-install.h | 3 ++- lib/include/fp/settings/fp-preferences.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/include/fp/fp-install.h b/lib/include/fp/fp-install.h index d732911..adf2109 100644 --- a/lib/include/fp/fp-install.h +++ b/lib/include/fp/fp-install.h @@ -78,7 +78,8 @@ class FP_FP_EXPORT Install { friend class Toolkit; //-Class Enums--------------------------------------------------------------------------------------------------- -enum class Edition {Ultimate, Infinity, Core}; +public: + enum class Edition {Ultimate, Infinity, Core}; //-Class Variables----------------------------------------------------------------------------------------------- public: // Ugh diff --git a/lib/include/fp/settings/fp-preferences.h b/lib/include/fp/settings/fp-preferences.h index a16c615..d3f2819 100644 --- a/lib/include/fp/settings/fp-preferences.h +++ b/lib/include/fp/settings/fp-preferences.h @@ -41,7 +41,7 @@ struct FP_FP_EXPORT GameMetadataSource struct FP_FP_EXPORT Preferences : public Settings { - QString fpfssBaseUrl; + std::optional fpfssBaseUrl; QHash gameDataSources; QHash gameMetadataSources; QString imageFolderPath;