| View previous topic :: View next topic |
| Author |
Message |
mypspdev
Joined: 11 Jul 2007 Posts: 178
|
Posted: Sat Aug 23, 2008 11:45 pm Post subject: UMD Info help: sceUmdGetDiscInfo(&info) |
|
|
My code...
| Code: | int MyUMDInfo;
int MyUMDState;
pspUmdInfo info;
if (sceUmdCheckMedium()==0)
{
printf("No UMD present \n");
}
else
{
printf("UMD present \n");
MyUMDInfo=sceUmdGetDiscInfo(&info);
##### here I'd like to print out size and type (audio, video or game)
sceUmdActivate(1, "disc0:"); sceUmdWaitDriveStat(PSP_UMD_READY);
}
MyUMDState=sceUmdGetDriveStat(); |
I'd like to print out the UMD Info: size and type, but I cannot.
My unsuccessfull attempt:
| Code: | printf("UMD SIZE: %l \n",info.size);
if (info.type==PSP_UMD_TYPE_GAME )
{printf("UMD TYPE: GAME \n");}
..... so on for other type.... |
Please any help?
thanks a lot in advance. |
|
| Back to top |
|
 |
Mashphealh
Joined: 28 Nov 2007 Posts: 18
|
Posted: Sun Aug 24, 2008 8:48 am Post subject: |
|
|
If it's not compile , the reason can be because pspumdinfo it's a typedef struct, so you must write your code thus :
| Code: |
printf("UMD SIZE: %d \n",info->size);
if (info->type==PSP_UMD_TYPE_GAME )
{printf("UMD TYPE: GAME \n");} |
|
|
| Back to top |
|
 |
mypspdev
Joined: 11 Jul 2007 Posts: 178
|
Posted: Sun Aug 24, 2008 5:26 pm Post subject: |
|
|
| Mashphealh wrote: | | Code: |
printf("UMD SIZE: %d \n",info->size);
if (info->type==PSP_UMD_TYPE_GAME )
{printf("UMD TYPE: GAME \n");} |
|
Thanks, ... being c-programmer-hobbyst... it happens... |
|
| Back to top |
|
 |
|