summaryrefslogtreecommitdiff
path: root/src/emap/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/pc.c')
-rw-r--r--src/emap/pc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emap/pc.c b/src/emap/pc.c
index 73b9e58..a099c3c 100644
--- a/src/emap/pc.c
+++ b/src/emap/pc.c
@@ -28,6 +28,7 @@
#include "emap/struct/sessionext.h"
int langScriptId;
+int mountScriptId;
int epc_readparam_pre(TBL_PC* sd, int *type)
{
@@ -49,9 +50,15 @@ int epc_setregistry(TBL_PC *sd, int64 *reg, int *val)
struct SessionExt *data = session_get_bysd(sd);
if (!data)
return 0;
-
data->language = *val;
}
+ else if (*reg == mountScriptId)
+ {
+ struct SessionExt *data = session_get_bysd(sd);
+ if (!data)
+ return 0;
+ data->mount = *val;
+ }
return 0;
}