diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/langpack/langpack.cpp | 2 | ||||
-rw-r--r-- | src/modules/options/options.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/langpack/langpack.cpp b/src/modules/langpack/langpack.cpp index 56fd08f64f..80fa824b01 100644 --- a/src/modules/langpack/langpack.cpp +++ b/src/modules/langpack/langpack.cpp @@ -98,8 +98,6 @@ BOOL EnumLangpacks(ENUM_PACKS_CALLBACK callback, WPARAM wParam, LPARAM lParam) void Langpack_LoadLangpack(void)
{
- HookEvent(ME_OPT_INITIALISE, LangpackOptionsInit);
-
TCHAR szSearch[MAX_PATH];
PathToAbsoluteT(_T("\\"), szSearch);
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index 0239c10aa5..0e59b4e943 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -33,6 +33,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define ALL_MODULES_FILTER LPGEN("<all modules>")
#define CORE_MODULES_FILTER LPGEN("<core modules>")
+int LangpackOptionsInit(WPARAM, LPARAM);
+
static HANDLE hOptionsInitEvent;
static HWND hwndOptions = NULL;
static HWND hFilterSearchWnd = NULL;
@@ -1381,6 +1383,8 @@ int LoadOptionsModule(void) {
hwndOptions = NULL;
hOptionsInitEvent = CreateHookableEvent(ME_OPT_INITIALISE);
+ HookEvent(ME_OPT_INITIALISE, LangpackOptionsInit);
+
CreateServiceFunction("Opt/AddPage", AddOptionsPage);
CreateServiceFunction("Opt/OpenOptions", OpenOptions);
CreateServiceFunction("Opt/OpenOptionsPage", OpenOptionsPage);
|