Rev 8919 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8919 | Rev 8925 | ||
---|---|---|---|
Line 197... | Line 197... | ||
197 | unsigned long int k; |
197 | unsigned long int k; |
Line 198... | Line 198... | ||
198 | 198 | ||
199 | k = strlen(CurrentDirectoryPath); |
199 | k = strlen(CurrentDirectoryPath); |
200 | while(CurrentDirectoryPath[k] != '\\' && CurrentDirectoryPath[k] != '/' && k) {k--;}; |
200 | while(CurrentDirectoryPath[k] != '\\' && CurrentDirectoryPath[k] != '/' && k) {k--;}; |
- | 201 | memcpy(library_path,CurrentDirectoryPath,k); |
|
- | 202 | if(library_path[k-1] != '/'){ |
|
- | 203 | library_path[k] = '/'; |
|
- | 204 | k++; |
|
201 | memcpy(library_path,CurrentDirectoryPath,k); |
205 | } |
Line 202... | Line 206... | ||
202 | strcpy(library_path+k,"block.bin"); |
206 | strcpy(library_path+k,"block.bin"); |
203 | 207 | ||
204 | file = FileOpen(library_path); |
208 | file = FileOpen(library_path); |