Skip to content

MrMystery-Official/RESTBL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ResTable Reader/Writer for The Legend of Zelda: Tears of the Kingdom

A C++ library to read and write RESTBL files.

Usage

First of all, include the RESTBL.h header file. To load a RESTBL file, pass the path to a file or a vector of unsigned bytes to the constructor.

#include "RESTBL.h"

int main()
{
    ResTableFile RSTB("ResourceSizeTable.Product.121.rsizetable");
    return 0;
}

To get the size of a file, pass the path or the CRC32 hash to the function GetFileSize.

#include "RESTBL.h"

int main()
{
    ResTableFile RSTB("ResourceSizeTable.Product.121.rsizetable");
    uint32_t Size = RSTB.GetFileSize("Banc/SmallDungeon/Dungeon001_Static.bcett.byml");
    return 0;
}

To set the size of a file, call the SeFileSize function and pass the path or the CRC32 hash as well as the new size.

#include "RESTBL.h"

int main()
{
    ResTableFile RSTB("ResourceSizeTable.Product.121.rsizetable");
    RSTB.SetFileSize("Banc/SmallDungeon/Dungeon001_Static.bcett.byml", 12345);
    return 0;
}

To generate a CRC32 hash of a string, call the GenerateCrc32Hash function and pass the string to it:

#include "RESTBL.h"

int main()
{
    ResTableFile RSTB("ResourceSizeTable.Product.121.rsizetable");
    uint32_t Hash = RSTB.GenerateCrc32Hash("Banc/SmallDungeon/Dungeon001_Static.bcett.byml");
    return 0;
}

About

A C++ library to read and write ResTable files found in The Legend of Zelda: Tears of the Kingdom.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages