mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 03:28:36 -07:00
Fix most build errors
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user