GSdx: Compare file extensions as lower-case

This commit is contained in:
Tyler Wilding 2020-09-15 20:32:35 -04:00 committed by refractionpcsx2
parent 5f62a5752e
commit 2c6805259e
2 changed files with 4 additions and 2 deletions

View File

@ -679,7 +679,9 @@ EXPORT_C_(uint32) GSmakeSnapshot(char* path)
if (!s.empty())
{
// Allows for providing a complete path
if (s.substr(s.size() - 4, 4) == ".png")
std::string extension = s.substr(s.size() - 4, 4);
std::transform(extension.begin(), extension.end(), extension.begin(), tolower);
if (extension == ".png")
return s_gs->MakeSnapshot(s);
else if (s[s.length() - 1] != DIRECTORY_SEPARATOR)
s = s + DIRECTORY_SEPARATOR;

View File

@ -80,7 +80,7 @@ bool GSRenderer::CreateDevice(GSDevice* dev)
void GSRenderer::ResetDevice()
{
if(m_dev) m_dev->Reset(1, 1);
if(m_dev) m_dev->Reset(1, 1);
}
bool GSRenderer::Merge(int field)