Db generation working on linux/windows

This commit is contained in:
color.diff=auto
2021-03-24 09:37:21 -06:00
parent 688fb724af
commit f322f2067e
105 changed files with 99 additions and 47532 deletions

View File

@@ -29,7 +29,6 @@ class D2TxtParser {
public $db;
public function __construct() {
$this->db = new D2Database();
}
public function parseFile($file) {
@@ -58,9 +57,7 @@ class D2TxtParser {
$header = array_shift($rows);
foreach ($rows as $row) {
$data[] = @array_combine($header, $row);
}
$this->db->createTables($file, $data);
$this->db->fillsTables($file, $data);
}
return $data;
}