Bug in libfat or in my code? June 29, 2009 01:35PM | Registered: 14 years ago Posts: 161 |
__io_wiisd.startup(); fatMountSimple("sd", &__io_wiisd); DIR_ITER *dir = diropen("sd:/"); char directoryName[256]; struct stat directoryStat; vector< string > vect; while(!dirnext(dir, directoryName, &directoryStat)) { if ((directoryStat.st_mode & S_IFDIR)) { cout << directoryName << endl; // I put a "test" instead of a directory name, to avoid any contact with libfat items vect.push_back("test"); } } dirclose(dir); fatUnmount("sd"); __io_wiisd.shutdown(); // here, i've a crash (DSI Exception) for(vector< string >::iterator ite = vect.begin(); ite != vect.end(); ite++) cout << *ite << endl;
Re: Bug in libfat or in my code? June 29, 2009 02:50PM | Registered: 15 years ago Posts: 276 |
Re: Bug in libfat or in my code? June 29, 2009 05:14PM | Registered: 14 years ago Posts: 161 |
Re: Bug in libfat or in my code? June 30, 2009 11:36AM | Registered: 15 years ago Posts: 22 |
Re: Bug in libfat or in my code? June 30, 2009 02:10PM | Registered: 14 years ago Posts: 161 |