Skip to content

Commit

Permalink
disallow overriding engine licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranke committed Dec 12, 2024
1 parent 054d5f4 commit 3794222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/godot_licensing/godot_licensing.gd
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func add_copyright(copyright: Dictionary) -> void:
func add_license(license: Dictionary) -> void:
assert(license.has(&"name"), "Expected key: 'name'.")
assert(license.has(&"text"), "Expected key: 'text'.")
assert(license.name not in _engine_licenses, "Overriding engine license '%s' is not allowed." % license.name)
_custom_licenses[license.name] = license.text


Expand Down

0 comments on commit 3794222

Please sign in to comment.