Help with sceKernelUtilsMd5Digest or Embedded Images

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Devilish
Posts: 2
Joined: Sun Feb 18, 2007 11:33 am

Help with sceKernelUtilsMd5Digest or Embedded Images

Post by Devilish »

Hi,

I´ve been reading and searching the forum for 2 days before make this question, but i couldn´t find anything. :(
I need some help on the usage of sceKernelUtilsMd5Digest or how to compile with the image embedded on the file.
i want to use the sceKernelUtilsMd5Digest to check if the md5 of the image file is correct, but i would rather prefer compile the images with the file to have just one file.
i already know how to convert the image to a .c file, but i just don´t know how to call, define and blit this image to screen.
Can someone help me on this ?

Thanks in advanced,

Devilish
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Images in Eboot:
http://forums.qj.net/attachment.php?att ... 1165735628
but if your goal is to prevent someone changing the image, you can still do it.
I'd just check the value of a few random bytes in the image array somewhere
else in the program.
If you want to be really tricky, use some image byte values to set some critical initial variable values in your program at startup, so if someone changes
the image the whole program goes haywire.

Remane the image.png to that wothout any extension,
Use bin2c to create the H file.
cd C:\bin2c
bin2c image image image
Art.
Devilish
Posts: 2
Joined: Sun Feb 18, 2007 11:33 am

Post by Devilish »

that was exactly what i was looking for.
i was doing everything right, the only thing i had to change on my code was the loadImage to loadImageMemory and update my graphics.c and .h to the one on the sample you send.
thank you very much for this one art.
Post Reply