ZyEl cubemain too big, parse using .import

This commit is contained in:
color.diff=auto 2021-03-27 03:40:43 -06:00
parent 3e50250ca9
commit c45f35076b
2 changed files with 9 additions and 1 deletions

View File

@ -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){

View File

@ -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'");
}
}
?>