#include "../mfc_editor_app_i.h" void mfc_editor_scene_file_select_on_enter(void* context) { MfcEditorApp* instance = context; // File select scene should repeat itself if the file load failed // or if the user quit the shadow file prompt, not the file selector MfcEditorPromptResponse prompt_response = MfcEditorPromptResponseFailure; while(prompt_response == MfcEditorPromptResponseFailure || prompt_response == MfcEditorPromptResponseExitedShadow) { prompt_response = mfc_editor_prompt_load_file(instance); } if(prompt_response == MfcEditorPromptResponseSuccess) { if(nfc_device_get_protocol(instance->nfc_device) == NfcProtocolMfClassic) { scene_manager_set_scene_state(instance->scene_manager, MfcEditorSceneSectorSelect, 0); scene_manager_next_scene(instance->scene_manager, MfcEditorSceneSectorSelect); } else { scene_manager_next_scene(instance->scene_manager, MfcEditorSceneInvalidFile); } } else { scene_manager_search_and_switch_to_previous_scene( instance->scene_manager, MfcEditorSceneStart); } } bool mfc_editor_scene_file_select_on_event(void* context, SceneManagerEvent event) { UNUSED(context); UNUSED(event); return false; } void mfc_editor_scene_file_select_on_exit(void* context) { UNUSED(context); }