Diff reduction
T. Joseph Carter
7 years ago
35 | 35 | // define time when cache ftp dir.listing must be refreshed |
36 | 36 | #define RENEW_TIME 24*3600 |
37 | 37 | |
38 | char * md5str (const char *input); // forward declaration of md5str func | |
38 | char * | |
39 | md5str (const char *input); // forward declaration of md5str func | |
39 | 40 | |
40 | 41 | TCHAR g_sFTPDirListing[512] = TEXT("cache/ftp."); // name for FTP-directory listing |
41 | 42 | //////////////////////////////////////////////////////////////////////////////////////// |
112 | 113 | font_print_centered(sx/2 ,5 * facy , ftp_dir, screen, 1.5 * facx, 1.3 * facy); |
113 | 114 | if(ch) ftp_dir[NORMAL_LENGTH] = ch; //restore cut-off char |
114 | 115 | |
115 | font_print_centered(sx/2,20 * facy, "Connecting to FTP server... Please wait.", screen, 1 * facx, 1 * facy); | |
116 | font_print_centered(sx/2,20 * facy,"Connecting to FTP server... Please wait.", screen, 1 * facx, 1 * facy); | |
116 | 117 | SDL_Flip(screen); // show the screen |
117 | 118 | |
118 | 119 | bool OKI; |
121 | 122 | OKI = false; // use this file |
122 | 123 | } |
123 | 124 | else { |
124 | OKI = ftp_get(ftp_dir, ftpdirpath); // get ftp dir listing | |
125 | OKI = ftp_get(ftp_dir,ftpdirpath); // get ftp dir listing | |
125 | 126 | } |
126 | 127 | #else |
127 | 128 | // in WIN32 let's use constant caching? -- need to be redone using file.mtime |