Forcefully setting a file name with lower case was inserted to solve an issue that is only true on Windows. On Linux, upper/lower case must not be tampered with.
This resulted in skins like Orangeade.vlt failing to load their fonts on Linux.
string var = line.substr( 0, eqPos );
string val = line.substr( eqPos + 1, line.size() - eqPos - 1);
- // Convert to lower case because of some buggy winamp2 skins
string name = m_name + "." + section + "." + var;
+
+#ifdef WIN32
+ // Convert to lower case because of some buggy winamp2 skins
for( size_t i=0; i< name.size(); i++)
{
name[i] = tolower( name[i] );
}
+#endif
// Register the value in the var manager
pVarManager->registerConst( name, val );
return false;
}
+#ifdef WIN32
+
// Convert the file name to lower case, because some winamp skins
// use the wrong case...
for( size_t i=0; i< strlen( filenameInZip ); i++)
filenameInZip[i] = tolower( filenameInZip[i] );
}
+#endif
+
// Allocate the buffer
void *pBuffer = malloc( ZIP_BUFFER_SIZE );
if( !pBuffer )