MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / ExtractFilePath

Function ExtractFilePath

src/vizdoom/src/cmdlib.cpp:259–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257//==========================================================================
258
259FString ExtractFilePath (const char *path)
260{
261 const char *src;
262
263 src = path + strlen(path) - 1;
264
265//
266// back up until a \ or the start
267//
268 while (src != path && !IsSeperator(*(src-1)))
269 src--;
270
271 return FString(path, src - path);
272}
273
274//==========================================================================
275//

Callers 2

CCMDFunction · 0.85
ChangeListMethod · 0.85

Calls 2

IsSeperatorFunction · 0.85
FStringClass · 0.70

Tested by

no test coverage detected