MCPcopy Create free account
hub / github.com/Rat431/ColdAPI_Steam / GetDLCByIndex

Function GetDLCByIndex

src/ColdAPI_Steam/ColdManager.cpp:168–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166namespace ColdAPI_DLC
167{
168 bool GetDLCByIndex(int iDLC, unsigned int* pAppID, bool* pbAvailable, char* pchName, int cchNameBufferSize)
169 {
170 if (iDLC < ColdDLC_Config::DLCsCount && !Steam_Config::UnlockAllDLCS && ColdDLC_Config::DLCsCount > 0)
171 {
172 if (pAppID != NULL && pAppID > NULL)
173 * pAppID = ColdDLC_Config::DLCsAPPID.at(iDLC);
174 if (pbAvailable != NULL && pbAvailable > NULL)
175 * pbAvailable = true;
176 std::string Name = ColdDLC_Config::DLCsNames.at(iDLC);
177 if (pchName != NULL && pchName > NULL && cchNameBufferSize >= NULL)
178 std::memcpy(pchName, Name.c_str(), cchNameBufferSize);
179 return true;
180 }
181 return false;
182 }
183 bool IsDLCAvailable(uint32_t Appid)
184 {
185 // Check if the requested AppId is not 0 or the same as the game setted one.

Callers 5

BGetDLCDataByIndexMethod · 0.85
BGetDLCDataByIndexMethod · 0.85
BGetDLCDataByIndexMethod · 0.85
BGetDLCDataByIndexMethod · 0.85
BGetDLCDataByIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected