@@ -193,10 +193,9 @@ const CLocatorAPI::file* CLocatorAPI::RegisterExternal(pcstr name)
193193const CLocatorAPI::file* CLocatorAPI::Register (
194194 pcstr name, u32 vfs, u32 crc, u32 ptr, u32 size_real, u32 size_compressed, u32 modif)
195195{
196- Msg (" Register[%d] [%s]" ,vfs,name);
196+ // Msg("Register[%d] [%s]",vfs,name);
197197 string256 temp_file_name;
198198 xr_strcpy (temp_file_name, sizeof temp_file_name, name);
199- xr_strlwr (temp_file_name);
200199
201200 // Register file
202201 file desc;
@@ -403,7 +402,13 @@ void CLocatorAPI::LoadArchive(archive& A, pcstr entrypoint)
403402 buffer += sizeof ptr;
404403
405404 strconcat (sizeof full, full, fs_entry_point, name);
406-
405+ #if defined(LINUX)
406+ char *tmp_ptr = strchr (full, ' \\ ' );
407+ while (tmp_ptr) {
408+ *tmp_ptr = ' /' ;
409+ tmp_ptr = strchr (tmp_ptr, ' \\ ' );
410+ }
411+ #endif
407412 Register (full, A.vfs_idx , crc, ptr, size_real, size_compr, 0 );
408413 }
409414 hdr->close ();
@@ -531,7 +536,7 @@ void CLocatorAPI::ProcessOne(pcstr path, const _finddata_t& entry)
531536 return ;
532537 if (0 == xr_strcmp (entry.name , " .." ))
533538 return ;
534- xr_strcat (N, " \\ " );
539+ xr_strcat (N, DELIMITER );
535540 Register (N, 0xffffffff , 0 , 0 , entry.size , entry.size , (u32 )entry.time_write );
536541 Recurse (N);
537542 }
@@ -1254,7 +1259,7 @@ void CLocatorAPI::file_from_archive(IReader*& R, pcstr fname, const file& desc)
12541259
12551260 VERIFY3 (ptr, " cannot create file mapping on file" , fname);
12561261
1257- string512 temp;
1262+ string1024 temp;
12581263 xr_sprintf (temp, sizeof temp, " %s:%s" , *A.path , fname);
12591264
12601265#ifdef FS_DEBUG
@@ -1388,7 +1393,6 @@ bool CLocatorAPI::check_for_file(pcstr path, pcstr _fname, string_path& fname, c
13881393
13891394 // correct path
13901395 xr_strcpy (fname, _fname);
1391- xr_strlwr (fname);
13921396 if (path && path[0 ])
13931397 update_path (fname, path, fname);
13941398
0 commit comments