Skip to content

Commit

Permalink
create presets into game content, as we have removed plugin content
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpingsx committed Jan 13, 2023
1 parent aab2f52 commit 5e2da0e
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,7 @@ FReply FTtsConfigurationDetailCustomization::OnCreatePresetButtonClicked()
{
const FString PresetAssetName = AvailableVoice.Name;

FString PackagePath = FString::Printf(TEXT("/Wit/Presets/%s"), *PresetAssetName);
#if WITH_VOICESDK_MARKETPLACE
PackagePath = FString::Printf(TEXT("/Game/VoiceSDK/Presets/%s"), *PresetAssetName);
#elif WITH_VOICESDK
PackagePath = FString::Printf(TEXT("/VoiceSDK/Presets/%s"), *PresetAssetName);
#endif
FString PackagePath = FString::Printf(TEXT("/Game/VoiceSDK/Presets/%s"), *PresetAssetName);

UPackage* PresetPackage = CreatePackage(*PackagePath);

Expand All @@ -276,7 +271,6 @@ FReply FTtsConfigurationDetailCustomization::OnCreatePresetButtonClicked()

(void)PresetAsset->MarkPackageDirty();
PresetPackage->MarkPackageDirty();


FAssetRegistryModule::AssetCreated(PresetAsset);
const FString PackageFileName = FPackageName::LongPackageNameToFilename(PackagePath, FPackageName::GetAssetPackageExtension());
Expand Down

0 comments on commit 5e2da0e

Please sign in to comment.