iidx: set CONNECT_CAMERA env var even when iidx module is not enabled (#404)

## Link to GitHub Issue, if one exists
Fixes #403 

## Description of change
Set CONNECT_CAMERA env var even when iidx module is not enabled, so that
camhook can work without -iidx being set with real IO

## Testing
tested with emulated i/o and real i/o by user (see linked issue)
This commit is contained in:
bicarus-dev
2025-10-15 13:50:12 -07:00
committed by GitHub
parent a10ca5236b
commit 6b47b5db50
2 changed files with 3 additions and 4 deletions
+3
View File
@@ -482,6 +482,9 @@ int main_implementation(int argc, char *argv[]) {
// Disable legacy behaviour to avoid conflict
games::iidx::DISABLE_CAMS = true;
}
if (games::iidx::DISABLE_CAMS) {
SetEnvironmentVariable("CONNECT_CAMERA", "0");
}
if (options[launcher::Options::IIDXCamHookOverride].is_active()) {
games::iidx::TDJ_CAMERA_OVERRIDE = options[launcher::Options::IIDXCamHookOverride].value_text();
}