weebo_scene_file_select.c 733 B

12345678910111213141516171819202122232425
  1. #include "../weebo_i.h"
  2. void weebo_scene_file_select_on_enter(void* context) {
  3. Weebo* weebo = context;
  4. // Process file_select return
  5. weebo_set_loading_callback(weebo, weebo_show_loading_popup, weebo);
  6. if(weebo_file_select(weebo)) {
  7. scene_manager_next_scene(weebo->scene_manager, WeeboSceneSavedMenu);
  8. } else {
  9. scene_manager_search_and_switch_to_previous_scene(
  10. weebo->scene_manager, WeeboSceneMainMenu);
  11. }
  12. weebo_set_loading_callback(weebo, NULL, weebo);
  13. }
  14. bool weebo_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  15. UNUSED(context);
  16. UNUSED(event);
  17. return false;
  18. }
  19. void weebo_scene_file_select_on_exit(void* context) {
  20. UNUSED(context);
  21. }