Fixed typo
This commit is contained in:
@@ -19,7 +19,7 @@ class optimizer_settings
|
|||||||
$raw = file_get_contents($this->path);
|
$raw = file_get_contents($this->path);
|
||||||
$json = json_decode($raw, true);
|
$json = json_decode($raw, true);
|
||||||
|
|
||||||
$this->osu_path = $json["osu_folder"] ?? "";
|
$this->osu_path = $json["osu_path"] ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function save()
|
public function save()
|
||||||
@@ -28,7 +28,7 @@ class optimizer_settings
|
|||||||
$json["osu_path"] = $this->osu_path;
|
$json["osu_path"] = $this->osu_path;
|
||||||
|
|
||||||
$raw = json_encode($json);
|
$raw = json_encode($json);
|
||||||
file_put_contents($this->path);
|
file_put_contents($this->path, $raw);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function set_osu_path($path) : void
|
public function set_osu_path($path) : void
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<div class="warn">
|
<div class="warn">
|
||||||
<h2>SETTINGS</h2>
|
<h2>SETTINGS</h2>
|
||||||
<form method="POST" action="./?settings">
|
<form id="settings" method="POST" action="./?settings">
|
||||||
<label for="osu_folder">osu! folder: </label>
|
<label for="osu_folder">osu! folder: </label>
|
||||||
<input type="text" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
|
<input type="text" form="settings" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
|
||||||
<p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
|
<p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
|
||||||
{{ SETTINGS_BACK }}
|
{{ SETTINGS_BACK }}
|
||||||
<input type="submit" value="Save" />
|
<input type="submit" form="settings" value="Save" />
|
||||||
</form>
|
</form>
|
||||||
<form id="cancelform" method="GET" action="./"></form>
|
<form id="cancelform" method="GET" action="./"></form>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user