Show warnings on OS3 with an EasyRequest

This commit is contained in:
Chris Young 2016-01-26 00:10:11 +00:00
parent 2c2dc0f2bc
commit 78dec4d515

View File

@ -22,6 +22,10 @@
#include <proto/exec.h> #include <proto/exec.h>
#include <proto/utility.h> #include <proto/utility.h>
#ifndef __amigaos4__
#include <proto/intuition.h> // for EasyRequest
#endif
#include "utils/corestrings.h" #include "utils/corestrings.h"
#include "utils/log.h" #include "utils/log.h"
#include "utils/file.h" #include "utils/file.h"
@ -100,7 +104,15 @@ static LONG ami_misc_req(const char *message, uint32 type)
TDR_Window, cur_gw ? cur_gw->shared->win : NULL, TDR_Window, cur_gw ? cur_gw->shared->win : NULL,
TAG_DONE); TAG_DONE);
#else #else
printf("%s\n", message); struct EasyStruct easyreq = {
sizeof(struct EasyStruct),
0,
messages_get("NetSurf"),
message,
messages_get("OK"),
};
ret = EasyRequest(cur_gw ? cur_gw->shared->win : NULL, &easyreq, NULL);
#endif #endif
return ret; return ret;
} }