RealtimeStyleTransferRuntime/Plugins/GameSubtitles/Source/Private/GameSubtitlesModule.cpp

27 lines
725 B
C++
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
2022-09-13 07:18:28 +00:00
#include "Containers/UnrealString.h"
2022-05-23 18:41:30 +00:00
#include "GameplayTagsManager.h"
2022-09-13 07:18:28 +00:00
#include "HAL/Platform.h"
2022-05-23 18:41:30 +00:00
#include "Misc/Paths.h"
2022-09-13 07:18:28 +00:00
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
2022-05-23 18:41:30 +00:00
class FGameSubtitlesModule : public IModuleInterface
{
public:
/** IModuleInterface implementation */
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
void FGameSubtitlesModule::StartupModule()
{
UGameplayTagsManager::Get().AddTagIniSearchPath(FPaths::ProjectPluginsDir() / TEXT("GameSubtitles/Config/Tags"));
}
void FGameSubtitlesModule::ShutdownModule()
{
}
IMPLEMENT_MODULE(FGameSubtitlesModule, GameSubtitles)