From 8485879ff7cb69361c2983ee31dae9f1f507d4ff Mon Sep 17 00:00:00 2001 From: Tau Date: Tue, 5 Nov 2019 19:31:51 -0500 Subject: [PATCH] hooklib: Shift config structs around --- hooklib/config.c | 1 + hooklib/config.h | 6 +----- hooklib/gfx.h | 8 +++++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/hooklib/config.c b/hooklib/config.c index ed69146..d52e6ff 100644 --- a/hooklib/config.c +++ b/hooklib/config.c @@ -5,6 +5,7 @@ #include #include "hooklib/config.h" +#include "hooklib/gfx.h" void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename) { diff --git a/hooklib/config.h b/hooklib/config.h index ebdb6b1..0d737aa 100644 --- a/hooklib/config.h +++ b/hooklib/config.h @@ -3,10 +3,6 @@ #include #include -struct gfx_config { - bool enable; - bool windowed; - bool framed; -}; +#include "hooklib/gfx.h" void gfx_config_load(struct gfx_config *cfg, const wchar_t *filename); diff --git a/hooklib/gfx.h b/hooklib/gfx.h index 85b9bfc..5088e0e 100644 --- a/hooklib/gfx.h +++ b/hooklib/gfx.h @@ -1,5 +1,11 @@ #pragma once -#include "hooklib/config.h" +#include + +struct gfx_config { + bool enable; + bool windowed; + bool framed; +}; void gfx_hook_init(const struct gfx_config *cfg);