summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
new file mode 100644
index 0000000..d1ad03c
--- /dev/null
+++ b/src/map/pc.c
@@ -0,0 +1,29 @@
+// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// Copyright (c) 2014 Evol developers
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "../../../common/HPMi.h"
+#include "../../../common/malloc.h"
+#include "../../../common/mmo.h"
+#include "../../../common/socket.h"
+#include "../../../common/strlib.h"
+
+#include "map/pc.h"
+#include "map/session.h"
+#include "map/sessionext.h"
+
+int epc_readparam_pre(struct map_session_data* sd, int *type)
+{
+ if (*type == Const_ClientVersion)
+ {
+ hookStop();
+ struct SessionExt *data = session_get_bysd(sd);
+ if (!data)
+ return 0;
+ return data->clientVersion;
+ }
+ return 0;
+}