Changeset 23

Show
Ignore:
Timestamp:
03/21/09 07:15:53 (1 year ago)
Author:
efry
Message:

Fixed crash when non-wiz files are present in the index.txt file.
Bumped version to 0.8a

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog.txt

    r19 r23  
     12009-03-21  Eric Fry <efry at users.sourceforge.net> 
     2        * Version 0.8a 
     3        * Fixed crash when non wiz files are present in the index.txt 
     4 
    152008-12-16  Eric Fry <efry at users.sourceforge.net> 
    26        * Version 0.8 
  • trunk/English.lproj/InfoPlist.strings

    r3 r23  
    11/* Localized versions of Info.plist keys */ 
    22 
    3 NSHumanReadableCopyright = "© Eric Fry OpenWiz, 2008"; 
     3NSHumanReadableCopyright = "© Eric Fry OpenWiz, 2009"; 
  • trunk/Info.plist

    r19 r23  
    3737        <string>????</string> 
    3838        <key>CFBundleVersion</key> 
    39         <string>0.8</string> 
     39        <string>0.8a</string> 
    4040        <key>NSMainNibFile</key> 
    4141        <string>MainMenu</string> 
  • trunk/WizIndex.m

    r19 r23  
    116116                        NSLog(@"raw line = %@",line); 
    117117                        range = [line rangeOfCharacterFromSet: [NSCharacterSet characterSetWithCharactersInString: @"|"]]; 
    118                         if(range.location == NSNotFound) //skip directories 
     118                        if(range.location == NSNotFound) //skip contents dir 
    119119                                continue; 
    120120 
     
    127127                        range.length = e - s; 
    128128 
     129                         
    129130                        line = [line substringWithRange: range]; 
    130                          
    131                         [filenames addObject: line]; 
    132  
    133                         curLoadIndex = 0; 
    134  
     131                        //we only handle wiz files at the moment. 
     132                        range = [line rangeOfString: @".tvwiz" options: NSBackwardsSearch]; 
     133                        if(range.location != NSNotFound) 
     134                                [filenames addObject: line]; 
     135                        else 
     136                        { 
     137                                range = [line rangeOfString: @".radwiz" options: NSBackwardsSearch]; 
     138                                if(range.location != NSNotFound) 
     139                                        [filenames addObject: line]; 
     140                                else 
     141                                        NSLog(@"dropping %@", line); 
     142                        } 
    135143                        NSLog(@"loc = %d, %d %@",s, e, line); 
    136144                } 
     145 
     146                curLoadIndex = 0; 
    137147                [self loadNextWizFile]; 
    138148        }