Skip to content

Commit

Permalink
Merge pull request #5 from misleadingname/main
Browse files Browse the repository at this point in the history
Add a "gdweave_mod" group to every mod node.
  • Loading branch information
NotNite authored Oct 25, 2024
2 parents 4a0bfba + 3d2795c commit 159a4af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions GDWeave/Loader/PackFileLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ public IEnumerable<Token> Modify(string path, IEnumerable<Token> tokens) {
yield return new Token(TokenType.ParenthesisClose);
yield return token;

// mod.Manifest.Id.add_to_group("weave_mod")
yield return new IdentifierToken($"{mod.Manifest.Id}");
yield return new Token(TokenType.Period);
yield return new IdentifierToken("add_to_group");
yield return new Token(TokenType.ParenthesisOpen);
yield return new ConstantToken(new StringVariant("gdweave_mod"));
yield return new Token(TokenType.ParenthesisClose);
yield return token;

// mod.Manifest.Id.set_name("mod.Manifest.Id")
yield return new IdentifierToken($"{mod.Manifest.Id}");
yield return new Token(TokenType.Period);
Expand Down

0 comments on commit 159a4af

Please sign in to comment.