Update of /cvsroot/arcem/arcem/amiga
In directory vz-cvs-4.sog:/tmp/cvs-serv11499/amiga
Modified Files:
ControlPane.c
Log Message:
Show errors in window (untested)
Index: ControlPane.c
===================================================================
RCS file: /cvsroot/arcem/arcem/amiga/ControlPane.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ControlPane.c 21 Oct 2012 16:59:31 -0000 1.4
+++ ControlPane.c 25 Oct 2012 19:00:59 -0000 1.5
@@ -6,6 +6,7 @@
#include "archio.h"
#include "armarc.h"
#include "ControlPane.h"
+#include "platform.h"
#include <stdarg.h>
#include <stdio.h>
@@ -15,12 +16,27 @@
}
+static void ami_easyrequest(const char *err)
+{
+ struct EasyStruct es;
+ es.es_StructSize = sizeof(struct EasyStruct);
+ es.es_Flags = 0;
+ es.es_Title = "ArcEm";
+ es.es_TextFormat = err;
+ es.es_GadgetFormat = "OK";
+
+ EasyRequestArgs(NULL, &es, NULL, NULL);
+}
+
void ControlPane_Error(int code,const char *fmt,...)
{
+ char err[100];
va_list args;
va_start(args,fmt);
/* Log it */
- vfprintf(stderr,fmt,args);
+ vsnprintf(err, sizeof(err), fmt, args);
+ ami_easyrequest(err);
+
/* Quit */
exit(code);
}
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
--
arcem-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/arcem-cvs