forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with sceKernelUtilsMd5Digest or Embedded Images

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Devilish



Joined: 18 Feb 2007
Posts: 2

PostPosted: Sun Oct 07, 2007 3:00 am    Post subject: Help with sceKernelUtilsMd5Digest or Embedded Images Reply with quote

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
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Oct 07, 2007 12:29 pm    Post subject: Reply with quote

Images in Eboot:
http://forums.qj.net/attachment.php?attachmentid=6027&d=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.
Back to top
View user's profile Send private message
Devilish



Joined: 18 Feb 2007
Posts: 2

PostPosted: Sun Oct 07, 2007 2:27 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group