Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/syscb/callbacks/skincb.cpp
2024-09-24 14:54:57 +02:00

21 lines
914 B
C++

#include <precomp.h>
#include "skincb.h"
int SkinCallbackI::syscb_notify(int msg, intptr_t param1, intptr_t param2) {
switch (msg) {
case SkinCallback::UNLOADING: return skincb_onUnloading();
case SkinCallback::RESET: return skincb_onReset();
case SkinCallback::RELOAD: return skincb_onReload();
case SkinCallback::BEFORELOADINGELEMENTS: return skincb_onBeforeLoadingElements();
case SkinCallback::GUILOADED: return skincb_onGuiLoaded();
case SkinCallback::LOADED: return skincb_onLoaded();
case SkinCallback::COLORTHEMECHANGED: return skincb_onColorThemeChanged(WASABI_API_SKIN->colortheme_getColorSet());
case SkinCallback::COLORTHEMESLISTCHANGED: return skincb_onColorThemesListChanged();
case SkinCallback::CHECKPREVENTSWITCH: {
int r = skincb_onCheckPreventSwitch((const wchar_t *)param1);
if (r && param2)
*(int *)param2 = r;
}
}
return 0;
}