I believe we now have a semi-working graphics profiles and the ability to switch between them!

This commit is contained in:
Jordon Brooks 2024-05-15 17:44:04 +01:00
parent b8f67c33dc
commit d4ac87e36d
Signed by: jordon
GPG key ID: DBD9758CD53E786A
3 changed files with 100 additions and 20 deletions

View file

@ -26,9 +26,6 @@ public:
UFUNCTION(BlueprintCallable, Category="HarmonyLink Settings")
void SaveConfig() const;
UFUNCTION(BlueprintCallable, Category="HarmonyLink Settings", meta=(bCheckForCommandLineOverrides=true))
void ApplySettings(bool bCheckForCommandLineOverrides = true);
/** Returns the game local machine settings (resolution, windowing mode, scalability settings, etc...) */
UFUNCTION(BlueprintCallable, Category="HarmonyLink Settings")
static UHarmonyLinkGraphics* GetSettings();
@ -41,10 +38,12 @@ private:
bool LoadSection(const FConfigFile& ConfigFile, const TPair<EProfile, FName> Profile);
void SaveSection(FSettingsProfile& SettingsProfile, const bool bFlush = false) const;
void LoadDefaults();
void ApplyProfile(EProfile Profile);
bool ApplyProfile(EProfile Profile);
static void ResetInstance();
static void ApplySetting(const TPair<FName, FHLConfigValue>& Setting);
// Debugging
void DebugPrintProfiles() const;
static void PrintDebugSection(FSettingsProfile& SettingsProfile);