From d64ae02201df44420515cf7d15850aa74f1e72a2 Mon Sep 17 00:00:00 2001 From: "color.diff=auto" Date: Sat, 27 Mar 2021 03:51:38 -0600 Subject: [PATCH] ZyEl cubemain too big, parse using .import --- src/D2TxtParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/D2TxtParser.php b/src/D2TxtParser.php index 9bcc4ab..41dc166 100644 --- a/src/D2TxtParser.php +++ b/src/D2TxtParser.php @@ -63,7 +63,8 @@ class D2TxtParser { } public function processCubeMain($file){ - exec("sqlite3 ".DB_FILE." '.separator \"t\"' '.import ".TXT_PATH."$file cubemain'"); + $path = dirname(getcwd()).DIRECTORY_SEPARATOR."bin".DIRECTORY_SEPARATOR; + exec($path."sqlite3.exe ".$path.DB_FILE." '.separator \"t\"' '.import ".TXT_PATH."$file cubemain'"); } } ?> \ No newline at end of file