From 7fc9c6dfbef57331c8b5eae0943f3fe95f2e63e1 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 13 Apr 2003 12:44:14 +0000 Subject: Removing Baltisot from there --- generic/Main.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 generic/Main.cpp (limited to 'generic/Main.cpp') diff --git a/generic/Main.cpp b/generic/Main.cpp deleted file mode 100644 index 774cf08..0000000 --- a/generic/Main.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "Main.h" -#include "generic.h" -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -Main::Main() : setted(false) {} - -Main::~Main() {} - -extern Main * Application; - -void Main::set_args(int a_argc, char ** a_argv, char ** a_enve) { - if (setted) { - return; - } - argc = a_argc; - argv = a_argv; - enve = a_enve; - setted = true; -} - -int main(int argc, char ** argv, char ** enve) { - int r; - - try { - Application->set_args(argc, argv, enve); - r = Application->startup(); - } - catch (Exit e) { - r = e.GetCode(); - } - catch (GeneralException e) { - printm(M_ERROR, "The application caused an exception: %s\n", e.GetMsg()); - delete Application; - exit(-1); - } - catch (...) { - printm(M_ERROR, "The application caused an unknow exception\n"); - delete Application; - exit(-1); - } - delete Application; - exit(r); -} -- cgit v1.2.3