mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-05 07:08:46 +00: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();
|
const UClass* Class = ConfigClass.Get();
|
||||||
|
|
||||||
@@ -897,8 +897,8 @@ UCogCommonConfig* UCogSubsystem::GetConfig(const TSubclassOf<UCogCommonConfig> C
|
|||||||
}
|
}
|
||||||
|
|
||||||
UCogCommonConfig* Config = NewObject<UCogCommonConfig>(this, Class);
|
UCogCommonConfig* Config = NewObject<UCogCommonConfig>(this, Class);
|
||||||
//Config->Reset();
|
Config->Reset();
|
||||||
//Config->ReloadConfig();
|
Config->ReloadConfig();
|
||||||
|
|
||||||
Configs.Add(Config);
|
Configs.Add(Config);
|
||||||
return Config;
|
return Config;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public:
|
|||||||
|
|
||||||
const UCogWindowConfig_Settings* GetSettings() const { return Settings.Get(); }
|
const UCogWindowConfig_Settings* GetSettings() const { return Settings.Get(); }
|
||||||
|
|
||||||
UCogCommonConfig* GetConfig(const TSubclassOf<UCogCommonConfig> ConfigClass);
|
UCogCommonConfig* GetConfig(const TSubclassOf<UCogCommonConfig>& ConfigClass);
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
T* GetConfig();
|
T* GetConfig();
|
||||||
|
|||||||
Reference in New Issue
Block a user