seos_scene_file_select.c 836 B

12345678910111213141516171819202122232425
  1. #include "../seos_i.h"
  2. #include "../seos_emulator.h"
  3. void seos_scene_file_select_on_enter(void* context) {
  4. Seos* seos = context;
  5. SeosEmulator* seos_emulator = seos->seos_emulator;
  6. // Process file_select return
  7. seos_emulator_set_loading_callback(seos_emulator, seos_show_loading_popup, seos);
  8. if(seos_emulator_file_select(seos_emulator)) {
  9. scene_manager_next_scene(seos->scene_manager, SeosSceneSavedMenu);
  10. } else {
  11. scene_manager_search_and_switch_to_previous_scene(seos->scene_manager, SeosSceneStart);
  12. }
  13. seos_emulator_set_loading_callback(seos_emulator, NULL, seos);
  14. }
  15. bool seos_scene_file_select_on_event(void* context, SceneManagerEvent event) {
  16. UNUSED(context);
  17. UNUSED(event);
  18. return false;
  19. }
  20. void seos_scene_file_select_on_exit(void* context) {
  21. UNUSED(context);
  22. }