mlib updates

This commit is contained in:
RogueMaster
2022-10-07 02:28:33 -04:00
parent e42ca55552
commit abf1de4722
25 changed files with 155 additions and 160 deletions

View File

@@ -3,9 +3,9 @@
static bool chip8_file_select(Chip8App* chip8) {
furi_assert(chip8);
string_init(chip8->file_name);
string_set_str(chip8->file_name, CHIP8_APP_PATH_FOLDER);
// string_set_str(file_path, chip8->file_name);
chip8->file_name = furi_string_alloc();
furi_string_set(chip8->file_name, CHIP8_APP_PATH_FOLDER);
// furi_string_set(file_path, chip8->file_name);
bool res = dialog_file_browser_show(
chip8->dialogs,
@@ -17,7 +17,7 @@ static bool chip8_file_select(Chip8App* chip8) {
false);
FURI_LOG_I(
"Chip8_file_browser_show", "chip8->file_name: %s", string_get_cstr(chip8->file_name));
"Chip8_file_browser_show", "chip8->file_name: %s", furi_string_get_cstr(chip8->file_name));
FURI_LOG_I("Chip8_file_browser_show", "res: %d", res);
return res;
}
@@ -27,7 +27,7 @@ void chip8_scene_file_select_on_enter(void* context) {
if(chip8_file_select(chip8)) {
FURI_LOG_I(
"Chip8", "chip8_file_select, file_name = %s", string_get_cstr(chip8->file_name));
"Chip8", "chip8_file_select, file_name = %s", furi_string_get_cstr(chip8->file_name));
scene_manager_next_scene(chip8->scene_manager, Chip8WorkView);
} else {
view_dispatcher_stop(chip8->view_dispatcher);

View File

@@ -58,12 +58,12 @@ void chip8_scene_work_on_enter(void* context) {
chip8_set_file_name(app->chip8_view, app->file_name);
string_t file_tmp;
string_init(file_tmp);
FuriString* file_tmp;
file_tmp = furi_string_alloc();
string_printf(file_tmp, "%s", string_get_cstr(app->file_name));
furi_string_printf(file_tmp, "%s", furi_string_get_cstr(app->file_name));
FURI_LOG_I("chip8_scene_work_on_enter", "file_name: %s", string_get_cstr(file_tmp));
FURI_LOG_I("chip8_scene_work_on_enter", "file_name: %s", furi_string_get_cstr(file_tmp));
FURI_LOG_I("chip8_scene_work_on_enter", "START SET BACKUP SCREEN");
chip8_set_backup_screen(app->chip8_view, app->backup_screen);