Skip to content

Commit

Permalink
feat: mod validation changes for 1.0 (#94)
Browse files Browse the repository at this point in the history
* feat: include iostore utoc and ucas as objects

* feat: replace Plugins with GameVersion as required
  • Loading branch information
mircearoata authored Oct 4, 2024
1 parent 8a62f77 commit 860757e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/uplugin-json-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"required": [
"FileVersion",
"Version",
"Plugins"
"GameVersion"
],
"properties": {
"CanContainContent": {
Expand Down
2 changes: 1 addition & 1 deletion validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func validateUPluginJSON(ctx context.Context, archive *zip.Reader, uPluginFile *
if file != nil {
splitName := strings.Split(file.Name, ".")
extension := splitName[len(splitName)-1]
if extension == "pak" {
if extension == "pak" || extension == "utoc" || extension == "ucas" {
modInfo.Objects = append(modInfo.Objects, ModObject{
Path: file.Name,
Type: "pak",
Expand Down

0 comments on commit 860757e

Please sign in to comment.