*/
qfile_t* FS_Open (const char* filepath, const char* mode, qboolean quiet, qboolean nonblocking)
{
+#ifdef FS_FIX_PATHS
+ char fixedFileName[MAX_QPATH];
+ char *d = fixedFileName;
+ // try to fix common mistakes (\ instead of /)
+ for( ; *filepath ; filepath++, d++ )
+ if( *filepath != '\\' )
+ *d = *filepath;
+ else
+ *d = '/';
+ *d = '\0';
+ filepath = fixedFileName;
+#endif
+
if (FS_CheckNastyPath(filepath, false))
{
Con_Printf("FS_Open(\"%s\", \"%s\", %s): nasty filename rejected\n", filepath, mode, quiet ? "true" : "false");