Skip to content

Commit

Permalink
Add GameVersion field to newly created mods
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Sep 22, 2024
1 parent 39e7cd3 commit 36acc02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Mods/Alpakit/Source/Alpakit/Private/ModMetadataObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
UModMetadataObject::UModMetadataObject(const FObjectInitializer& ObjectInitializer)
{
Category = TEXT("Modding"); // Group all mods in this category
GameVersion = FString::Printf(TEXT(">=%s"), *FAlpakitModule::GetCurrentGameVersion());
}

void UModMetadataObject::PopulateFromDescriptor(const FPluginDescriptor& InDescriptor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ void FModWizardDefinition::PluginCreated(const FString& PluginName, bool bWasSuc
Descriptor.FriendlyName = PluginName;
}
Descriptor.AdditionalFieldsToWrite.Add( TEXT("SemVersion"), MakeShared<FJsonValueString>( TEXT("1.0.0") ) );
Descriptor.AdditionalFieldsToWrite.Add( TEXT("GameVersion"), MakeShared<FJsonValueString>(FString::Printf(TEXT(">=%s"), *FAlpakitModule::GetCurrentGameVersion())) );
Descriptor.VersionName = TEXT("1.0.0");
Descriptor.Version = 1;
Descriptor.Category = TEXT("Modding");
Expand Down

0 comments on commit 36acc02

Please sign in to comment.