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

Function G_DefaultDefFile

source/core/searchpaths.cpp:940–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938//==========================================================================
939
940const char* G_DefaultDefFile(void)
941{
942 if (isBlood())
943 return "blood.def";
944
945 if (g_gameType & GAMEFLAG_DUKE)
946 return "duke3d.def";
947
948 if (g_gameType & GAMEFLAG_RRRA)
949 return "rrra.def";
950
951 if (g_gameType & GAMEFLAG_RR)
952 return "rr.def";
953
954 if (isWW2GI())
955 return "ww2gi.def";
956
957 if (isSWALL())
958 return "sw.def";
959
960 if (g_gameType & GAMEFLAG_PSEXHUMED)
961 return "exhumed.def";
962
963 if (g_gameType & GAMEFLAG_NAM)
964 return fileSystem.FindFile("nam.def") ? "nam.def" : "napalm.def";
965
966 if (g_gameType & GAMEFLAG_NAPALM)
967 return fileSystem.FindFile("napalm.def") ? "napalm.def" : "nam.def";
968
969 return "duke3d.def";
970}
971
972const char* G_DefFile(void)
973{

Callers 2

G_DefFileFunction · 0.85
parseIncludeDefaultFunction · 0.85

Calls 4

isBloodFunction · 0.85
isWW2GIFunction · 0.85
isSWALLFunction · 0.85
FindFileMethod · 0.80

Tested by

no test coverage detected