From 078a382ba6f587ed88cbf2bb4a488a40fc2a94a4 Mon Sep 17 00:00:00 2001 From: icex2 Date: Fri, 19 Mar 2021 16:28:15 +0100 Subject: [PATCH] hook/zero: Remove non working window mode option --- dist/conf/zerohook.conf | 3 --- src/main/hook/zero/main.c | 4 ---- src/main/hook/zero/options.c | 10 ---------- src/main/hook/zero/options.h | 4 ---- 4 files changed, 21 deletions(-) diff --git a/dist/conf/zerohook.conf b/dist/conf/zerohook.conf index 8bd93de..7391e8f 100644 --- a/dist/conf/zerohook.conf +++ b/dist/conf/zerohook.conf @@ -4,9 +4,6 @@ game.force_unlock=0 # [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/zero/main.c b/src/main/hook/zero/main.c index 7ecabe7..5f861ab 100644 --- a/src/main/hook/zero/main.c +++ b/src/main/hook/zero/main.c @@ -143,10 +143,6 @@ static void zerohook_patch_gfx_init(struct zerohook_options *options) log_assert(options); patch_gfx_init(); - - if (options->patch.gfx.windowed) { - patch_gfx_force_window_mode(); - } } static void zerohook_patch_game_init(struct zerohook_options *options) diff --git a/src/main/hook/zero/options.c b/src/main/hook/zero/options.c index ebaa86f..f3cc4f4 100644 --- a/src/main/hook/zero/options.c +++ b/src/main/hook/zero/options.c @@ -4,7 +4,6 @@ #define ZEROHOOK_OPTIONS_STR_GAME_FORCE_UNLOCK "game.force_unlock" #define ZEROHOOK_OPTIONS_STR_GAME_SETTINGS "game.settings" -#define ZEROHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED "patch.gfx.windowed" #define ZEROHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file" #define ZEROHOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs" #define ZEROHOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io" @@ -39,13 +38,6 @@ static const struct util_options_def zerohook_options_def[] = { .type = UTIL_OPTIONS_TYPE_STR, .default_value.str = "./save", }, - { - .name = ZEROHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED, - .description = "Force game into window mode", - .param = 'w', - .type = UTIL_OPTIONS_TYPE_BOOL, - .default_value.b = false, - }, { .name = ZEROHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE, .description = "Enable file call monitoring", @@ -171,8 +163,6 @@ bool zerohook_options_init( options_opt, ZEROHOOK_OPTIONS_STR_GAME_FORCE_UNLOCK); options->game.settings = util_options_get_str(options_opt, ZEROHOOK_OPTIONS_STR_GAME_SETTINGS); - options->patch.gfx.windowed = util_options_get_bool( - options_opt, ZEROHOOK_OPTIONS_STR_PATCH_GFX_WINDOWED); options->patch.hook_mon.file = util_options_get_bool( options_opt, ZEROHOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE); options->patch.hook_mon.fs = util_options_get_bool( diff --git a/src/main/hook/zero/options.h b/src/main/hook/zero/options.h index 83ab03b..9dbc9a0 100644 --- a/src/main/hook/zero/options.h +++ b/src/main/hook/zero/options.h @@ -13,10 +13,6 @@ struct zerohook_options { } game; struct patch { - struct gfx { - bool windowed; - } gfx; - struct hook_mon { bool file; bool fs;