From eb54cd96e327d0ff359e5a3c24801ff2e659feb4 Mon Sep 17 00:00:00 2001 From: icex2 Date: Fri, 19 Mar 2021 16:26:43 +0100 Subject: [PATCH] hook/fex: Remove non working window mode option --- dist/conf/fexhook.conf | 3 --- src/main/hook/fex/main.c | 4 ---- src/main/hook/fex/options.c | 10 ---------- src/main/hook/fex/options.h | 4 ---- 4 files changed, 21 deletions(-) diff --git a/dist/conf/fexhook.conf b/dist/conf/fexhook.conf index 1007f99..032c662 100644 --- a/dist/conf/fexhook.conf +++ b/dist/conf/fexhook.conf @@ -1,9 +1,6 @@ # [str]: Path to game settings (SETTINGS) folder game.settings=./save -# [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/fex/main.c b/src/main/hook/fex/main.c index 316358a..d99affe 100644 --- a/src/main/hook/fex/main.c +++ b/src/main/hook/fex/main.c @@ -137,10 +137,6 @@ static void fexhook_patch_gfx_init(struct fexhook_options *options) log_assert(options); patch_gfx_init(); - - if (options->patch.gfx.windowed) { - patch_gfx_force_window_mode(); - } } static void fexhook_patch_main_loop_init(struct fexhook_options *options) diff --git a/src/main/hook/fex/options.c b/src/main/hook/fex/options.c index 9aceaf2..5fcbfc3 100644 --- a/src/main/hook/fex/options.c +++ b/src/main/hook/fex/options.c @@ -3,7 +3,6 @@ #include "util/options.h" #define FEXHOOK_OPTIONS_STR_GAME_SETTINGS "game.settings" -#define FEXHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED "patch.gfx.windowed" #define FEXHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file" #define FEXHOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs" #define FEXHOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io" @@ -33,13 +32,6 @@ const struct util_options_def fexhook_options_def[] = { .type = UTIL_OPTIONS_TYPE_STR, .default_value.str = "./save", }, - { - .name = FEXHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED, - .description = "Force game into window mode", - .param = 'w', - .type = UTIL_OPTIONS_TYPE_BOOL, - .default_value.b = false, - }, { .name = FEXHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE, .description = "Enable file call monitoring", @@ -178,8 +170,6 @@ bool fexhook_options_init( options->game.settings = util_options_get_str(options_opt, FEXHOOK_OPTIONS_STR_GAME_SETTINGS); - options->patch.gfx.windowed = util_options_get_bool( - options_opt, FEXHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED); options->patch.hook_mon.file = util_options_get_bool( options_opt, FEXHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE); options->patch.hook_mon.fs = diff --git a/src/main/hook/fex/options.h b/src/main/hook/fex/options.h index 26d7a29..a21c79b 100644 --- a/src/main/hook/fex/options.h +++ b/src/main/hook/fex/options.h @@ -12,10 +12,6 @@ struct fexhook_options { } game; struct patch { - struct gfx { - bool windowed; - } gfx; - struct hook_mon { bool file; bool fs;