body_LZ.bin textures

Discussion in '3DS - Homebrew Development and Emulators' started by roflmuffin, May 16, 2016.

  1. roflmuffin

    roflmuffin Newbie

    Nov 11, 2015
    Hi guys,

    I am working on a tool that will let me extract the images from 3ds themes (body_LZ.bin) but I am a bit stuck.
    I am using the code from EveryFileExplorer as a guide (here) and have successfully obtained the top screen texture offset (0xD0). I then read the next (256*512) * 2 bytes but always end up with a data file that when loaded into GIMP in RGB565 looks muddled.

    I can't seem to see what else I need to do except for that. I am reading from an uncompressed bin file.
    I've attached the bin file, expected output, and the output I receive. Hopefully someone will be able to point me in the right direction.

    Attached Files:

  2. Ricken

    Ricken White wolves of victory march.

    Jan 19, 2016
    United States
    Shibuya, The small one from Vegas
    Isnt this already a function in Usagi?