summaryrefslogtreecommitdiff
path: root/plugins/TipperYM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r--plugins/TipperYM/src/tipper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp
index 960f1a3646..db1783e8dc 100644
--- a/plugins/TipperYM/src/tipper.cpp
+++ b/plugins/TipperYM/src/tipper.cpp
@@ -293,6 +293,14 @@ int Shutdown(WPARAM, LPARAM)
HANDLE hEventPreShutdown, hEventModulesLoaded;
+static INT_PTR ReloadSkin(WPARAM, LPARAM)
+{
+ ParseSkinFile(opt.szSkinName, false, false);
+ ReloadFont(0, 0);
+ SaveOptions();
+ return 0;
+}
+
extern "C" int __declspec(dllexport) Load(void)
{
CallService(MS_IMG_GETINTERFACE, FI_IF_VERSION, (LPARAM)&fii);
@@ -312,6 +320,8 @@ extern "C" int __declspec(dllexport) Load(void)
hHideTipService = CreateServiceFunction("mToolTip/HideTip", HideTip);
+ CreateServiceFunction("mToolTip/ReloadSkin", ReloadSkin);
+
hEventPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, Shutdown);
hEventModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);