Add tools to the Workbench Tools menu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

error.c 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. ToolsMenu - Add tools to the Workbench Tools menu
  3. Copyright (C) 2015, 2018 Kim Fastrup Larsen
  4. This program is free software: you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation, either ver-
  7. sion 3 of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be use-
  9. ful, but WITHOUT ANY WARRANTY; without even the implied war-
  10. ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. See the GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public Li-
  13. cense along with this program. If not, see
  14. <http://www.gnu.org/licenses/>.
  15. The author can be contacted on <kimflarsen@hotmail.com>
  16. */
  17. #include <intuition/intuition.h>
  18. #include <clib/intuition_protos.h>
  19. #ifdef USE_PRAGMAS
  20. #include <proto/intuition.h>
  21. #endif
  22. #define CATCOMP_NUMBERS
  23. #include "catalog.h"
  24. #include "common.h"
  25. #include "error.h"
  26. #include "strings.h"
  27. extern struct IntuitionBase *IntuitionBase;
  28. void error_message(char *fmt, char *arg)
  29. {
  30. static struct EasyStruct easy_struct = {
  31. sizeof(struct EasyStruct), 0, APP_NAME
  32. };
  33. if (IntuitionBase == NULL)
  34. return;
  35. easy_struct.es_TextFormat = fmt;
  36. easy_struct.es_GadgetFormat = get_string(MSG_GAD_CONTINUE);
  37. EasyRequestArgs(NULL, &easy_struct, NULL, &arg);
  38. }