MCPcopy Create free account
hub / github.com/ZDoom/Raze / DefaultExtension

Function DefaultExtension

source/common/utility/cmdlib.cpp:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247//==========================================================================
248
249void DefaultExtension (FString &path, const char *extension, bool forcebackslash)
250{
251 const char *src = &path[int(path.Len())-1];
252
253 while (src != &path[0] && !IsSeperator(*src, forcebackslash))
254 {
255 if (*src == '.')
256 return; // it has an extension
257 src--;
258 }
259
260 path += extension;
261}
262
263
264//==========================================================================

Callers 10

dbReadMapCRCFunction · 0.85
dbLoadMapFunction · 0.85
levelLoadMapInfoFunction · 0.85
levelTryPlayMusicFunction · 0.85
ParseMapHeaderMethod · 0.85
CCMDFunction · 0.85
CheckUserMapFunction · 0.85
BaseFileSearchFunction · 0.85
OpenMovieFunction · 0.85
G_BuildSaveNameFunction · 0.85

Calls 2

IsSeperatorFunction · 0.85
LenMethod · 0.80

Tested by

no test coverage detected