File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -191,11 +191,20 @@ void update_callback(int sel)
191
191
192
192
if (show_dialog (DIALOG_TYPE_YESNO , "New version available! Download update?" ))
193
193
{
194
- char * pkg_path = (dir_exists ("/data/pkg" ) == SUCCESS ) ? "/data/pkg/apollo-ps4.pkg" : "/data/apollo-ps4.pkg" ;
194
+ char * pkg_path = "/data/apollo-ps4.pkg" ;
195
+ if (dir_exists (USB0_PATH ) == SUCCESS )
196
+ {
197
+ pkg_path = USB0_PATH "apollo-ps4.pkg" ;
198
+ }
199
+ else if (dir_exists ("/data/pkg/" ) == SUCCESS )
200
+ {
201
+ pkg_path = "/data/pkg/apollo-ps4.pkg" ;
202
+ }
203
+
195
204
if (http_download (start , NULL , pkg_path , 1 ))
196
205
show_message ("Update downloaded to %s" , pkg_path );
197
206
else
198
- show_message ("Download error !" );
207
+ show_message ("Unable to download update package file !" );
199
208
}
200
209
201
210
end_update :
You can’t perform that action at this time.
0 commit comments