mirror of https://github.com/PCSX2/pcsx2.git
GSdx: Compare file extensions as lower-case
This commit is contained in:
parent
5f62a5752e
commit
2c6805259e
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue