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

Function entryToPath

src/dolphin/src/dvd/dvdfs.c:255–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255static 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
281inline BOOL DVDConvertEntrynumToPath(s32 entrynum, char* path, u32 maxlen)
282{

Callers 1

DVDConvertEntrynumToPathFunction · 0.85

Calls 1

myStrncpyFunction · 0.85

Tested by

no test coverage detected