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