mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
go back to old table parser
This commit is contained in:
parent
90cd6b6cd8
commit
dbd076e834
@ -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 = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user