mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 16:34:23 -05:00
ZyEl cubemain too big, parse using .import
This commit is contained in:
@@ -32,6 +32,9 @@ class D2TxtParser {
|
||||
}
|
||||
|
||||
public function parseFile($file) {
|
||||
if ($file == "CubeMain.txt") {
|
||||
$this->processCubeMain($file);
|
||||
}
|
||||
return $this->parseData($file);
|
||||
}
|
||||
|
||||
@@ -58,5 +61,9 @@ class D2TxtParser {
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function processCubeMain($file){
|
||||
exec("sqlite3 ".DB_FILE." '.separator \"t\"' '.import ".TXT_PATH."$file cubemain'");
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user