Android: Invalidate Picasso screenshot cache every time a screenshot is displayed.

This commit is contained in:
sigmabeta
2015-06-18 21:46:47 -04:00
committed by Eder Bastos
parent a028805626
commit 8ca620db7f
3 changed files with 8 additions and 11 deletions

View File

@ -678,10 +678,10 @@ void SaveScreenShot(std::string name)
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);
std::string filePath = File::GetUserPath(D_SCREENSHOTS_IDX) + gameId + DIR_SEP_CHR + name + ".png";
g_video_backend->Video_Screenshot(filePath);
if (!bPaused)
SetState(CORE_RUN);