MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / DVDConvertEntrynumToPath

Function DVDConvertEntrynumToPath

src/dolphin/src/dvd/dvdfs.c:281–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281inline 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
308BOOL DVDGetCurrentDir(char* path, u32 maxlen)
309{

Callers 1

DVDGetCurrentDirFunction · 0.85

Calls 1

entryToPathFunction · 0.85

Tested by

no test coverage detected