mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
ZyEl cubemain too big, parse using .import
This commit is contained in:
parent
3e50250ca9
commit
c45f35076b
@ -25,7 +25,8 @@ class D2Files {
|
||||
|
||||
public function __construct() {
|
||||
$filesToIgnore = [
|
||||
"AiParms.txt"
|
||||
"AiParms.txt",
|
||||
"CubeMain.txt"
|
||||
];
|
||||
$glob = glob($_SESSION['path'].'*.txt');
|
||||
foreach ($glob as $g){
|
||||
|
@ -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'");
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user