go back to old table parser

This commit is contained in:
Hash Borgir 2023-06-25 13:23:32 -06:00
parent 90cd6b6cd8
commit dbd076e834

View File

@ -9,7 +9,7 @@ class D2Tbl {
* @param mixed $filePath
* @param mixed $replaceSpecialCharacters
*/
public static function getStrings_backup($filePath, $replaceSpecialCharacters = true) {
public static function getStrings($filePath, $replaceSpecialCharacters = true) {
// Check file
if (!file_exists($filePath) || !is_readable($filePath)) {
return false;
@ -79,14 +79,14 @@ class D2Tbl {
return $strings;
}
public static function getStrings($filePath) {
public static function getStrings_($filePath) {
$executablePath = getcwd() . "\bin\EnquettarM.exe";
$processCommand = "{$executablePath} -e \"$filePath\"";
shell_exec($processCommand);
$filePath = "ModString.txt";
$ModString = "ModString.txt";
$fileLines = file($filePath);
$fileLines = file($ModString);
$rows = [];