Take a screenshot and save it to disk.
- Parameters
-
| driver | Video driver to use for the screenshot |
| filename_out | Output parameter that receives the path to the saved screenshot |
- Returns
- true if the screenshot was saved successfully, false otherwise
References fs::CreateAllDirs(), DIR_DELIM, errorstream, fmtgettext(), g_settings, Settings::get(), Settings::getS32(), infostream, fs::IsPathAbsolute(), itos(), mt_localtime(), porting::path_user, fs::PathExists(), rangelim(), sanity_check, SCREENSHOT_MAX_SERIAL_TRIES, and takeScreenshot().
Referenced by Client::getCraftDefManager(), GUIEngine::run(), and takeScreenshot().