|
@@ -32,18 +32,9 @@ char **arg_v = NULL;
|
|
|
|
|
|
char *SERVER_NAME = NULL;
|
|
char *SERVER_NAME = NULL;
|
|
char SERVER_TYPE = ATHENA_SERVER_NONE;
|
|
char SERVER_TYPE = ATHENA_SERVER_NONE;
|
|
-static void (*term_func)(void) = NULL;
|
|
|
|
#ifndef SVNVERSION
|
|
#ifndef SVNVERSION
|
|
static char eA_svn_version[10];
|
|
static char eA_svn_version[10];
|
|
#endif
|
|
#endif
|
|
-/*======================================
|
|
|
|
- * CORE : Set function
|
|
|
|
- *--------------------------------------
|
|
|
|
- */
|
|
|
|
-void set_termfunc(void (*termfunc)(void))
|
|
|
|
-{
|
|
|
|
- term_func = termfunc;
|
|
|
|
-}
|
|
|
|
|
|
|
|
#ifndef MINICORE // minimalist Core
|
|
#ifndef MINICORE // minimalist Core
|
|
// Added by Gabuzomeu
|
|
// Added by Gabuzomeu
|
|
@@ -120,9 +111,8 @@ void signals_init (void)
|
|
compat_signal(SIGSEGV, sig_proc);
|
|
compat_signal(SIGSEGV, sig_proc);
|
|
compat_signal(SIGFPE, sig_proc);
|
|
compat_signal(SIGFPE, sig_proc);
|
|
#endif
|
|
#endif
|
|
- // Signal to create coredumps by system when necessary (crash)
|
|
|
|
- compat_signal(SIGILL, SIG_DFL);
|
|
|
|
#ifndef _WIN32
|
|
#ifndef _WIN32
|
|
|
|
+ compat_signal(SIGILL, SIG_DFL);
|
|
compat_signal(SIGXFSZ, sig_proc);
|
|
compat_signal(SIGXFSZ, sig_proc);
|
|
compat_signal(SIGPIPE, sig_proc);
|
|
compat_signal(SIGPIPE, sig_proc);
|
|
compat_signal(SIGBUS, SIG_DFL);
|
|
compat_signal(SIGBUS, SIG_DFL);
|
|
@@ -189,10 +179,8 @@ const char* get_svn_revision(void)
|
|
*/
|
|
*/
|
|
static void display_title(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_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_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
|
|
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)
|
|
// Warning if logged in as superuser (root)
|
|
-void usercheck(void){
|
|
|
|
|
|
+void usercheck(void)
|
|
|
|
+{
|
|
#ifndef _WIN32
|
|
#ifndef _WIN32
|
|
if ((getuid() == 0) && (getgid() == 0)) {
|
|
if ((getuid() == 0) && (getgid() == 0)) {
|
|
ShowWarning ("You are running eAthena as the root superuser.\n");
|
|
ShowWarning ("You are running eAthena as the root superuser.\n");
|