M*LIB: non-inlined strings, FuriString primitive (#1795)
* Quicksave 1 * Header stage complete * Source stage complete * Lint & merge fixes * Includes * Documentation step 1 * FBT: output free size considering BT STACK * Documentation step 2 * py lint * Fix music player plugin * unit test stage 1: string allocator, mem, getters, setters, appends, compare, search. * unit test: string equality * unit test: string replace * unit test: string start_with, end_with * unit test: string trim * unit test: utf-8 * Rename * Revert fw_size changes * Simplify CLI backspace handling * Simplify CLI character insert * Merge fixes * Furi: correct filenaming and spelling * Bt: remove furi string include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ void updater_scene_loadcfg_on_enter(void* context) {
|
||||
malloc(sizeof(UpdaterManifestProcessingState));
|
||||
pending_upd->manifest = update_manifest_alloc();
|
||||
|
||||
if(update_manifest_init(pending_upd->manifest, string_get_cstr(updater->startup_arg))) {
|
||||
if(update_manifest_init(pending_upd->manifest, furi_string_get_cstr(updater->startup_arg))) {
|
||||
widget_add_string_element(
|
||||
updater->widget, 64, 12, AlignCenter, AlignCenter, FontPrimary, "Update");
|
||||
|
||||
@@ -37,7 +37,7 @@ void updater_scene_loadcfg_on_enter(void* context) {
|
||||
32,
|
||||
AlignCenter,
|
||||
AlignCenter,
|
||||
string_get_cstr(pending_upd->manifest->version),
|
||||
furi_string_get_cstr(pending_upd->manifest->version),
|
||||
true);
|
||||
|
||||
widget_add_button_element(
|
||||
@@ -72,7 +72,7 @@ bool updater_scene_loadcfg_on_event(void* context, SceneManagerEvent event) {
|
||||
switch(event.event) {
|
||||
case UpdaterCustomEventStartUpdate:
|
||||
updater->preparation_result =
|
||||
update_operation_prepare(string_get_cstr(updater->startup_arg));
|
||||
update_operation_prepare(furi_string_get_cstr(updater->startup_arg));
|
||||
if(updater->preparation_result == UpdatePrepareResultOK) {
|
||||
furi_hal_power_reset();
|
||||
} else {
|
||||
@@ -99,7 +99,7 @@ void updater_scene_loadcfg_on_exit(void* context) {
|
||||
|
||||
if(updater->pending_update) {
|
||||
update_manifest_free(updater->pending_update->manifest);
|
||||
string_clear(updater->pending_update->message);
|
||||
furi_string_free(updater->pending_update->message);
|
||||
}
|
||||
|
||||
widget_reset(updater->widget);
|
||||
|
Reference in New Issue
Block a user