Android: Save screenshot at end of an emulation session.

This commit is contained in:
sigmabeta
2015-06-18 21:28:40 -04:00
committed by Eder Bastos
parent 2cea910431
commit a028805626
11 changed files with 62 additions and 17 deletions

View File

@ -671,6 +671,22 @@ void SaveScreenShot()
SetState(CORE_RUN);
}
void SaveScreenShot(std::string name)
{
const bool bPaused = (GetState() == CORE_PAUSE);
SetState(CORE_PAUSE);
const std::string& gameId = SConfig::GetInstance().GetUniqueID();
std::string path = File::GetUserPath(D_SCREENSHOTS_IDX) + gameId + DIR_SEP_CHR;
name = StringFromFormat("%s%s.png", path.c_str(), name.c_str());
g_video_backend->Video_Screenshot(name);
if (!bPaused)
SetState(CORE_RUN);
}
void RequestRefreshInfo()
{
s_request_refresh_info = true;