-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession.cpp
More file actions
32 lines (24 loc) · 754 Bytes
/
Copy pathsession.cpp
File metadata and controls
32 lines (24 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
#include <vector>
#include <string>
#include "session.hpp"
using namespace std;
int main() {
cout << "gameid_exists(\"nonexistant\") -> "
<< gameid_exists("nonexistant") << endl;
cout << "gameid_age(\"nonexistant\") -> " << gameid_age("nonexistant") << endl;
vector<string> games = list_games();
for (int i = 0; i < games.size(); i++)
cout << games[i] << endl
<< " gameid_exists(\"" << games[i] << "\") -> "
<< gameid_exists(games[i]) << endl
<< " gameid_age(\"" << games[i] << "\") -> "
<< gameid_age(games[i])
<< endl;
if (gameid_exists("DELETEME"))
{
cout << "Detected DELETEME game, testing remove_game." << endl;
remove_game("DELETEME");
}
return 0;
}