diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-08 15:40:41 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-01-08 15:40:41 +0000 |
commit | 14710780f3b6043e6d9c859137159e76d0bb1e51 (patch) | |
tree | 42d80812c3bf0a8a6ea440ef0f6e03a658f4e40e /src | |
parent | 4e5a65295ad732fd53630d8c29912ec047038d9d (diff) | |
download | hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.gz hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.bz2 hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.tar.xz hercules-14710780f3b6043e6d9c859137159e76d0bb1e51.zip |
* Silenced the plugin export messages during startup [ultramage]
* Fixed an old debug message displaying %d instead of a number
* Commented out a login_log call (sql doesn't implement that function!)
* Found the reason why the console didn't want to run on windows
* Moved the plugin.def file to the plugins dir and added console.def
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9632 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/common/plugins.c | 2 | ||||
-rw-r--r-- | src/common/socket.c | 2 | ||||
-rw-r--r-- | src/login_sql/login.c | 2 | ||||
-rw-r--r-- | src/plugins/console.c | 2 | ||||
-rw-r--r-- | src/plugins/console.def | 11 | ||||
-rw-r--r-- | src/plugins/plugin.def | 4 |
6 files changed, 19 insertions, 4 deletions
diff --git a/src/common/plugins.c b/src/common/plugins.c index 4d3849330..09ce15da3 100644 --- a/src/common/plugins.c +++ b/src/common/plugins.c @@ -123,7 +123,7 @@ int plugin_event_trigger(char* name) int export_symbol(void* var, size_t offset) { - ShowDebug("export_symbol(0x%x,%d)\n", var,offset); + //ShowDebug("export_symbol(0x%x,%d)\n", var,offset); // add to the end of the list if( offset < 0 ) diff --git a/src/common/socket.c b/src/common/socket.c index 3d445d286..3c8396961 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -327,7 +327,7 @@ int make_listen_bind(long ip,int port) fd = (int)socket( AF_INET, SOCK_STREAM, 0 ); if (fd == INVALID_SOCKET) { - ShowError("socket() creation failed (code %d)!\n", fd, s_errno); + ShowError("socket() creation failed (code %d)!\n", s_errno); exit(1); } diff --git a/src/login_sql/login.c b/src/login_sql/login.c index b1e85a4c3..fbe0acc1d 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1959,7 +1959,7 @@ int parse_console(char* buf) sscanf(buf, "%[^\n]", command); - login_log("Console command :%s" RETCODE, command); + //login_log("Console command :%s" RETCODE, command); if( strcmpi("shutdown", command) == 0 || strcmpi("exit", command) == 0 || diff --git a/src/plugins/console.c b/src/plugins/console.c index 41ef434e9..fca087618 100644 --- a/src/plugins/console.c +++ b/src/plugins/console.c @@ -26,7 +26,7 @@ }while(0) #define sleep Sleep -#define pipe_create(p) ( CreatePipe(&p[PIPE_READ], &p[PIPE_WRITE], NULL, 1) != 0 ) +#define pipe_create(p) (CreatePipe(&p[PIPE_READ], &p[PIPE_WRITE], NULL, 1) == 0) #define pipe_read(p,data,len) do{ DWORD _b_; ReadFile(p[PIPE_READ], data, len, &_b_, NULL); }while(0) #define pipe_write(p,data,len) do{ DWORD _b_; WriteFile(p[PIPE_WRITE], data, len, &_b_, NULL); }while(0) #define pipe_close(p,side) CloseHandle(p[side]) diff --git a/src/plugins/console.def b/src/plugins/console.def new file mode 100644 index 000000000..a47800bef --- /dev/null +++ b/src/plugins/console.def @@ -0,0 +1,11 @@ +EXPORTS + ; common exports + plugin_info DATA + plugin_event_table DATA + plugin_call_table DATA + + ; console-specific exports + console_init + console_final + console_start + console_stop diff --git a/src/plugins/plugin.def b/src/plugins/plugin.def new file mode 100644 index 000000000..6117bedc6 --- /dev/null +++ b/src/plugins/plugin.def @@ -0,0 +1,4 @@ +EXPORTS + plugin_info DATA + plugin_event_table DATA + plugin_call_table DATA |