| 253 | } |
| 254 | |
| 255 | static u32 entryToPath(u32 entry, char* path, u32 maxlen) |
| 256 | { |
| 257 | char* name; |
| 258 | u32 loc; |
| 259 | |
| 260 | if (entry == 0) |
| 261 | { |
| 262 | return 0; |
| 263 | } |
| 264 | |
| 265 | name = FstStringStart + stringOff(entry); |
| 266 | |
| 267 | loc = entryToPath(parentDir(entry), path, maxlen); |
| 268 | |
| 269 | if (loc == maxlen) |
| 270 | { |
| 271 | return loc; |
| 272 | } |
| 273 | |
| 274 | *(path + loc++) = '/'; |
| 275 | |
| 276 | loc += myStrncpy(path + loc, name, maxlen - loc); |
| 277 | |
| 278 | return loc; |
| 279 | } |
| 280 | |
| 281 | inline BOOL DVDConvertEntrynumToPath(s32 entrynum, char* path, u32 maxlen) |
| 282 | { |
no test coverage detected