@@ -29,21 +29,21 @@ typedef struct _sceMcTblGetDir { // size = 64
2929 u16 Reserve1 ; // 22
3030 u32 Reserve2 ; // 24
3131 u32 PdaAplNo ; // 28
32- unsigned char EntryName [32 ]; // 32
32+ char EntryName [32 ]; // 32
3333} sceMcTblGetDir ;
3434
3535int McDetectCard (int port , int slot );
36- int McOpen (int port , int slot , char * filename , int flags );
36+ int McOpen (int port , int slot , const char * filename , int flags );
3737int McClose (int fd );
3838int McRead (int fd , void * buf , int length );
3939int McWrite (int fd , void * buf , int length );
4040int McSeek (int fd , int offset , int origin );
4141int McFormat (int port , int slot );
42- int McGetDir (int port , int slot , char * dirname , int flags , int maxent , sceMcTblGetDir * info );
43- int McDelete (int port , int slot , char * filename , int flags );
42+ int McGetDir (int port , int slot , const char * dirname , int flags , int maxent , sceMcTblGetDir * info );
43+ int McDelete (int port , int slot , const char * filename , int flags );
4444int McFlush (int fd );
45- int McChDir (int port , int slot , char * newdir , char * currentdir );
46- int McSetFileInfo (int port , int slot , char * filename , sceMcTblGetDir * info , int flags );
45+ int McChDir (int port , int slot , const char * newdir , char * currentdir );
46+ int McSetFileInfo (int port , int slot , const char * filename , sceMcTblGetDir * info , int flags );
4747int McEraseBlock (int port , int block , void * * pagebuf , void * eccbuf ); //MCMAN v1.1 does not have a slot argument
4848int McReadPage (int port , int slot , int page , void * buf );
4949int McWritePage (int port , int slot , int page , void * pagebuf , void * eccbuf );
@@ -60,10 +60,12 @@ void McSetPS1CardFlag(int flag);
6060int McEraseBlock2 (int port , int slot , int block , void * * pagebuf , void * eccbuf );
6161int McDetectCard2 (int port , int slot );
6262int McGetFormat (int port , int slot );
63- int McGetEntSpace (int port , int slot , char * dirname );
63+ int McGetEntSpace (int port , int slot , const char * dirname );
6464int McReplaceBadBlock (void );
6565int McCloseAll (void );
66+ #ifdef _IOP
6667struct irx_id * McGetModuleInfo (void );
68+ #endif
6769int McGetCardSpec (int port , int slot , s16 * pagesize , u16 * blocksize , int * cardsize , u8 * flags );
6870int McGetFATentry (int port , int slot , int fat_index , int * fat_entry );
6971int McCheckBlock (int port , int slot , int block );
0 commit comments