Changeset 899 for trunk/Modules/Export/ProcessTask.php
- Timestamp:
- Aug 30, 2023, 10:46:15 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/ProcessTask.php
r894 r899 65 65 while (($File = readdir($Dir)) !== false) 66 66 { 67 if (($File != '..') and ($File != '.')) { 67 if (($File != '..') and ($File != '.')) 68 { 68 69 $File = str_replace('/', DIRECTORY_SEPARATOR, $File); 69 70 $InDir = ''; 70 if (strpos($packdir, 'dbc') !== false) { 71 if (strpos($packdir, 'dbc') !== false) 72 { 71 73 $InDir = 'DBFilesClient\\'; 72 74 if (DIRECTORY_SEPARATOR == '/') // linux 73 75 $InDir = 'DBFilesClient\\\\'; 74 76 } 75 if (strpos($packdir.$File, 'luaGlobal') !== false) { 77 if (strpos($packdir.$File, 'luaGlobal') !== false) 78 { 76 79 $InDir = 'Interface\\FrameXML\\'; 77 80 if (DIRECTORY_SEPARATOR == '/') // linux 78 81 $InDir = 'Interface\\\\FrameXML\\\\'; 79 82 } 80 if (strpos($packdir.$File, 'luaGlue') !== false) { 83 if (strpos($packdir.$File, 'luaGlue') !== false) 84 { 81 85 $InDir = 'Interface\\GlueXML\\'; 82 86 if (DIRECTORY_SEPARATOR == '/') // linux … … 85 89 86 90 if (DIRECTORY_SEPARATOR == '/') // linux 87 echo exec('wine cmd /C mpq.exe "'.$this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR. 91 { 92 echo(exec('wine mpq.exe "'.$this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR. 88 93 '..'.DIRECTORY_SEPARATOR).'patch-5.MPQ" '.$InDir.basename($File).' "'. 89 $this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR).$File.'" ') ;90 94 $this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR).$File.'" ')); 95 } else 91 96 if (DIRECTORY_SEPARATOR == '\\') // windows 92 echo exec('mpq.exe "'.$packdir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR. 93 'patch-5.MPQ" '.$InDir.basename($File).' "'.$packdir.DIRECTORY_SEPARATOR.$File.'" '); 94 95 echo "\n"; 97 { 98 echo(exec('mpq.exe "'.$packdir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR. 99 'patch-5.MPQ" '.$InDir.basename($File).' "'.$packdir.DIRECTORY_SEPARATOR.$File.'" ')); 100 } 101 102 echo("\n"); 96 103 } 97 104 }
Note:
See TracChangeset
for help on using the changeset viewer.