desktop-ui: Fix broken firmware path setting. (#1374)

* Fix the firmware search path not being saved or loaded from the
settings file.
* Fix `FirmwareSettings::findFirmware` not using the right casing when
locating the firmware directory.
このコミットが含まれているのは:
Steveice10 2024-01-22 06:20:27 -08:00 committed by GitHub
コミット 801eaa4088
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: B5690EEEBB952194
2個のファイルの変更3行の追加2行の削除

ファイルの表示

@ -112,7 +112,7 @@ auto FirmwareSettings::eventScan() -> void {
}
auto FirmwareSettings::findFirmware(string hash) -> string {
auto firmwarePath = settings.paths.firmware ? settings.paths.firmware : locate("firmware/");
auto firmwarePath = settings.paths.firmware ? settings.paths.firmware : locate("Firmware/");
if(!directory::exists(firmwarePath)) return {};
for(auto& filename : directory::files(firmwarePath)) {
@ -131,4 +131,4 @@ auto FirmwareSettings::findFirmware(string hash) -> string {
}
return {};
}
}

ファイルの表示

@ -105,6 +105,7 @@ auto Settings::process(bool load) -> void {
bind(natural, "Rewind/Frequency", rewind.frequency);
bind(string, "Paths/Home", paths.home);
bind(string, "Paths/Firmware", paths.firmware);
bind(string, "Paths/Saves", paths.saves);
bind(string, "Paths/Screenshots", paths.screenshots);
bind(string, "Paths/Debugging", paths.debugging);