@@ -64,7 +64,7 @@ static ssize_t cmd_put(s_client *client, long size, char *name, char *dst) {
6464 ssize_t received = p2s_recv_file (client -> cmd_sock , fd , size );
6565 s_close (fd );
6666
67- psp2shell_print_color ( COL_GREEN , "sent `%s` to `%s` (%i)" , name , new_path , received );
67+ PRINT_OK ( "received `%s` to `%s` (%i)\n " , name , new_path , received );
6868
6969 return received ;
7070}
@@ -157,7 +157,9 @@ static void cmd_reload(int sock, long size) {
157157}
158158
159159static void cmd_reset () {
160- p2s_reset_running_app ();
160+ if (p2s_reset_running_app () != 0 ) {
161+ PRINT_ERR ("can't reset SceShell...\n" );
162+ }
161163}
162164
163165static void cmd_cd (s_client * client , char * path ) {
@@ -199,7 +201,7 @@ static void cmd_cd(s_client *client, char *path) {
199201 s_fileListEmpty (& client -> fileList );
200202 int res = s_fileListGetEntries (& client -> fileList , client -> fileList .path );
201203 if (res < 0 ) {
202- psp2shell_print_color ( COL_RED , "could not cd to directory: %s\n" , client -> fileList .path );
204+ PRINT_ERR ( "could not cd to directory: %s\n" , client -> fileList .path );
203205 strncpy (client -> fileList .path , oldPath , MAX_PATH_LENGTH );
204206 s_fileListGetEntries (& client -> fileList , oldPath );
205207 }
0 commit comments