Skip to content

Commit

Permalink
Add read/modify/delete support for short array tags. As this is nonst…
Browse files Browse the repository at this point in the history
…andard NBT, creation will not be supported. Will be changed in the future if Mojang updates their specification.
  • Loading branch information
jaquadro committed Apr 18, 2015
1 parent 2711053 commit 60a7bbf
Show file tree
Hide file tree
Showing 13 changed files with 644 additions and 562 deletions.
3 changes: 2 additions & 1 deletion NBTExplorer/Controllers/NodeTreeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,8 @@ private void InitializeIconRegistry ()
_iconRegistry.Register(typeof(CubicRegionDataNode), 11);
_iconRegistry.Register(typeof(NbtFileDataNode), 12);
_iconRegistry.Register(typeof(TagIntArrayDataNode), 14);
_iconRegistry.Register(typeof(RootDataNode), 16);
_iconRegistry.Register(typeof(TagShortArrayDataNode), 16);
_iconRegistry.Register(typeof(RootDataNode), 17);
}

private void UpdateNodeText (TreeNode node)
Expand Down
Binary file added NBTExplorer/Resources/edit-code-s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions NBTExplorer/Windows/CreateNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ private bool IsTagSizedType
switch (_type) {
case TagType.TAG_BYTE_ARRAY:
case TagType.TAG_INT_ARRAY:
case TagType.TAG_SHORT_ARRAY:
return true;
default:
return false;
Expand Down
1 change: 1 addition & 0 deletions NBTExplorer/Windows/FindReplace.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

624 changes: 312 additions & 312 deletions NBTExplorer/Windows/FindReplace.resx

Large diffs are not rendered by default.

33 changes: 17 additions & 16 deletions NBTExplorer/Windows/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NBTExplorer/Windows/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ static MainForm ()
_tagIconIndex[TagType.TAG_LIST] = 8;
_tagIconIndex[TagType.TAG_COMPOUND] = 9;
_tagIconIndex[TagType.TAG_INT_ARRAY] = 14;
_tagIconIndex[TagType.TAG_SHORT_ARRAY] = 16;
}
catch (Exception e) {
Program.StaticInitFailure(e);
Expand Down Expand Up @@ -151,6 +152,7 @@ private void InitializeIconRegistry ()
_iconRegistry.Register(typeof(CubicRegionDataNode), 11);
_iconRegistry.Register(typeof(NbtFileDataNode), 12);
_iconRegistry.Register(typeof(TagIntArrayDataNode), 14);
_iconRegistry.Register(typeof(TagShortArrayDataNode), 16);
}

private void OpenFile ()
Expand Down
Loading

0 comments on commit 60a7bbf

Please sign in to comment.