1
0

skincb.cpp 914 B

1234567891011121314151617181920
  1. #include <precomp.h>
  2. #include "skincb.h"
  3. int SkinCallbackI::syscb_notify(int msg, intptr_t param1, intptr_t param2) {
  4. switch (msg) {
  5. case SkinCallback::UNLOADING: return skincb_onUnloading();
  6. case SkinCallback::RESET: return skincb_onReset();
  7. case SkinCallback::RELOAD: return skincb_onReload();
  8. case SkinCallback::BEFORELOADINGELEMENTS: return skincb_onBeforeLoadingElements();
  9. case SkinCallback::GUILOADED: return skincb_onGuiLoaded();
  10. case SkinCallback::LOADED: return skincb_onLoaded();
  11. case SkinCallback::COLORTHEMECHANGED: return skincb_onColorThemeChanged(WASABI_API_SKIN->colortheme_getColorSet());
  12. case SkinCallback::COLORTHEMESLISTCHANGED: return skincb_onColorThemesListChanged();
  13. case SkinCallback::CHECKPREVENTSWITCH: {
  14. int r = skincb_onCheckPreventSwitch((const wchar_t *)param1);
  15. if (r && param2)
  16. *(int *)param2 = r;
  17. }
  18. }
  19. return 0;
  20. }