dtab-1.0.0.1: Harmonix (Guitar Hero, Rock Band) DTA/DTB metadata library

Safe HaskellNone
LanguageHaskell2010

Data.DTA

Description

All functions that take a Handle or FilePath do their reading/writing strictly.

Synopsis

Documentation

data DTA Source

A top-level file.

Constructors

DTA 

Fields

byteZero :: Word8
 
topTree :: Tree
 

data Tree Source

A list of chunks, for either the top-level tree or a subtree.

Constructors

Tree 

Fields

nodeID :: Word32
 
treeChunks :: [Chunk]
 

data Chunk Source

A data value, which may be a subtree. The constructors are ordered by their chunk identification tag in the binary format.

hToDTB :: Handle -> DTA -> IO () Source

toDTB :: FilePath -> DTA -> IO () Source

hToDTA :: Handle -> DTA -> IO () Source

toDTA :: FilePath -> DTA -> IO () Source

renumberFrom :: Word32 -> DTA -> DTA Source

Assign new sequential node IDs to each tree in a DTA, starting with the top-level tree.