* 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.
このコミットが含まれているのは:
コミット
801eaa4088
|
@ -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);
|
||||
|
|
読み込み中…
新しいイシューから参照