summaryrefslogtreecommitdiff
path: root/src/common/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/core.c')
-rw-r--r--src/common/core.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/common/core.c b/src/common/core.c
index d38f1597a..33b855d87 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -32,18 +32,9 @@ char **arg_v = NULL;
char *SERVER_NAME = NULL;
char SERVER_TYPE = ATHENA_SERVER_NONE;
-static void (*term_func)(void) = NULL;
#ifndef SVNVERSION
static char eA_svn_version[10];
#endif
-/*======================================
- * CORE : Set function
- *--------------------------------------
- */
-void set_termfunc(void (*termfunc)(void))
-{
- term_func = termfunc;
-}
#ifndef MINICORE // minimalist Core
// Added by Gabuzomeu
@@ -120,9 +111,8 @@ void signals_init (void)
compat_signal(SIGSEGV, sig_proc);
compat_signal(SIGFPE, sig_proc);
#endif
- // Signal to create coredumps by system when necessary (crash)
- compat_signal(SIGILL, SIG_DFL);
#ifndef _WIN32
+ compat_signal(SIGILL, SIG_DFL);
compat_signal(SIGXFSZ, sig_proc);
compat_signal(SIGPIPE, sig_proc);
compat_signal(SIGBUS, SIG_DFL);
@@ -189,10 +179,8 @@ const char* get_svn_revision(void)
*/
static void display_title(void)
{
- //The clearscreeen is usually more of an annoyance than anything else... [Skotlex]
-// ClearScreen(); // clear screen and go up/left (0, 0 position in text)
- //ShowMessage("\n"); //A blank message??
- printf("\n");
+ //ClearScreen(); // clear screen and go up/left (0, 0 position in text)
+ ShowMessage("\n");
ShowMessage(""CL_WTBL" (=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"CL_CLL""CL_NORMAL"\n"); // white writing (37) on blue background (44), \033[K clean until end of file
ShowMessage(""CL_XXBL" ("CL_BT_YELLOW" (c)2005 eAthena Development Team presents "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // yellow writing (33)
ShowMessage(""CL_XXBL" ("CL_BOLD" ______ __ __ "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // 1: bold char, 0: normal char
@@ -213,7 +201,8 @@ static void display_title(void)
}
// Warning if logged in as superuser (root)
-void usercheck(void){
+void usercheck(void)
+{
#ifndef _WIN32
if ((getuid() == 0) && (getgid() == 0)) {
ShowWarning ("You are running eAthena as the root superuser.\n");