diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2314940d8..f0cf1e290 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -469,9 +469,8 @@ Game::~Game() DepricatedEvent(EVENT_DESTRUCTED)); } -bool Game::saveScreenshot() +bool Game::createScreenshot() { - static unsigned int screenshotCount = 0; SDL_Surface *screenshot = nullptr; if (!config.getBoolValue("showip")) @@ -490,6 +489,12 @@ bool Game::saveScreenshot() if (!screenshot) return false; + return saveScreenshot(screenshot); +} + +bool Game::saveScreenshot(SDL_Surface *screenshot) +{ + static unsigned int screenshotCount = 0; // Search for an unused screenshot name std::stringstream filenameSuffix; std::stringstream filename; |