mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-12-02 13: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 $filePath
|
||||||
* @param mixed $replaceSpecialCharacters
|
* @param mixed $replaceSpecialCharacters
|
||||||
*/
|
*/
|
||||||
public static function getStrings_backup($filePath, $replaceSpecialCharacters = true) {
|
public static function getStrings($filePath, $replaceSpecialCharacters = true) {
|
||||||
// Check file
|
// Check file
|
||||||
if (!file_exists($filePath) || !is_readable($filePath)) {
|
if (!file_exists($filePath) || !is_readable($filePath)) {
|
||||||
return false;
|
return false;
|
||||||
@ -79,14 +79,14 @@ class D2Tbl {
|
|||||||
return $strings;
|
return $strings;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getStrings($filePath) {
|
public static function getStrings_($filePath) {
|
||||||
$executablePath = getcwd() . "\bin\EnquettarM.exe";
|
$executablePath = getcwd() . "\bin\EnquettarM.exe";
|
||||||
$processCommand = "{$executablePath} -e \"$filePath\"";
|
$processCommand = "{$executablePath} -e \"$filePath\"";
|
||||||
shell_exec($processCommand);
|
shell_exec($processCommand);
|
||||||
|
|
||||||
$filePath = "ModString.txt";
|
$ModString = "ModString.txt";
|
||||||
|
|
||||||
$fileLines = file($filePath);
|
$fileLines = file($ModString);
|
||||||
|
|
||||||
$rows = [];
|
$rows = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user