camhook: fixup some minor formatting and enable iidxhook8-config-cam-test
This commit is contained in:
@@ -793,6 +793,7 @@ void camhook_init(struct camhook_config_cam *config_cam)
|
||||
}
|
||||
|
||||
size_t num_setup = 0;
|
||||
|
||||
for (size_t i = 0; i < config_cam->num_devices; ++i) {
|
||||
if (camData[i].setup) {
|
||||
num_setup++;
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#define CAMHOOK_CONFIG_CAM_DISABLE_EMU_KEY "cam.disable_emu"
|
||||
#define CAMHOOK_CONFIG_CAM_DEFAULT_DISABLE_EMU_VALUE false
|
||||
|
||||
// the following two arrays are based on CAMHOOK_CONFIG_CAM_MAX
|
||||
// please insert more elements if more cams are added
|
||||
const char *camhook_config_device_id_keys[CAMHOOK_CONFIG_CAM_MAX] = {
|
||||
"cam.device_id1",
|
||||
"cam.device_id2",
|
||||
|
||||
Reference in New Issue
Block a user