diff --git a/divahook/config.c b/divahook/config.c index e639874c..7c21e46c 100644 --- a/divahook/config.c +++ b/divahook/config.c @@ -12,7 +12,8 @@ #include "platform/config.h" #include "platform/platform.h" -void slider_config_load(struct slider_config *cfg, const wchar_t *filename) { +void slider_config_load(struct slider_config *cfg, const wchar_t *filename) +{ assert(cfg != NULL); assert(filename != NULL); diff --git a/divahook/slider.c b/divahook/slider.c index 04d38746..539fed7e 100644 --- a/divahook/slider.c +++ b/divahook/slider.c @@ -41,6 +41,7 @@ static uint8_t slider_readable_bytes[520]; HRESULT slider_hook_init(const struct slider_config *cfg) { assert(cfg != NULL); + if (!cfg->enable) { return S_FALSE; } @@ -162,7 +163,7 @@ static HRESULT slider_req_nop(uint8_t cmd) { struct slider_hdr resp; - dprintf("Diva slider: No-op cmd 0x%02x\n", cmd); + dprintf("Diva slider: No-op cmd 0x%#02x\n", cmd); resp.sync = SLIDER_FRAME_SYNC; resp.cmd = cmd;