seos_scene_file_select.c 891 B

1234567891011121314151617181920212223242526
  1. #include "../seos_i.h"
  2. #include "../seos_credential.h"
  3. void seos_scene_file_select_on_enter(void* context) {
  4. Seos* seos = context;
  5. SeosCredential* seos_credential = seos->credential;
  6. // Process file_select return
  7. seos_credential_set_loading_callback(seos_credential, seos_show_loading_popup, seos);
  8. if(seos_credential_file_select(seos_credential)) {
  9. seos->flow_mode = FLOW_CRED;
  10. scene_manager_next_scene(seos->scene_manager, SeosSceneSavedMenu);
  11. } else {
  12. scene_manager_search_and_switch_to_previous_scene(seos->scene_manager, SeosSceneMainMenu);
  13. }
  14. seos_credential_set_loading_callback(seos_credential, NULL, seos);
  15. }
  16. bool seos_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  17. UNUSED(context);
  18. UNUSED(event);
  19. return false;
  20. }
  21. void seos_scene_file_select_on_exit(void* context) {
  22. UNUSED(context);
  23. }