mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Re-enable the reset Configs on load to make sure they get their default values
This commit is contained in:
@@ -886,7 +886,7 @@ void UCogSubsystem::SortCommands(UPlayerInput* PlayerInput)
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
UCogCommonConfig* UCogSubsystem::GetConfig(const TSubclassOf<UCogCommonConfig> ConfigClass)
|
||||
UCogCommonConfig* UCogSubsystem::GetConfig(const TSubclassOf<UCogCommonConfig>& ConfigClass)
|
||||
{
|
||||
const UClass* Class = ConfigClass.Get();
|
||||
|
||||
@@ -897,8 +897,8 @@ UCogCommonConfig* UCogSubsystem::GetConfig(const TSubclassOf<UCogCommonConfig> C
|
||||
}
|
||||
|
||||
UCogCommonConfig* Config = NewObject<UCogCommonConfig>(this, Class);
|
||||
//Config->Reset();
|
||||
//Config->ReloadConfig();
|
||||
Config->Reset();
|
||||
Config->ReloadConfig();
|
||||
|
||||
Configs.Add(Config);
|
||||
return Config;
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
const UCogWindowConfig_Settings* GetSettings() const { return Settings.Get(); }
|
||||
|
||||
UCogCommonConfig* GetConfig(const TSubclassOf<UCogCommonConfig> ConfigClass);
|
||||
UCogCommonConfig* GetConfig(const TSubclassOf<UCogCommonConfig>& ConfigClass);
|
||||
|
||||
template<class T>
|
||||
T* GetConfig();
|
||||
|
||||
Reference in New Issue
Block a user