BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
BrawlLib.SSBB.ResourceNodes.ISONode Class Reference
Inheritance diagram for BrawlLib.SSBB.ResourceNodes.ISONode:
BrawlLib.SSBB.ResourceNodes.ISOEntryNode BrawlLib.SSBB.ResourceNodes.ResourceNode

Public Member Functions

override bool OnInitialize ()
 
override void OnPopulate ()
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ISOEntryNode
ToStruct< T > (byte[] bytes)
 
Get< T > (long offset, bool relative=false)
 
UnsafeBuffer GetBuffer (long offset, int size, bool relative=false)
 
UnsafeBuffer GetBuffer (byte[] bytes)
 
byte[] GetBytes (long offset, int size, bool relative=false)
 
void Create (ISOEntryNode parent, long offset, int size, bool relativeOffset)
 
void CreateChild (ResourceNode child, long offset, int size, bool relativeOffset)
 
- Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void OnRenamed ()
 
List< ResourceNodeGetChildrenRecursive ()
 Used primarily to get bone lists. Kept for all resource nodes for utility. More...
 
virtual void SignalPropertyChange ()
 
virtual void Dispose ()
 
void SelectChildAtIndex (int index)
 
void UpdateProperties ()
 
void UpdateCurrentControl ()
 
virtual bool MoveUp ()
 
virtual bool MoveDown ()
 
virtual void OnMoved ()
 
virtual void DoMoveDown ()
 
virtual void DoMoveDown (bool select)
 
virtual void DoMoveUp ()
 
virtual void DoMoveUp (bool select)
 
virtual bool AddUp ()
 
virtual bool AddDown ()
 
virtual bool ToParent ()
 
void Populate (int levels=-1)
 
virtual void OnPopulate ()
 
void Initialize (ResourceNode parent, FileMap source)
 
void Initialize (ResourceNode parent, VoidPtr address, int length)
 
void Initialize (ResourceNode parent, DataSource origSource)
 
virtual void Initialize (ResourceNode parent, DataSource origSource, DataSource uncompSource)
 
virtual bool OnInitialize ()
 
virtual void Restore ()
 
virtual void Remove ()
 
virtual void RemoveChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child)
 
virtual void AddChild (ResourceNode child, bool change)
 
virtual void InsertChild (ResourceNode child, int index)
 
virtual void InsertChild (ResourceNode child, bool change, int index)
 
void SetSizeInternal (int size)
 
virtual void Replace (string fileName)
 
virtual void Replace (ResourceNode node)
 
virtual void Replace (string fileName, FileMapProtect prot, FileOptions options)
 
virtual void ReplaceRaw (VoidPtr address, int length)
 
virtual void ReplaceRaw (FileMap map)
 
virtual void Export (string outPath)
 
void Export (FileStream outStream)
 
virtual void ExportUncompressed (string outPath)
 
void ExportUncompressed (FileStream outStream)
 
virtual void Rebuild ()
 
virtual void Rebuild (bool force)
 
virtual void Rebuild (VoidPtr address, int length, bool force)
 
virtual void OnRebuild (VoidPtr address, int length, bool force)
 
virtual int CalculateSize (bool force)
 
virtual int OnCalculateSize (bool force)
 
void Merge ()
 
void Merge (bool forceBuild)
 
ResourceNode FindChildByType (string path, bool searchChildren, params ResourceType[] types)
 
ResourceNode FindChildByType (string path, bool searchChildren, StringComparison compare, params ResourceType[] types)
 
ResourceNode FindChild (string path)
 
ResourceNode FindChild (string path, bool searchChildren)
 
ResourceNode FindChild (string path, StringComparison compare)
 
ResourceNode FindChild (string path, bool searchChildren, StringComparison compare)
 
ResourceNode[] FindChildrenByClassType (string path, Type type)
 
ResourceNode[] FindChildrenByType (string path, ResourceType type)
 
ResourceNode[] FindChildrenByTypeInGroup (string path, ResourceType type, byte group)
 
ResourceNode[] FindChildrenByName (string name)
 
unsafe string FindName (string name)
 
ResourceNode FindEmbeddedIndex (int index)
 
virtual unsafe byte[] MD5 ()
 Find the MD5 checksum of this node's data. If this node doesn't have any data (BRESGroupNode, for example), this method will return null. More...
 
string MD5Str ()
 Get the result of the MD5() function as a string of hexadecimal digits. If MD5() returns null, this method will return an empty string. More...
 
ResourceNode PrevSibling ()
 
ResourceNode NextSibling ()
 
override string ToString ()
 
virtual void SortChildren ()
 

Public Attributes

bool _isGC
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.ISOEntryNode
long _rootOffset
 
- Public Attributes inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
Form _mainForm
 
string _name
 
string _origPath
 
ResourceNode _parent
 
List< ResourceNode_children = new List<ResourceNode>()
 
int _calcSize
 
EventHandler UpdateControl
 
MoveEventHandler MovedDown
 
ResourceEventHandler Renamed
 
ResourceEventHandler PropertyChanged
 
ResourceEventHandler Replaced
 
ResourceEventHandler Restored
 
ResourceChildEventHandler ChildRemoved
 
bool _isPopulating
 
bool _replaced
 

Protected Attributes

ISOCommonPartInfo _partInfo
 
- Protected Attributes inherited from BrawlLib.SSBB.ResourceNodes.ISOEntryNode
List< UnsafeBuffer_childBuffers = new List<UnsafeBuffer>()
 

Properties

override ResourceType ResourceFileType [get]
 
override string DataSize [get]
 
string GameName [get, set]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.ISOEntryNode
override ResourceType ResourceFileType [get]
 
virtual string DataSize [get]
 
ISONode ISORoot [get]
 
long OffMult [get]
 
- Properties inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
string FilePath [get]
 
string FileName [get]
 
string DirectoryName [get]
 
ResourceNode RootNode [get]
 
DataSource OriginalSource [get]
 
DataSource UncompressedSource [get]
 
DataSource WorkingSource [get]
 
DataSource WorkingUncompressed [get]
 
virtual bool HasChildren [get]
 
virtual ResourceType ResourceFileType [get]
 
string NodeType [get]
 
virtual string TreePathAbsolute [get]
 
virtual string TreePath [get]
 
virtual int Level [get]
 
virtual int MaxNameLength [get]
 
virtual bool AllowDuplicateNames [get]
 
virtual bool AllowNullNames [get]
 
virtual string Name [get, set]
 
ResourceNode Parent [get, set]
 
List< ResourceNodeChildren [get]
 
int Index [get]
 
int HexIndex [get]
 
bool IsCompressed [get]
 
bool HasChanged [get, set]
 
bool IsBranch [get]
 
bool HasMerged [get]
 
virtual bool AllowSaving [get, set]
 
virtual bool IsDirty [get, set]
 
virtual uint UncompressedSize [get]
 
virtual Type[] AllowedChildTypes [get]
 
virtual string Compression [get, set]
 
virtual bool RetainChildrenOnReplace [get]
 
virtual bool supportsCompression [get]
 
static MD5CryptoServiceProvider MD5Provider [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
static ResourceNode[] FindAllSubNodes (ResourceNode root)
 
static ResourceNode FindNode (ResourceNode root, string path, bool searchChildren, StringComparison compare)
 
- Protected Member Functions inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
void ForceReplacedEvent ()
 
virtual void MergeInternal ()
 
- Events inherited from BrawlLib.SSBB.ResourceNodes.ResourceNode
SelectEventHandler SelectChild
 
EventHandler UpdateProps
 
MoveEventHandler MovedUp
 
ResourceEventHandler Disposing
 
ResourceChildEventHandler ChildAdded
 
ResourceChildInsertEventHandler ChildInserted
 

Member Function Documentation

◆ OnInitialize()

override bool BrawlLib.SSBB.ResourceNodes.ISONode.OnInitialize ( )
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

33 {
34 _name = Header->GameID;
35 _gameName = Header->GameName;
36 _partInfo = Get<ISOCommonPartInfo>(0x400);
37 ISOPartLists p = Get<ISOPartLists>(0x40000);
38 return p._partitionCount > 0 || p._channelCount > 0;
39 }
ISOCommonPartInfo _partInfo
Definition: ISONode.cs:23
string _name
Definition: ResourceNode.cs:139
Definition: ISO.cs:107
string GameID
Definition: ISO.cs:40
string GameName
Definition: ISO.cs:34

◆ OnPopulate()

override void BrawlLib.SSBB.ResourceNodes.ISONode.OnPopulate ( )
inlinevirtual

Reimplemented from BrawlLib.SSBB.ResourceNodes.ResourceNode.

42 {
43 ISOPartLists p = Get<ISOPartLists>(0x40000);
44 int pCount = p._partitionCount;
45 int total = p._channelCount + pCount;
46
47 for (int i = 0; i < total; ++i)
48 {
49 long offset = i < pCount ? p.PartitionOffset + i * 8L : p.ChannelOffset + (i - pCount) * 8L;
50 PartitionTableEntry e = Get<PartitionTableEntry>(offset);
51 new ISOPartitionNode(e, i >= pCount).Create(this, e._offset * OffMult, 0x8000, false);
52 }
53 }
long OffMult
Definition: ISONode.cs:356
bint _partitionCount
Definition: ISO.cs:108
Definition: ISO.cs:139

Member Data Documentation

◆ _isGC

bool BrawlLib.SSBB.ResourceNodes.ISONode._isGC

◆ _partInfo

ISOCommonPartInfo BrawlLib.SSBB.ResourceNodes.ISONode._partInfo
protected

Property Documentation

◆ DataSize

override string BrawlLib.SSBB.ResourceNodes.ISONode.DataSize
get

◆ GameName

string BrawlLib.SSBB.ResourceNodes.ISONode.GameName
getset
27 {
28 get => _gameName;
29 set => _gameName = value.Substring(0, Math.Max(0x60, value.Length));
30 }

◆ ResourceFileType

override ResourceType BrawlLib.SSBB.ResourceNodes.ISONode.ResourceFileType
get

The documentation for this class was generated from the following file: