| 166 | namespace 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. |
no outgoing calls
no test coverage detected