Skip to content

Commit

Permalink
Added RG_APP_UPDATER that maps to RG_APP_FACTORY by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Jul 19, 2024
1 parent f1b45b0 commit e91117d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions components/retro-go/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
#define RG_APP_FACTORY NULL
#endif

#ifndef RG_APP_UPDATER
#define RG_APP_UPDATER RG_APP_FACTORY
// #define RG_APP_UPDATER "updater"
#endif

#ifndef RG_PATH_MAX
#define RG_PATH_MAX 255
#endif
Expand Down
2 changes: 1 addition & 1 deletion launcher/main/updater.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static rg_gui_event_t view_release_cb(rg_gui_option_t *option, rg_gui_event_t ev
if (download_file(release->assets[sel].url, dest_path))
{
if (rg_gui_confirm("Download complete!", "Reboot to flash?", true))
rg_system_switch_app(RG_APP_FACTORY, NULL, NULL, 0);
rg_system_switch_app(RG_APP_UPDATER, NULL, dest_path, 0);
}
}
gui_redraw();
Expand Down

0 comments on commit e91117d

Please sign in to comment.