Skip to content

Commit

Permalink
Update scripts.php
Browse files Browse the repository at this point in the history
Add conf_dir to lua.conf
  • Loading branch information
markjcrane authored Aug 8, 2016
1 parent 7649e7f commit 99173fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/resources/classes/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ public function write_config() {
//make the config.lua
$tmp = "\n";
$tmp .= "--set the variables\n";
if (strlen($_SESSION['switch']['conf']['dir']) > 0) {
$tmp .= $this->correct_path(" conf_dir = [[".$_SESSION['switch']['conf']['dir']."]];\n");
}
if (strlen($_SESSION['switch']['sounds']['dir']) > 0) {
$tmp .= $this->correct_path(" sounds_dir = [[".$_SESSION['switch']['sounds']['dir']."]];\n");
}
if (strlen($_SESSION['switch']['phrases']['dir']) > 0) {
$tmp .= $this->correct_path(" phrases_dir = [[".$_SESSION['switch']['phrases']['dir']."]];\n");
}
if (strlen($_SESSION['switch']['db']['dir']) > 0) {
$tmp .= $this->correct_path(" database_dir = [[".$_SESSION['switch']['db']['dir']."]];\n");
}
Expand Down

0 comments on commit 99173fb

Please sign in to comment.