diff --git a/dist/conf/exchook.conf b/dist/conf/exchook.conf index f1b55b9..571581b 100644 --- a/dist/conf/exchook.conf +++ b/dist/conf/exchook.conf @@ -4,9 +4,6 @@ game.settings=./save # [str]: Version of the game (format YYYYMMDD). Make sure this matches exactly the version you are running because the hook lib has to apply memory patches. game.version=20040408 -# [bool (0/1)]: Force game into window mode -patch.gfx.windowed=0 - # [bool (0/1)]: Enable file call monitoring patch.hook_mon.file=0 diff --git a/src/main/hook/exc/main.c b/src/main/hook/exc/main.c index dcfb47f..d7494ad 100644 --- a/src/main/hook/exc/main.c +++ b/src/main/hook/exc/main.c @@ -129,10 +129,6 @@ static void exchook_patch_gfx_init(struct exchook_options *options) log_assert(options); patch_gfx_init(); - - if (options->patch.gfx.windowed) { - patch_gfx_force_window_mode(); - } } static void exchook_patch_main_loop_init(struct exchook_options *options) diff --git a/src/main/hook/exc/options.c b/src/main/hook/exc/options.c index 081c129..17b24e1 100644 --- a/src/main/hook/exc/options.c +++ b/src/main/hook/exc/options.c @@ -4,7 +4,6 @@ #define EXCHOOK_OPTIONS_STR_GAME_SETTINGS "game.settings" #define EXCHOOK_OPTIONS_STR_GAME_VERSION "game.version" -#define EXCHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED "patch.gfx.windowed" #define EXCHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file" #define EXCHOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs" #define EXCHOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io" @@ -41,13 +40,6 @@ static const struct util_options_def exchook_options_def[] = { .type = UTIL_OPTIONS_TYPE_STR, .default_value.str = "20040408", }, - { - .name = EXCHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED, - .description = "Force game into window mode", - .param = 'w', - .type = UTIL_OPTIONS_TYPE_BOOL, - .default_value.b = false, - }, { .name = EXCHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE, .description = "Enable file call monitoring", @@ -173,8 +165,6 @@ bool exchook_options_init( util_options_get_str(options_opt, EXCHOOK_OPTIONS_STR_GAME_SETTINGS); options->game.version = util_options_get_str(options_opt, EXCHOOK_OPTIONS_STR_GAME_VERSION); - options->patch.gfx.windowed = util_options_get_bool( - options_opt, EXCHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED); options->patch.hook_mon.file = util_options_get_bool( options_opt, EXCHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE); options->patch.hook_mon.fs = diff --git a/src/main/hook/exc/options.h b/src/main/hook/exc/options.h index 10df73c..b7de3c6 100644 --- a/src/main/hook/exc/options.h +++ b/src/main/hook/exc/options.h @@ -13,10 +13,6 @@ struct exchook_options { } game; struct patch { - struct gfx { - bool windowed; - } gfx; - struct hook_mon { bool file; bool fs;