Skip to content

Commit

Permalink
Added a couple of mounted devices to FTP.
Browse files Browse the repository at this point in the history
Added a couple of mounted devices to FTP.
  • Loading branch information
Rinnegatamante committed Sep 8, 2016
1 parent 53a56f5 commit 7919d05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net_module/main.c
Expand Up @@ -76,8 +76,12 @@ int main_thread(SceSize args, void *argp) {
case FTP_SWITCH:
request = NONE; // Resetting request field
ftp_state = !ftp_state;
if (ftp_state) ftpvita_init(vita_ip, &vita_port);
else ftpvita_fini();
if (ftp_state){
ftpvita_add_device("app0:");
ftpvita_add_device("ux0:");
ftpvita_add_device("savedata0:");
ftpvita_init(vita_ip, &vita_port);
}else ftpvita_fini();
default:
break;
}
Expand Down

0 comments on commit 7919d05

Please sign in to comment.