This commit is contained in:
Onni Kukkonen
2022-03-12 15:00:44 +02:00
parent 2e98aab89f
commit 1da7bd3309
48 changed files with 26420 additions and 0 deletions

23
test.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <iostream>
#include <fstream>
#include "steam/steam_api.h"
#include <string>
#include <cassert>
#include <vector>
#include <map>
using namespace std;
inline const char* const BoolToString(bool b)
{
return b ? "true" : "false";
}
int main() {
SteamAPI_Init();
auto testdlc = 445630;
std::cout << "We have " << SteamApps()->GetDLCCount() << " DLCs. " << std::endl;
std::cout << BoolToString(SteamApps()->BIsDlcInstalled(testdlc)) << std::endl;
std::cout << SteamUser()->UserHasLicenseForApp(SteamUser()->GetSteamID(), testdlc) << std::endl;
return 0;
}