Fix most build errors

This commit is contained in:
Willy-JL
2024-08-10 05:31:06 +02:00
parent 6acfd65697
commit de940394c9
9 changed files with 12 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ static FuriString*
void desktop_keybinds_load(Desktop* desktop, DesktopKeybinds* keybinds) {
for(DesktopKeybindType type = 0; type < DesktopKeybindTypeMAX; type++) {
for(DesktopKeybindKey key = 0; key < DesktopKeybindKeyMAX; key++) {
keybinds[type][key] = furi_string_alloc_set(desktop_keybinds_defaults[type][key]);
*keybinds[type][key] = furi_string_alloc_set(desktop_keybinds_defaults[type][key]);
}
}
@@ -120,8 +120,8 @@ void desktop_keybinds_load(Desktop* desktop, DesktopKeybinds* keybinds) {
furi_string_printf(
keybind_name, "%s%s", desktop_keybind_types[type], desktop_keybind_keys[type]);
if(!flipper_format_read_string(
file, furi_string_get_cstr(keybind_name), keybinds[type][key])) {
furi_string_set(keybinds[type][key], desktop_keybinds_defaults[type][key]);
file, furi_string_get_cstr(keybind_name), *keybinds[type][key])) {
furi_string_set(*keybinds[type][key], desktop_keybinds_defaults[type][key]);
goto fail;
}
}
@@ -147,7 +147,7 @@ void desktop_keybinds_save(Desktop* desktop, const DesktopKeybinds* keybinds) {
if(!flipper_format_write_string_cstr(
file,
furi_string_get_cstr(keybind_name),
furi_string_get_cstr(keybinds[type][key]))) {
furi_string_get_cstr(*keybinds[type][key]))) {
goto fail;
}
}
@@ -164,7 +164,7 @@ void desktop_keybinds_save(Desktop* desktop, const DesktopKeybinds* keybinds) {
void desktop_keybinds_free(DesktopKeybinds* keybinds) {
for(DesktopKeybindType type = 0; type < DesktopKeybindTypeMAX; type++) {
for(DesktopKeybindKey key = 0; key < DesktopKeybindKeyMAX; key++) {
furi_string_free(keybinds[type][key]);
furi_string_free(*keybinds[type][key]);
}
}
}