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,11 → 26,8 |
|
byte downloader_opened; |
char downloader_stak[4096]; |
char str[2048]; |
char aux[2048]; |
|
|
|
void Downloader() |
{ |
int key; |
44,7 → 41,7 |
|
loop() |
{ |
WaitEventTimeout(30); |
WaitEventTimeout(40); |
switch(EAX & 0xFF) |
{ |
CASE evMouse: |
87,18 → 84,11 |
if (!dir_exists(#save_to)) CreateDir(#save_to); |
strcpy(#filepath, #save_to); |
chrcat(#filepath, '/'); |
// 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, '/')); |
|
strcat(#filepath, #downloader_edit+strrchr(#downloader_edit, '/')); |
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(); |
181,4 → 171,6 |
ed.blur_border_color = 0xFFFfff; |
ed.flags = 10b; |
DL_Draw_Window(); |
} |
} |
|
|