Rev 7913 | Rev 7920 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7913 | Rev 7914 | ||
---|---|---|---|
Line 204... | Line 204... | ||
204 | if (strlen(#param)>1) && (param[strlen(#param)-1]=='/') param[strlen(#param)-1]=NULL; //no "/" at the end |
204 | if (strlen(#param)>1) && (param[strlen(#param)-1]=='/') param[strlen(#param)-1]=NULL; //no "/" at the end |
Line 205... | Line 205... | ||
205 | 205 | ||
206 | if (dir_exists(#param)) { |
206 | if (dir_exists(#param)) { |
207 | strcpy(#path, #param); |
207 | strcpy(#path, #param); |
- | 208 | } else { |
|
208 | } else { |
209 | file_size stdcall (#param); |
- | 210 | if (EAX==-1) notify(T_NOTIFY_APP_PARAM_WRONG); |
|
- | 211 | else { |
|
- | 212 | param[strrchr(#param, '/')-1] = '\0'; |
|
- | 213 | strcpy(#path, #param); |
|
- | 214 | //in future we need also to select file |
|
209 | notify(T_NOTIFY_APP_PARAM_WRONG); |
215 | } |
210 | } |
216 | } |
Line 211... | Line 217... | ||
211 | } |
217 | } |
212 | 218 |