diff --git a/catalogs/avalanche.cd b/catalogs/avalanche.cd index 973b0a1..a5b2efe 100755 --- a/catalogs/avalanche.cd +++ b/catalogs/avalanche.cd @@ -249,3 +249,6 @@ MSG_PARENT (//) MSG_PACKEDSIZE (//) Packed Size ; +MSG_SNAPSHOT_WARNING (//) +This will not be persistent until prefs are saved! +; diff --git a/catalogs/avalanche.cs b/catalogs/avalanche.cs index cce5f92..fd14f77 100755 --- a/catalogs/avalanche.cs +++ b/catalogs/avalanche.cs @@ -253,3 +253,6 @@ New archive... MSG_PACKEDSIZE Packed Size ; +MSG_SNAPSHOT_WARNING +This will not be persistent until prefs are saved! +; diff --git a/catalogs/avalanche.ct b/catalogs/avalanche.ct index c120cf1..548aee5 100755 --- a/catalogs/avalanche.ct +++ b/catalogs/avalanche.ct @@ -331,3 +331,7 @@ MSG_PACKEDSIZE Packed Size ; Packed Size ; +MSG_SNAPSHOT_WARNING +This will not be persistent until prefs are saved! +; This will not be persistent until prefs are saved! +; diff --git a/src/locale_strings.h b/src/locale_strings.h index 0bd6a1c..fb02cb0 100644 --- a/src/locale_strings.h +++ b/src/locale_strings.h @@ -123,6 +123,7 @@ #define MSG_DIR 79 #define MSG_PARENT 80 #define MSG_PACKEDSIZE 81 +#define MSG_SNAPSHOT_WARNING 82 #endif /* CATCOMP_NUMBERS */ @@ -214,6 +215,7 @@ #define MSG_DIR_STR "(dir)" #define MSG_PARENT_STR "(parent)" #define MSG_PACKEDSIZE_STR "Packed Size" +#define MSG_SNAPSHOT_WARNING_STR "This will not be persistent until prefs are saved!" #endif /* CATCOMP_STRINGS */ @@ -389,6 +391,8 @@ STATIC CONST UBYTE CatCompBlock[] = MSG_PARENT_STR "\x00\x00" "\x00\x00\x00\x51\x00\x0C" MSG_PACKEDSIZE_STR "\x00" + "\x00\x00\x00\x52\x00\x34" + MSG_SNAPSHOT_WARNING_STR "\x00\x00" }; #endif /* CATCOMP_BLOCK */ diff --git a/src/req.c b/src/req.c index 7bc9d08..178a543 100644 --- a/src/req.c +++ b/src/req.c @@ -147,6 +147,25 @@ ULONG ask_quithide_req(void) return ret; } +ULONG warning_req(void *awin, const char *message) +{ + int ret = 1; + + Object *obj = RequesterObj, + REQ_TitleText, VERS, + REQ_Type, REQTYPE_INFO, + REQ_Image, REQIMAGE_WARNING, + REQ_BodyText, message , + REQ_GadgetText, locale_get_string( MSG_OK ) , + End; + + if(obj) { + ret = OpenRequester(obj, window_get_window(awin)); + DisposeObject(obj); + } + return ret; +} + ULONG ask_question(void *awin, const char *q, const char *f) { char message[200]; diff --git a/src/req.h b/src/req.h index 9e6e3a3..b4d78d6 100644 --- a/src/req.h +++ b/src/req.h @@ -27,4 +27,5 @@ void show_about(void *awin); int open_error_req(const char *message, const char *button, void *awin); void open_info_req(const char *message, const char *buttons, void *awin); void req_show_arc_info(void *awin); +ULONG warning_req(void *awin, const char *message); #endif diff --git a/src/win.c b/src/win.c index 887e1c5..d3f88af 100644 --- a/src/win.c +++ b/src/win.c @@ -2047,6 +2047,8 @@ ULONG window_handle_input_events(void *awin, struct avalanche_config *config, UL GetAttr(WA_Left, aw->objects[OID_MAIN], (APTR)&config->win_y); GetAttr(WA_Width, aw->objects[OID_MAIN], (APTR)&config->win_w); GetAttr(WA_Height, aw->objects[OID_MAIN], (APTR)&config->win_h); + + warning_req(aw, locale_get_string(MSG_SNAPSHOT_WARNING)); break; case 3: //prefs