summaryrefslogtreecommitdiff
path: root/MySpace/MySpace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MySpace/MySpace.cpp')
-rw-r--r--MySpace/MySpace.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp
index 39540df..cb1da5d 100644
--- a/MySpace/MySpace.cpp
+++ b/MySpace/MySpace.cpp
@@ -6,6 +6,7 @@
#include "proto.h"
#include "net.h"
#include "menu.h"
+#include "arc4.h"
///////////////////////////////////////////////
// Common Plugin Stuff
@@ -13,6 +14,7 @@
HINSTANCE hInst;
PLUGINLINK *pluginLink;
HANDLE mainThread;
+int code_page;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -64,6 +66,9 @@ extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) {
pluginLink=link;
+ code_page = (int)CallService(MS_LANGPACK_GETCODEPAGE, 0, 0);
+
+ InitARC4Module();
InitOptions();
/////////////
@@ -82,6 +87,7 @@ extern "C" __declspec (dllexport) int Unload(void) {
DeinitNetlib();
DeinitProto();
DeinitOptions();
+ DeinitARC4Module();
return 0;
}