Skip to content

Commit e299c9d

Browse files
committed
Defined a standard RG_UPDATER_DOWNLOAD_LOCATION
1 parent df04619 commit e299c9d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

components/retro-go/config.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@
8484
#define RG_UPDATER_ENABLE 1
8585
#endif
8686

87-
// If either of the following isn't defined then the updater will only perform version *checks*, not self-update
87+
// If RG_UPDATER_APPLICATION is not defined then the updater only performs version *checks*, not self-update
8888
// #define RG_UPDATER_APPLICATION RG_APP_FACTORY
89-
// #define RG_UPDATER_DOWNLOAD_LOCATION RG_STORAGE_ROOT "/odroid/firmware"
89+
90+
#ifndef RG_UPDATER_DOWNLOAD_LOCATION
91+
#define RG_UPDATER_DOWNLOAD_LOCATION RG_STORAGE_ROOT "/retro-go/updates"
92+
#endif
9093

9194
#ifndef RG_UPDATER_GITHUB_RELEASES
9295
#define RG_UPDATER_GITHUB_RELEASES "https://api.github.com/repos/ducalex/retro-go/releases?per_page=10"

components/retro-go/rg_storage.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define RG_BASE_PATH_SAVES RG_BASE_PATH "/saves"
1616
#define RG_BASE_PATH_THEMES RG_BASE_PATH "/themes"
1717
#define RG_BASE_PATH_BORDERS RG_BASE_PATH "/borders"
18+
#define RG_BASE_PATH_UPDATES RG_BASE_PATH "/updates"
1819

1920
typedef struct
2021
{

launcher/main/updater.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static rg_gui_event_t view_release_cb(rg_gui_option_t *option, rg_gui_event_t ev
130130

131131
if (event == RG_DIALOG_ENTER)
132132
{
133-
#if defined(RG_UPDATER_APPLICATION) && defined(RG_UPDATER_DOWNLOAD_LOCATION)
133+
#if defined(RG_UPDATER_APPLICATION)
134134
rg_gui_option_t options[release->assets_count + 4];
135135
rg_gui_option_t *opt = options;
136136

0 commit comments

Comments
 (0)