Changeset 456 for trunk/export
- Timestamp:
- Apr 13, 2010, 10:18:46 AM (15 years ago)
- Location:
- trunk/export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r446 r456 315 315 $this->LoadFilters(); 316 316 317 if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true); 317 318 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`LuaFileName` != ""'); 318 319 while($Group = $DbResult->fetch_assoc()) … … 322 323 $File->OpenFile('../source/'.$this->ClientVersion['Version'].'/lua/'.$Group['LuaFileName'].'.lua'); 323 324 $File2 = new FileStream(); 324 if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true);325 325 $File2->CreateFile($this->TempDir.'lua/'.$Group['LuaFileName'].'.lua'); 326 326 … … 332 332 while(!$File->EOF()) 333 333 { 334 $Line = $File->Read Line();334 $Line = $File->ReadString(); 335 335 if(strpos($Line, '=') !== false) 336 336 { … … 357 357 if($Value['Comment'] != '') $NewLine .= ' -- '.$Value['Comment']; 358 358 $NewLine .= "\n"; 359 $File2->Write Line($NewLine);360 } else $File2->Write Line($Line."");359 $File2->WriteString($NewLine); 360 } else $File2->WriteString($Line.""); 361 361 } 362 362 echo('Hotovo <br/>'); -
trunk/export/export_output.php
r455 r456 239 239 echo('<a href="'.$Export->TempDir.'lua/'.$Group['LuaFileName'].'.lua">'.$Group['LuaFileName'].'.lua</a><br/>'); 240 240 } 241 echo('<br /><br /><strong>Použití ve hře</strong><br />Ze souborů vytvořte MPQ archív a nahrajte ho do hry do podsložky Data/enUS jako patch-enUS-5.MPQ. Hru spusťtepomocí programu WoWMe.exe (WoW Model Editor Fix).');241 echo('<br /><br /><strong>Použití ve hře</strong><br />Ze souborů vytvořte MPQ archív a nahrajte ho do hry do podsložky jako Data/enUS/patch-enUS-5.MPQ nebo Data/enUS/patch-enGB-5.MPQ. Pro starší verze hry než 3.2.0 je nutné spouštět hru pomocí programu WoWMe.exe (WoW Model Editor Fix).'); 242 242 } 243 243
Note:
See TracChangeset
for help on using the changeset viewer.