mfc_editor_scene_file_select.c 870 B

12345678910111213141516171819202122232425262728
  1. #include "../mfc_editor_app_i.h"
  2. void mfc_editor_scene_file_select_on_enter(void* context) {
  3. MfcEditorApp* instance = context;
  4. if(mfc_editor_prompt_load_file(instance)) {
  5. if(nfc_device_get_protocol(instance->nfc_device) == NfcProtocolMfClassic) {
  6. FURI_LOG_I(
  7. TAG, "Valid MFC file selected at '%s'", furi_string_get_cstr(instance->file_path));
  8. } else {
  9. FURI_LOG_I(
  10. TAG,
  11. "Invalid MFC file selected at '%s'",
  12. furi_string_get_cstr(instance->file_path));
  13. }
  14. }
  15. scene_manager_previous_scene(instance->scene_manager);
  16. }
  17. bool mfc_editor_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  18. UNUSED(context);
  19. UNUSED(event);
  20. return false;
  21. }
  22. void mfc_editor_scene_file_select_on_exit(void* context) {
  23. UNUSED(context);
  24. }