MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / GetLevelNames

Function GetLevelNames

Source/loadsave.cpp:931–943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void GetLevelNames(string_view prefix, char *out)
932{
933 char suf;
934 uint8_t num;
935 if (setlevel) {
936 suf = 's';
937 num = static_cast<uint8_t>(setlvlnum);
938 } else {
939 suf = 'l';
940 num = currlevel;
941 }
942 *fmt::format_to(out, "{}{}{:02d}", prefix, suf, num) = '\0';
943}
944
945void GetTempLevelNames(char *szTemp)
946{

Callers 2

GetTempLevelNamesFunction · 0.85
GetPermLevelNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected