about summary refs log tree commit diff stats
path: root/database.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-03-02 19:47:19 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-03-02 19:47:19 -0500
commit5b7bf82edb672d5d5dbd8b1de64532aeec695661 (patch)
tree7de8d174a75f06f0f11ed5f3de4e17e8e7912c2c /database.h
parent13aab8498a0a2d4494a088f1235a0e80c078bdcf (diff)
downloadlunatic-5b7bf82edb672d5d5dbd8b1de64532aeec695661.tar.gz
lunatic-5b7bf82edb672d5d5dbd8b1de64532aeec695661.tar.bz2
lunatic-5b7bf82edb672d5d5dbd8b1de64532aeec695661.zip
Handled games with no images
For games where no images could be downloaded from Steam, which happens if a game has been removed from the store, the bot will now use a default background. This image is copyright Nintendo.
Diffstat (limited to 'database.h')
-rw-r--r--database.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/database.h b/database.h index 9dcb118..50f5b55 100644 --- a/database.h +++ b/database.h
@@ -46,6 +46,8 @@ public:
46 46
47 achievement getRandomAchievement() const; 47 achievement getRandomAchievement() const;
48 48
49 bool doesGameHaveImages(int gameId) const;
50
49 std::string getRandomImageForGame(int gameId) const; 51 std::string getRandomImageForGame(int gameId) const;
50 52
51 did getRandomDidForAchievement(int achievementId) const; 53 did getRandomDidForAchievement(int achievementId) const;