Reading information from UMD_DATA.BIN

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Reading information from UMD_DATA.BIN

Post by harleyg »

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?
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

What practical purpose could that possible have?
Shoot Pixels Not People!
Makeshift Development
SodR
Posts: 1
Joined: Mon Mar 13, 2006 8:27 pm

Post by SodR »

This is taken from the flashmod 2.0 source:

Code: Select all

				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.
User avatar
harleyg
Posts: 123
Joined: Wed Oct 05, 2005 6:15 am

Post by harleyg »

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!! :)
Post Reply