problem with libfat version 20081205 December 09, 2008 10:59PM | Registered: 16 years ago Posts: 51 |
bool loadConfig() { return false; if(!fatInitDefault()) return false; FILE *fp; if((fp = fopen("sd:/mahjongg.cfg","rb"))==NULL) return false; // get the version number in case it older than current int version=getc(fp); opt_music=getc(fp); opt_sound=getc(fp); opt_layout=getc(fp); opt_lang=getc(fp); opt_rumble=getc(fp)==1?true:false; opt_hoverhint=getc(fp)==1?true:false; fclose(fp); return true; }
Re: problem with libfat version 20081205 December 09, 2008 11:00PM | Registered: 16 years ago Posts: 8 |
Re: problem with libfat version 20081205 December 10, 2008 10:27AM | Registered: 15 years ago Posts: 276 |
Re: problem with libfat version 20081205 December 10, 2008 03:23PM | Registered: 16 years ago Posts: 8 |
Re: problem with libfat version 20081205 December 10, 2008 04:08PM | Registered: 15 years ago Posts: 276 |
Re: problem with libfat version 20081205 December 10, 2008 04:34PM | Registered: 16 years ago Posts: 8 |
Re: problem with libfat version 20081205 December 10, 2008 06:12PM | Registered: 16 years ago Posts: 48 |
Re: problem with libfat version 20081205 December 10, 2008 06:34PM | Registered: 16 years ago Posts: 51 |
Re: problem with libfat version 20081205 December 10, 2008 06:56PM | Registered: 15 years ago Posts: 276 |
Re: problem with libfat version 20081205 December 10, 2008 07:36PM | Registered: 16 years ago Posts: 8 |
Re: problem with libfat version 20081205 December 10, 2008 08:01PM | Registered: 16 years ago Posts: 51 |