| View previous topic :: View next topic |
| Author |
Message |
harleyg

Joined: 05 Oct 2005 Posts: 123
|
Posted: Tue Apr 04, 2006 2:40 am Post subject: Reading information from UMD_DATA.BIN |
|
|
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 |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Tue Apr 04, 2006 3:10 am Post subject: |
|
|
What practical purpose could that possible have? _________________ Shoot Pixels Not People!
Makeshift Development |
|
| Back to top |
|
 |
SodR
Joined: 13 Mar 2006 Posts: 1
|
Posted: Tue Apr 04, 2006 3:13 am Post subject: |
|
|
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 |
|
 |
harleyg

Joined: 05 Oct 2005 Posts: 123
|
Posted: Tue Apr 04, 2006 3:13 am Post subject: |
|
|
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 |
|
 |
|