SMDH extracting large icon to bmp in c++

Discussion in 'Computer Software and Operating Systems' started by Moocow9m, Apr 23, 2017.

  1. Moocow9m
    OP

    Moocow9m Newbie

    Newcomer
    8
    0
    Dec 29, 2016
    United States
    I am trying to extract the large icon from a .smdh file but I don't know how I am supposed to write the file in bitmap format. I would also like the answer to be platform independent if possible. I currently have it loaded from the file into a char* called buff. I know this about the icon: size: 48x48 pixels, Most Likely encoded as RGB565, The data is encoded in tiles (starting from size 8x8, continuing recursively).
    Below is an image of the raw data being output from the program read in notepad++ as it is now(just the image supposedly)

    [​IMG]

    SMDH file type Source: https://www.3dbrew.org/wiki/SMDH