1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-17 19:19:16 +01:00

chore: Apply code formatting

This commit is contained in:
icex2 2023-04-15 22:35:56 +02:00 committed by icex2
parent bf83bd89e5
commit e40709ddf7
2 changed files with 17 additions and 15 deletions

View File

@ -669,7 +669,7 @@ bool convert_path_to_fakesym(const char *path, wchar_t *sym, char *extra_o)
pidstr, pidstr,
mistr, mistr,
extra); extra);
mbstowcs(sym, buffer, CAMERA_DATA_STRING_SIZE); mbstowcs(sym, buffer, CAMERA_DATA_STRING_SIZE);
return true; return true;
@ -837,7 +837,8 @@ void camhook_init(struct camhook_config_cam *config_cam)
NULL, "Mf.dll", camhook_mf_syms, lengthof(camhook_mf_syms)); NULL, "Mf.dll", camhook_mf_syms, lengthof(camhook_mf_syms));
log_info("Inserted cam hooks for %d cams", (int) num_setup); log_info("Inserted cam hooks for %d cams", (int) num_setup);
// If the user has manually disabled all cams, don't print this in the log // If the user has manually disabled all cams, don't print this in the
// log
} else if (num_addressed_cams != config_cam->num_devices) { } else if (num_addressed_cams != config_cam->num_devices) {
log_info("No cams detected, not hooking"); log_info("No cams detected, not hooking");
} }

View File

@ -14,9 +14,10 @@ const char *camhook_config_disable_camera[CAMHOOK_CONFIG_CAM_MAX] = {
"cam.disable_camera2", "cam.disable_camera2",
}; };
const int camhook_config_disable_camera_default_values[CAMHOOK_CONFIG_CAM_MAX] = { const int camhook_config_disable_camera_default_values[CAMHOOK_CONFIG_CAM_MAX] =
false, {
false, false,
false,
}; };
const char *camhook_config_device_id_keys[CAMHOOK_CONFIG_CAM_MAX] = { const char *camhook_config_device_id_keys[CAMHOOK_CONFIG_CAM_MAX] = {
@ -83,16 +84,16 @@ void camhook_config_cam_get(
camhook_config_disable_camera_default_values[i]); camhook_config_disable_camera_default_values[i]);
} }
if (!cconfig_util_get_str( if (!cconfig_util_get_str(
config, config,
camhook_config_device_id_keys[i], camhook_config_device_id_keys[i],
config_cam->device_id[i], config_cam->device_id[i],
sizeof(config_cam->device_id[i]) - 1, sizeof(config_cam->device_id[i]) - 1,
camhook_config_device_default_values[i])) { camhook_config_device_default_values[i])) {
log_warning( log_warning(
"Invalid value for key '%s' specified, fallback " "Invalid value for key '%s' specified, fallback "
"to default '%s'", "to default '%s'",
camhook_config_device_id_keys[i], camhook_config_device_id_keys[i],
camhook_config_device_default_values[i]); camhook_config_device_default_values[i]);
} }
} }
} }