MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / CTempFile

Method CTempFile

Source/Client/NM_Engine/TempFile.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14CTempFile::CTempFile(const char * c_pszPrefix)
15{
16 strncpy(m_szFileName, g_nmApp->DirFunctionsInstance()->CreateTempFileName(c_pszPrefix).c_str(), MAX_PATH);
17
18 if (!Create(m_szFileName, EFileMode::FILEMODE_WRITE))
19 {
20 DEBUG_LOG(LL_ERR, "Can not create temporary file. Filename: %s", m_szFileName);
21 return;
22 }
23}

Callers

nothing calls this directly

Calls 2

CreateTempFileNameMethod · 0.80
DirFunctionsInstanceMethod · 0.80

Tested by

no test coverage detected