iidxhook1/2 config: Remove deprecated use_d3d9_hooks param
This commit is contained in:
Vendored
-3
@@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
|
|||||||
# Disable operator clock setting system clock time
|
# Disable operator clock setting system clock time
|
||||||
misc.disable_clock_set=false
|
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)
|
# Stub calls to rteffect.dll (10th to DistorteD)
|
||||||
misc.rteffect_stub=false
|
misc.rteffect_stub=false
|
||||||
|
|
||||||
|
|||||||
Vendored
-3
@@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
|
|||||||
# Disable operator clock setting system clock time
|
# Disable operator clock setting system clock time
|
||||||
misc.disable_clock_set=false
|
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)
|
# Stub calls to rteffect.dll (10th to DistorteD)
|
||||||
misc.rteffect_stub=false
|
misc.rteffect_stub=false
|
||||||
|
|
||||||
|
|||||||
Vendored
-3
@@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
|
|||||||
# Disable operator clock setting system clock time
|
# Disable operator clock setting system clock time
|
||||||
misc.disable_clock_set=false
|
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)
|
# Stub calls to rteffect.dll (10th to DistorteD)
|
||||||
misc.rteffect_stub=false
|
misc.rteffect_stub=false
|
||||||
|
|
||||||
|
|||||||
Vendored
-3
@@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
|
|||||||
# Fix broken 3D background on Happy Sky's music select (if appearing completely white)
|
# Fix broken 3D background on Happy Sky's music select (if appearing completely white)
|
||||||
misc.happy_sky_ms_bg_fix=false
|
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
|
# Disable operator clock setting system clock time
|
||||||
misc.disable_clock_set=false
|
misc.disable_clock_set=false
|
||||||
|
|
||||||
|
|||||||
Vendored
-3
@@ -43,9 +43,6 @@ gfx.scale_back_buffer_filter=none
|
|||||||
# Fix broken 3D background on DistorteD's music select (if appearing completely black)
|
# Fix broken 3D background on DistorteD's music select (if appearing completely black)
|
||||||
misc.distorted_ms_bg_fix=false
|
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
|
# Disable operator clock setting system clock time
|
||||||
misc.disable_clock_set=false
|
misc.disable_clock_set=false
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,8 @@
|
|||||||
#include "util/log.h"
|
#include "util/log.h"
|
||||||
|
|
||||||
#define IIDXHOOK_CONFIG_MISC_HAPPY_SKY_MS_BG_FIX_KEY "misc.happy_sky_ms_bg_fix"
|
#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_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)
|
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,
|
IIDXHOOK_CONFIG_MISC_DEFAULT_HAPPY_SKY_MS_BG_FIX_VALUE,
|
||||||
"Fix broken 3D background on Happy Sky's music select (if appearing "
|
"Fix broken 3D background on Happy Sky's music select (if appearing "
|
||||||
"completely white)");
|
"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(
|
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,
|
"to default '%d'", IIDXHOOK_CONFIG_MISC_HAPPY_SKY_MS_BG_FIX_KEY,
|
||||||
IIDXHOOK_CONFIG_MISC_DEFAULT_HAPPY_SKY_MS_BG_FIX_VALUE);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
struct iidxhook_config_iidxhook1 {
|
struct iidxhook_config_iidxhook1 {
|
||||||
bool happy_sky_ms_bg_fix;
|
bool happy_sky_ms_bg_fix;
|
||||||
bool use_d3d9_hooks;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void iidxhook_config_iidxhook1_init(struct cconfig* config);
|
void iidxhook_config_iidxhook1_init(struct cconfig* config);
|
||||||
|
|||||||
@@ -5,10 +5,8 @@
|
|||||||
#include "util/log.h"
|
#include "util/log.h"
|
||||||
|
|
||||||
#define IIDXHOOK_CONFIG_MISC_DISTORTED_MS_BG_FIX_KEY "misc.distorted_ms_bg_fix"
|
#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_DISTORTED_MS_BG_FIX_VALUE false
|
||||||
#define IIDXHOOK_CONFIG_MISC_DEFAULT_USE_D3D9_HOOKS_VALUE false
|
|
||||||
|
|
||||||
void iidxhook_config_iidxhook2_init(struct cconfig* config)
|
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,
|
IIDXHOOK_CONFIG_MISC_DEFAULT_DISTORTED_MS_BG_FIX_VALUE,
|
||||||
"Fix broken 3D background on DistorteD's music select (if appearing "
|
"Fix broken 3D background on DistorteD's music select (if appearing "
|
||||||
"completely black)");
|
"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(
|
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,
|
"to default '%d'", IIDXHOOK_CONFIG_MISC_DISTORTED_MS_BG_FIX_KEY,
|
||||||
IIDXHOOK_CONFIG_MISC_DEFAULT_DISTORTED_MS_BG_FIX_VALUE);
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
struct iidxhook_config_iidxhook2 {
|
struct iidxhook_config_iidxhook2 {
|
||||||
bool distorted_ms_bg_fix;
|
bool distorted_ms_bg_fix;
|
||||||
bool use_d3d9_hooks;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void iidxhook_config_iidxhook2_init(struct cconfig* config);
|
void iidxhook_config_iidxhook2_init(struct cconfig* config);
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ static void test_config_iidxhook1_defaults()
|
|||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
|
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
|
||||||
check_bool_false(config_iidxhook1.use_d3d9_hooks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_config_iidxhook1()
|
static void test_config_iidxhook1()
|
||||||
@@ -31,14 +30,12 @@ static void test_config_iidxhook1()
|
|||||||
iidxhook_config_iidxhook1_init(config);
|
iidxhook_config_iidxhook1_init(config);
|
||||||
|
|
||||||
cconfig_set2(config, "misc.happy_sky_ms_bg_fix", "true");
|
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);
|
iidxhook_config_iidxhook1_get(&config_iidxhook1, config);
|
||||||
|
|
||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_true(config_iidxhook1.happy_sky_ms_bg_fix);
|
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()
|
static void test_config_iidxhook1_invalid_values()
|
||||||
@@ -51,14 +48,12 @@ static void test_config_iidxhook1_invalid_values()
|
|||||||
iidxhook_config_iidxhook1_init(config);
|
iidxhook_config_iidxhook1_init(config);
|
||||||
|
|
||||||
cconfig_set2(config, "misc.happy_sky_ms_bg_fix", "123");
|
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);
|
iidxhook_config_iidxhook1_get(&config_iidxhook1, config);
|
||||||
|
|
||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
|
check_bool_false(config_iidxhook1.happy_sky_ms_bg_fix);
|
||||||
check_bool_false(config_iidxhook1.use_d3d9_hooks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_MODULE_BEGIN("iidxhook-config-iidxhook1")
|
TEST_MODULE_BEGIN("iidxhook-config-iidxhook1")
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ static void test_config_iidxhook2_defaults()
|
|||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
|
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
|
||||||
check_bool_false(config_iidxhook2.use_d3d9_hooks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_config_iidxhook2()
|
static void test_config_iidxhook2()
|
||||||
@@ -31,14 +30,12 @@ static void test_config_iidxhook2()
|
|||||||
iidxhook_config_iidxhook2_init(config);
|
iidxhook_config_iidxhook2_init(config);
|
||||||
|
|
||||||
cconfig_set2(config, "misc.distorted_ms_bg_fix", "true");
|
cconfig_set2(config, "misc.distorted_ms_bg_fix", "true");
|
||||||
cconfig_set2(config, "misc.use_d3d9_hooks", "true");
|
|
||||||
|
|
||||||
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
|
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
|
||||||
|
|
||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_true(config_iidxhook2.distorted_ms_bg_fix);
|
check_bool_true(config_iidxhook2.distorted_ms_bg_fix);
|
||||||
check_bool_true(config_iidxhook2.use_d3d9_hooks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_config_iidxhook2_invalid_values()
|
static void test_config_iidxhook2_invalid_values()
|
||||||
@@ -51,14 +48,12 @@ static void test_config_iidxhook2_invalid_values()
|
|||||||
iidxhook_config_iidxhook2_init(config);
|
iidxhook_config_iidxhook2_init(config);
|
||||||
|
|
||||||
cconfig_set2(config, "misc.distorted_ms_bg_fix", "123");
|
cconfig_set2(config, "misc.distorted_ms_bg_fix", "123");
|
||||||
cconfig_set2(config, "misc.use_d3d9_hooks", "sss");
|
|
||||||
|
|
||||||
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
|
iidxhook_config_iidxhook2_get(&config_iidxhook2, config);
|
||||||
|
|
||||||
cconfig_finit(config);
|
cconfig_finit(config);
|
||||||
|
|
||||||
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
|
check_bool_false(config_iidxhook2.distorted_ms_bg_fix);
|
||||||
check_bool_false(config_iidxhook2.use_d3d9_hooks);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_MODULE_BEGIN("iidxhook-config-iidxhook2")
|
TEST_MODULE_BEGIN("iidxhook-config-iidxhook2")
|
||||||
|
|||||||
Reference in New Issue
Block a user