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 

Reading information from UMD_DATA.BIN

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



Joined: 05 Oct 2005
Posts: 123

PostPosted: Tue Apr 04, 2006 2:40 am    Post subject: Reading information from UMD_DATA.BIN Reply with quote

Does anyone have any examples of reading the following information from UMD_DATA.BIN in C.
Hex edit:
ULES-00151|DCB05CB1AD48FD72|0001|G.............|

ULES-00151 = the game code or whatever.

DC* = unique code (can be whatever, not just DC)


basically i need to get that information, the game code and unique code in C.

any ideas?
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Tue Apr 04, 2006 3:10 am    Post subject: Reply with quote

What practical purpose could that possible have?
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
SodR



Joined: 13 Mar 2006
Posts: 1

PostPosted: Tue Apr 04, 2006 3:13 am    Post subject: Reply with quote

This is taken from the flashmod 2.0 source:

Code:

            fd = sceIoOpen("disc0:/UMD_DATA.BIN", PSP_O_RDONLY, 0777);

            char game_id[10];
            sceIoRead(fd, game_id, 10);
            sceIoClose(fd);

            fd = sceIoOpen("./GAMES/UCUS-98615/UMD_DATA.BIN", PSP_O_RDONLY, 0777);

            char socom_game_id[10];
            sceIoRead(fd, socom_game_id, 10);
            sceIoClose(fd);

            if(game_id == socom_game_id) {
               sceKernelLoadExec("./GAMES/UCUS-98615/BOOT.BIN",0);



Hope it helps. btw. as you can see Ichigo has programed a special boot for Socom.
Back to top
View user's profile Send private message
harleyg



Joined: 05 Oct 2005
Posts: 123

PostPosted: Tue Apr 04, 2006 3:13 am    Post subject: Reply with quote

i didnt ask for a discuussion of how it could be used. i just asked for help or an example.
no worries.

edit: thanks for the info, this was to Drakonite not you!! :)
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