mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2025-02-22 12:49:58 +01:00
hook/x2: Remove non working window mode option
This commit is contained in:
parent
672622ecbc
commit
81bdf49af2
3
dist/conf/x2hook.conf
vendored
3
dist/conf/x2hook.conf
vendored
@ -4,9 +4,6 @@ game.force_unlock=0
|
|||||||
# [str]: Path to game settings (SETTINGS) folder
|
# [str]: Path to game settings (SETTINGS) folder
|
||||||
game.settings=./save
|
game.settings=./save
|
||||||
|
|
||||||
# [bool (0/1)]: Force game into window mode
|
|
||||||
patch.gfx.windowed=0
|
|
||||||
|
|
||||||
# [bool (0/1)]: Enable file call monitoring
|
# [bool (0/1)]: Enable file call monitoring
|
||||||
patch.hook_mon.file=0
|
patch.hook_mon.file=0
|
||||||
|
|
||||||
|
@ -141,10 +141,6 @@ static void x2hook_patch_gfx_init(struct x2hook_options *options)
|
|||||||
log_assert(options);
|
log_assert(options);
|
||||||
|
|
||||||
patch_gfx_init();
|
patch_gfx_init();
|
||||||
|
|
||||||
if (options->patch.gfx.windowed) {
|
|
||||||
patch_gfx_force_window_mode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void x2hook_patch_game_init(struct x2hook_options *options)
|
static void x2hook_patch_game_init(struct x2hook_options *options)
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#define X2HOOK_OPTIONS_STR_GAME_FORCE_UNLOCK "game.force_unlock"
|
#define X2HOOK_OPTIONS_STR_GAME_FORCE_UNLOCK "game.force_unlock"
|
||||||
#define X2HOOK_OPTIONS_STR_GAME_SETTINGS "game.settings"
|
#define X2HOOK_OPTIONS_STR_GAME_SETTINGS "game.settings"
|
||||||
#define X2HOOK_OPTIONS_STR_PATCH_GFX_WINDOWED "patch.gfx.windowed"
|
|
||||||
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file"
|
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE "patch.hook_mon.file"
|
||||||
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs"
|
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FS "patch.hook_mon.fs"
|
||||||
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io"
|
#define X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_IO "patch.hook_mon.io"
|
||||||
@ -39,13 +38,6 @@ static const struct util_options_def x2hook_options_def[] = {
|
|||||||
.type = UTIL_OPTIONS_TYPE_STR,
|
.type = UTIL_OPTIONS_TYPE_STR,
|
||||||
.default_value.str = "./save",
|
.default_value.str = "./save",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
.name = X2HOOK_OPTIONS_STR_PATCH_GFX_WINDOWED,
|
|
||||||
.description = "Force game into window mode",
|
|
||||||
.param = 'w',
|
|
||||||
.type = UTIL_OPTIONS_TYPE_BOOL,
|
|
||||||
.default_value.b = false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
.name = X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE,
|
.name = X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE,
|
||||||
.description = "Enable file call monitoring",
|
.description = "Enable file call monitoring",
|
||||||
@ -169,8 +161,6 @@ bool x2hook_options_init(int argc, char **argv, struct x2hook_options *options)
|
|||||||
util_options_get_bool(options_opt, X2HOOK_OPTIONS_STR_GAME_FORCE_UNLOCK);
|
util_options_get_bool(options_opt, X2HOOK_OPTIONS_STR_GAME_FORCE_UNLOCK);
|
||||||
options->game.settings =
|
options->game.settings =
|
||||||
util_options_get_str(options_opt, X2HOOK_OPTIONS_STR_GAME_SETTINGS);
|
util_options_get_str(options_opt, X2HOOK_OPTIONS_STR_GAME_SETTINGS);
|
||||||
options->patch.gfx.windowed =
|
|
||||||
util_options_get_bool(options_opt, X2HOOK_OPTIONS_STR_PATCH_GFX_WINDOWED);
|
|
||||||
options->patch.hook_mon.file = util_options_get_bool(
|
options->patch.hook_mon.file = util_options_get_bool(
|
||||||
options_opt, X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE);
|
options_opt, X2HOOK_OPTIONS_STR_PATCH_HOOK_MON_FILE);
|
||||||
options->patch.hook_mon.fs =
|
options->patch.hook_mon.fs =
|
||||||
|
@ -13,10 +13,6 @@ struct x2hook_options {
|
|||||||
} game;
|
} game;
|
||||||
|
|
||||||
struct patch {
|
struct patch {
|
||||||
struct gfx {
|
|
||||||
bool windowed;
|
|
||||||
} gfx;
|
|
||||||
|
|
||||||
struct hook_mon {
|
struct hook_mon {
|
||||||
bool file;
|
bool file;
|
||||||
bool fs;
|
bool fs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user