1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-01-31 04:03:43 +01:00

iidxhook1/2 config: Remove deprecated use_d3d9_hooks param

This commit is contained in:
icex2 2019-10-06 21:31:51 +02:00
parent d64f8b2d8d
commit ff6bad2495
11 changed files with 0 additions and 61 deletions

View File

@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
# Disable operator clock setting system clock time
misc.disable_clock_set=false
# Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires d3d8to9 wrapper library to be used with this game.
misc.use_d3d9_hooks=false
# Stub calls to rteffect.dll (10th to DistorteD)
misc.rteffect_stub=false

View File

@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
# Disable operator clock setting system clock time
misc.disable_clock_set=false
# Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires d3d8to9 wrapper library to be used with this game.
misc.use_d3d9_hooks=false
# Stub calls to rteffect.dll (10th to DistorteD)
misc.rteffect_stub=false

View File

@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
# Disable operator clock setting system clock time
misc.disable_clock_set=false
# Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires d3d8to9 wrapper library to be used with this game.
misc.use_d3d9_hooks=false
# Stub calls to rteffect.dll (10th to DistorteD)
misc.rteffect_stub=false

View File

@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
# Fix broken 3D background on Happy Sky's music select (if appearing completely white)
misc.happy_sky_ms_bg_fix=false
# Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires d3d8to9 wrapper library to be used with this game.
misc.use_d3d9_hooks=false
# Disable operator clock setting system clock time
misc.disable_clock_set=false

View File

@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
# Fix broken 3D background on DistorteD's music select (if appearing completely black)
misc.distorted_ms_bg_fix=false
# Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires d3d8to9 wrapper library to be used with this game.
misc.use_d3d9_hooks=false
# Disable operator clock setting system clock time
misc.disable_clock_set=false

View File

@ -5,10 +5,8 @@
#include "util/log.h"
#define IIDXHOOK_CONFIG_MISC_HAPPY_SKY_MS_BG_FIX_KEY "misc.happy_sky_ms_bg_fix"
#define IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY "misc.use_d3d9_hooks"
#define IIDXHOOK_CONFIG_MISC_DEFAULT_HAPPY_SKY_MS_BG_FIX_VALUE false
#define IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE false
void iidxhook_config_iidxhook1_init(struct cconfig* config)
{
@ -17,12 +15,6 @@ void iidxhook_config_iidxhook1_init(struct cconfig* config)
IIDXHOOK_CONFIG_MISC_DEFAULT_HAPPY_SKY_MS_BG_FIX_VALUE,
"Fix broken 3D background on Happy Sky's music select (if appearing "
"completely white)");
cconfig_util_set_bool(config,
IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE,
"Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires "
" d3d8to9 wrapper library to be used with this game.");
}
void iidxhook_config_iidxhook1_get(
@ -37,13 +29,4 @@ void iidxhook_config_iidxhook1_get(
"to default '%d'", IIDXHOOK_CONFIG_MISC_HAPPY_SKY_MS_BG_FIX_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_HAPPY_SKY_MS_BG_FIX_VALUE);
}
if (!cconfig_util_get_bool(config,
IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
&config_iidxhook1->use_d3d9_hooks,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE)) {
log_warning("Invalid value for key '%s' specified, fallback "
"to default '%d'", IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE);
}
}

View File

@ -5,7 +5,6 @@
struct iidxhook_config_iidxhook1 {
bool happy_sky_ms_bg_fix;
bool use_d3d9_hooks;
};
void iidxhook_config_iidxhook1_init(struct cconfig* config);

View File

@ -5,10 +5,8 @@
#include "util/log.h"
#define IIDXHOOK_CONFIG_MISC_DISTORTED_MS_BG_FIX_KEY "misc.distorted_ms_bg_fix"
#define IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY "misc.use_d3d9_hooks"
#define IIDXHOOK_CONFIG_MISC_DEFAULT_DISTORTED_MS_BG_FIX_VALUE false
#define IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE false
void iidxhook_config_iidxhook2_init(struct cconfig* config)
{
@ -17,12 +15,6 @@ void iidxhook_config_iidxhook2_init(struct cconfig* config)
IIDXHOOK_CONFIG_MISC_DEFAULT_DISTORTED_MS_BG_FIX_VALUE,
"Fix broken 3D background on DistorteD's music select (if appearing "
"completely black)");
cconfig_util_set_bool(config,
IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE,
"Use d3d9 hooks instead of d3d8 to enable d3d9 hook features not available on d3d8 (e.g. upscaling). Requires "
" d3d8to9 wrapper library to be used with this game.");
}
void iidxhook_config_iidxhook2_get(
@ -37,13 +29,4 @@ void iidxhook_config_iidxhook2_get(
"to default '%d'", IIDXHOOK_CONFIG_MISC_DISTORTED_MS_BG_FIX_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_DISTORTED_MS_BG_FIX_VALUE);
}
if (!cconfig_util_get_bool(config,
IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
&config_iidxhook2->use_d3d9_hooks,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE)) {
log_warning("Invalid value for key '%s' specified, fallback "
"to default '%d'", IIDXHOOK_CONFIG_MISC_USE_D3D9_HOOKS_KEY,
IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE);
}
}

View File

@ -5,7 +5,6 @@
struct iidxhook_config_iidxhook2 {
bool distorted_ms_bg_fix;
bool use_d3d9_hooks;
};
void iidxhook_config_iidxhook2_init(struct cconfig* config);

View File

@ -18,7 +18,6 @@ static void test_config_iidxhook1_defaults()
cconfig_finit(config);
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
check_bool_false(config_iidxhook1.use_d3d9_hooks);
}
static void test_config_iidxhook1()
@ -31,14 +30,12 @@ static void test_config_iidxhook1()
iidxhook_config_iidxhook1_init(config);
cconfig_set2(config, "misc.happy_sky_ms_bg_fix", "true");
cconfig_set2(config, "misc.use_d3d9_hooks", "true");
iidxhook_config_iidxhook1_get(&config_iidxhook1, config);
cconfig_finit(config);
check_bool_true(config_iidxhook1.happy_sky_ms_bg_fix);
check_bool_true(config_iidxhook1.use_d3d9_hooks);
}
static void test_config_iidxhook1_invalid_values()
@ -51,14 +48,12 @@ static void test_config_iidxhook1_invalid_values()
iidxhook_config_iidxhook1_init(config);
cconfig_set2(config, "misc.happy_sky_ms_bg_fix", "123");
cconfig_set2(config, "misc.use_d3d9_hooks", "sss");
iidxhook_config_iidxhook1_get(&config_iidxhook1, config);
cconfig_finit(config);
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
check_bool_false(config_iidxhook1.use_d3d9_hooks);
}
TEST_MODULE_BEGIN("iidxhook-config-iidxhook1")

View File

@ -18,7 +18,6 @@ static void test_config_iidxhook2_defaults()
cconfig_finit(config);
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
check_bool_false(config_iidxhook2.use_d3d9_hooks);
}
static void test_config_iidxhook2()
@ -31,14 +30,12 @@ static void test_config_iidxhook2()
iidxhook_config_iidxhook2_init(config);
cconfig_set2(config, "misc.distorted_ms_bg_fix", "true");
cconfig_set2(config, "misc.use_d3d9_hooks", "true");
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
cconfig_finit(config);
check_bool_true(config_iidxhook2.distorted_ms_bg_fix);
check_bool_true(config_iidxhook2.use_d3d9_hooks);
}
static void test_config_iidxhook2_invalid_values()
@ -51,14 +48,12 @@ static void test_config_iidxhook2_invalid_values()
iidxhook_config_iidxhook2_init(config);
cconfig_set2(config, "misc.distorted_ms_bg_fix", "123");
cconfig_set2(config, "misc.use_d3d9_hooks", "sss");
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
cconfig_finit(config);
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
check_bool_false(config_iidxhook2.use_d3d9_hooks);
}
TEST_MODULE_BEGIN("iidxhook-config-iidxhook2")