| 279 | } |
| 280 | |
| 281 | inline BOOL DVDConvertEntrynumToPath(s32 entrynum, char* path, u32 maxlen) |
| 282 | { |
| 283 | u32 loc; |
| 284 | |
| 285 | loc = entryToPath((u32)entrynum, path, maxlen); |
| 286 | |
| 287 | if (loc == maxlen) |
| 288 | { |
| 289 | path[maxlen - 1] = '\0'; |
| 290 | return FALSE; |
| 291 | } |
| 292 | |
| 293 | if (entryIsDir(entrynum)) |
| 294 | { |
| 295 | if (loc == maxlen - 1) |
| 296 | { |
| 297 | path[loc] = '\0'; |
| 298 | return FALSE; |
| 299 | } |
| 300 | |
| 301 | path[loc++] = '/'; |
| 302 | } |
| 303 | |
| 304 | path[loc] = '\0'; |
| 305 | return TRUE; |
| 306 | } |
| 307 | |
| 308 | BOOL DVDGetCurrentDir(char* path, u32 maxlen) |
| 309 | { |
no test coverage detected