File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 20
20
#define UNUSED (x ) (void)(x)
21
21
22
22
#define FTP_PORT 1337
23
- #define DEFAULT_FILE_BUF_SIZE (1 * 1024)
23
+ #define DEFAULT_FILE_BUF_SIZE (1 * 1024 * 1024 )
24
24
25
25
#define FTP_DEFAULT_PATH "/"
26
26
Original file line number Diff line number Diff line change 2
2
#include <pspctrl.h>
3
3
#include <pspkernel.h>
4
4
#include <psppower.h>
5
- #include <pspsdk.h>
6
5
#include <sys/unistd.h>
7
6
8
7
#include "common.h"
9
8
#include "config.h"
10
- #include "fs.h"
11
9
#include "menus/menu_main.h"
12
10
#include "kubridge.h"
13
11
#include "systemctrl.h"
Original file line number Diff line number Diff line change 14
14
#include "dirbrowse.h"
15
15
#include "ftppsp.h"
16
16
#include "glib2d_helper.h"
17
+ #include "screenshot.h"
17
18
#include "status_bar.h"
18
19
#include "textures.h"
19
20
#include "utils.h"
@@ -44,7 +45,6 @@ int FTP_DisplayNetDialog(void) {
44
45
45
46
while (running ) {
46
47
g2dClear (BLACK_BG );
47
- StatusBar_DisplayTime ();
48
48
g2dFlip (G2D_VSYNC );
49
49
50
50
switch (sceUtilityNetconfGetStatus ()) {
@@ -113,13 +113,18 @@ void Menu_DisplayFTP(void) {
113
113
114
114
FTP_DisplayNetDialog ();
115
115
116
- if (running == 0 ) {
117
- FTP_NetTerm ();
118
- return ;
119
- }
120
-
121
116
ret = ftppsp_init (psp_ip , & psp_port );
122
- ftppsp_add_device ("ms0:/" );
117
+
118
+ if (is_psp_go ) {
119
+ if (is_ms_inserted ) {
120
+ ftppsp_add_device ("ms0:" );
121
+ ftppsp_add_device ("ef0:" );
122
+ }
123
+ else
124
+ ftppsp_add_device ("ef0:" );
125
+ }
126
+ else
127
+ ftppsp_add_device ("ms0:" );
123
128
124
129
char * msg = malloc (64 );
125
130
@@ -161,6 +166,9 @@ void Menu_DisplayFTP(void) {
161
166
162
167
Utils_ReadControls ();
163
168
169
+ if (((Utils_IsButtonHeld (PSP_CTRL_LTRIGGER )) && (Utils_IsButtonPressed (PSP_CTRL_RTRIGGER ))) || ((Utils_IsButtonHeld (PSP_CTRL_RTRIGGER )) && (Utils_IsButtonPressed (PSP_CTRL_LTRIGGER ))))
170
+ Screenshot_Capture ();
171
+
164
172
if ((Utils_IsButtonPressed (PSP_CTRL_ENTER )) || (Utils_IsButtonPressed (PSP_CTRL_CANCEL ))) {
165
173
sceKernelDelayThread (100 * 1000 );
166
174
break ;
You can’t perform that action at this time.
0 commit comments