Author: gkruse Date: 2006-08-22 06:37:21 +0200 (Tue, 22 Aug 2006) New Revision: 165 Modified: trunk/Sources/Core/WaveStorageController.m Log: Added NSlog when binary Netstumbler file is detected. This could be considered the start of binary Netstumbler file support. Closes #134 Modified: trunk/Sources/Core/WaveStorageController.m =================================================================== --- trunk/Sources/Core/WaveStorageController.m 2006-08-22 04:16:38 UTC (rev 164) +++ trunk/Sources/Core/WaveStorageController.m 2006-08-22 04:37:21 UTC (rev 165) @@ -270,6 +270,11 @@ fgets(databuf, 1023, fd); //databuf[strlen(databuf) - 1] = '\0'; + if (strncmp(databuf,"NetS",4)) { + NSLog(@"Binary Netstumbler files are not yet supported."); + return NO; + } + if (strncmp(databuf, "# $DateGMT: ", 12)==0) { if (sscanf(databuf, "# $DateGMT: %d-%d-%d", &year, &day, &month) == 3) { date = [NSString stringWithFormat:@"%.4d-%.2d-%.2d", year, day, month];