MCPcopy Create free account
hub / github.com/TASEmulators/fceux / DetermineFileBase

Function DetermineFileBase

src/file.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176FileBaseInfo DetermineFileBase(const char *f) {
177
178 char drv[PATH_MAX], dir[PATH_MAX], name[PATH_MAX], ext[PATH_MAX];
179 splitpath(f,drv,dir,name,ext);
180
181 if(dir[0] == 0) strcpy(dir,".");
182
183 return FileBaseInfo((std::string)drv + dir,name,ext);
184
185}
186
187inline FileBaseInfo DetermineFileBase(const std::string& str) { return DetermineFileBase(str.c_str()); }
188

Callers 2

FCEU_fopenFunction · 0.85
GetFileBaseFunction · 0.85

Calls 2

splitpathFunction · 0.85
FileBaseInfoClass · 0.85

Tested by

no test coverage detected