Skip to content

Commit

Permalink
- Fix FTP device when network init isn't set to boot time
Browse files Browse the repository at this point in the history
  • Loading branch information
emukidid committed Aug 8, 2017
1 parent 87afd9e commit 03a3f40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cube/swiss/source/devices/ftp/deviceHandler-FTP.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "deviceHandler-FAT.h"
#include "exi.h"
#include "ftp_devoptab.h"
#include "bba.h"

/* FTP Globals */
extern int net_initialized;
Expand Down Expand Up @@ -184,6 +185,7 @@ s32 deviceHandler_FTP_readFile(file_handle* file, void* buffer, u32 length){
}

s32 deviceHandler_FTP_init(file_handle* file){
init_network();
return 1;
}

Expand Down

0 comments on commit 03a3f40

Please sign in to comment.