/******************************************************/ /* AUTHOR - JAMES CHOW */ /* DATE - 2 JULY 1998 */ /* ALTERATION WITHOUT EXPRESS PERMISSION PROHIBITED */ /* email: james@chowfam.demon.co.uk */ /******************************************************/ void cardInfoInit(char fname[20],int slots,GsIMAGE icons, int numicons,char textname[32]); //fname :- filename for directory, ie product code //slots :- number of slots needed for this file //icons :- icons as showed by OS //numicons :- number of icons, 1-3 //textname :- name of slot as showed by OS int cardValidate(int slot); #define VALIDATEnone (0) #define VALIDATEok (1) #define VALIDATEnew (2) #define VALIDATEerror (3) #define VALIDATEuninit (4) int cardFormat(void); #define FORMATok (1) #define FORMATerror (0) int cardRead(void); //returns percentage complete or an error int cardWrite(void); //operation complete when 100 returned #define READerror (-1) #define READfileabsent (-2) #define WRITEerror (-1) #define WRITEcardfull (-2) void cardSetBuffer(unsigned char* buff); //copy buffer with data unsigned char* cardGetBuffer(void); //get pointer to data //buffer size is 7680 bytes for first slot // plus 8192 bytes for each slot after