1,10 → 1,10 |
#ifdef LANG_RUS |
#define DL_WINDOW_HEADER "¥¥¤¦¥à § £à㧮ª" |
#define START_DOWNLOADING " ç âì § ª çªã" |
#define STOP_DOWNLOADING "áâ ®¢¨âì" |
#define SHOW_IN_FOLDER "®ª § âì ¢ ¯ ¯ª¥" |
#define OPEN_FILE_TEXT "âªàëâì ä ©«" |
#define FILE_SAVED_AS "'¥¥¤¦¥à § £à㧮ª\n ©« á®åà ¥ ª ª " |
#define DL_WINDOW_HEADER "¥¥¤¦¥à § £à㧮ª" |
#define START_DOWNLOADING " ç âì § ª çªã" |
#define STOP_DOWNLOADING "áâ ®¢¨âì" |
#define SHOW_IN_FOLDER "®ª § âì ¢ ¯ ¯ª¥" |
#define OPEN_FILE_TEXT "âªàëâì ä ©«" |
#define FILE_SAVED_AS "'¥¥¤¦¥à § £à㧮ª\n ©« á®åà ¥ ª ª " |
#define KB_RECEIVED " ¯®«ã祮" |
#else |
#define DL_WINDOW_HEADER "Download Manager" |
26,8 → 26,11 |
|
byte downloader_opened; |
char downloader_stak[4096]; |
char str[2048]; |
char aux[2048]; |
|
|
|
void Downloader() |
{ |
int key; |
41,7 → 44,7 |
|
loop() |
{ |
WaitEventTimeout(40); |
WaitEventTimeout(30); |
switch(EAX & 0xFF) |
{ |
CASE evMouse: |
84,11 → 87,18 |
if (!dir_exists(#save_to)) CreateDir(#save_to); |
strcpy(#filepath, #save_to); |
chrcat(#filepath, '/'); |
strcat(#filepath, #downloader_edit+strrchr(#downloader_edit, '/')); |
// Clean all slashes at the end |
strcpy(#aux, #downloader_edit); |
while (aux[strlen(#aux)-1] == '/') { |
aux[strlen(#aux)-1] = 0; |
} |
strcat(#filepath, #aux+strrchr(#aux, '/')); |
|
if (WriteFile(downloader.data_downloaded_size, downloader.bufpointer, #filepath)==0) |
sprintf(#notify_message, "%s%s%s",FILE_SAVED_AS,#filepath,"' -Dt"); |
else |
sprintf(#notify_message, "%s%s%s","'Download manager\nError! Can\96t save file as ",#filepath,"' -Et"); |
|
notify(#notify_message); |
StopDownloading(); |
DL_Draw_Window(); |
171,6 → 181,4 |
ed.blur_border_color = 0xFFFfff; |
ed.flags = 10b; |
DL_Draw_Window(); |
} |
|
|
} |