src/mess/filemngr.c
| r3093 | r3094 | |
| 26 | 26 | CONSTANTS |
| 27 | 27 | ***************************************************************************/ |
| 28 | 28 | |
| 29 | /* conditional compilation to enable chosing of image formats - this is not |
| 30 | * yet fully implemented */ |
| 29 | 31 | #define ENABLE_FORMATS 0 |
| 30 | 32 | |
| 33 | /* time (in seconds) to display errors */ |
| 34 | #define ERROR_MESSAGE_TIME 5 |
| 35 | |
| 36 | /* itemrefs for key menu items */ |
| 31 | 37 | #define ITEMREF_NEW_IMAGE_NAME ((void *) 0x0001) |
| 32 | 38 | #define ITEMREF_CREATE ((void *) 0x0002) |
| 33 | 39 | #define ITEMREF_FORMAT ((void *) 0x0003) |
| r3093 | r3094 | |
| 308 | 314 | |
| 309 | 315 | case ENTTYPE_FILE: |
| 310 | 316 | /* TODO - we should be raising a warning here, not an error */ |
| 311 | | popmessage("Cannot save over file"); |
| 317 | ui_popup_time(ERROR_MESSAGE_TIME, "Cannot save over file"); |
| 312 | 318 | do_create = FALSE; |
| 313 | 319 | break; |
| 314 | 320 | |
| 315 | 321 | case ENTTYPE_DIR: |
| 316 | | popmessage("Cannot save over directory"); |
| 322 | ui_popup_time(ERROR_MESSAGE_TIME, "Cannot save over directory"); |
| 317 | 323 | do_create = FALSE; |
| 318 | 324 | break; |
| 319 | 325 | |