mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-09-29 18:26:24 -05:00
iidxhook9: Add iidxhook support for versions that use dx9ex and some other features
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
#include "util/log.h"
|
||||
|
||||
#define ASIOHOOK_CONFIG_IO_FORCE_ASIO_KEY "asio.force_asio"
|
||||
#define ASIOHOOK_CONFIG_IO_FORCE_WASAPI_KEY "asio.force_wasapi"
|
||||
#define ASIOHOOK_CONFIG_IO_ASIO_DEVICE_NAME_KEY "asio.device_name"
|
||||
|
||||
#define ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_ASIO_VALUE false
|
||||
#define ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_WASAPI_VALUE false
|
||||
#define ASIOHOOK_CONFIG_IO_DEFAULT_ASIO_DEVICE_NAME_VALUE \
|
||||
"XONAR SOUND CARD(64)"
|
||||
|
||||
@@ -17,7 +19,13 @@ void asiohook_config_init(struct cconfig *config)
|
||||
config,
|
||||
ASIOHOOK_CONFIG_IO_FORCE_ASIO_KEY,
|
||||
ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_ASIO_VALUE,
|
||||
"Force ASIO audio mode/device");
|
||||
"Force ASIO audio mode/device (if applicable)");
|
||||
|
||||
cconfig_util_set_bool(
|
||||
config,
|
||||
ASIOHOOK_CONFIG_IO_FORCE_WASAPI_KEY,
|
||||
ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_WASAPI_VALUE,
|
||||
"Force WASAPI audio mode (if applicable)");
|
||||
|
||||
cconfig_util_set_str(
|
||||
config,
|
||||
@@ -40,6 +48,17 @@ void asiohook_config_asio_get(
|
||||
ASIOHOOK_CONFIG_IO_FORCE_ASIO_KEY,
|
||||
ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_ASIO_VALUE);
|
||||
}
|
||||
if (!cconfig_util_get_bool(
|
||||
config,
|
||||
ASIOHOOK_CONFIG_IO_FORCE_WASAPI_KEY,
|
||||
&config_asio->force_wasapi,
|
||||
ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_WASAPI_VALUE)) {
|
||||
log_warning(
|
||||
"Invalid value for key '%s' specified, fallback "
|
||||
"to default '%d'",
|
||||
ASIOHOOK_CONFIG_IO_FORCE_WASAPI_KEY,
|
||||
ASIOHOOK_CONFIG_IO_DEFAULT_FORCE_WASAPI_VALUE);
|
||||
}
|
||||
|
||||
if (!cconfig_util_get_str(
|
||||
config,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
struct asiohook_config_asio {
|
||||
bool force_asio;
|
||||
bool force_wasapi;
|
||||
char replacement_name[128];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user