Skip to content

Conversation

@sandboxcoder
Copy link
Contributor

@sandboxcoder sandboxcoder commented Dec 16, 2025

Description

Below is error feedback added if obs64 exe is missing:

  • controller.cpp: Adding new exit code that represents the obs64 exe could not be found. Updating JS code to properly
    check the exitCode to avoid a silent failure case
  • utility.hpp: Output to error stream when connection fails. Previously, the code attempted to return a JS
    exception but it never got to run due to the exit(1). This way we maintain legacy behavior and exit application with a helpful message
  • module.js: verify obs64 actually exists in the bin folder (same as the checks we do for obs64.exe)

Motivation and Context

Resolves a silent failure I encountered on Windows when I put a bin folder in the desktop/node_modules/obs-studio-node parent folder which caused yarn run test to FAIL to spin up obs64 ipc server due to not being able to find bin/obs64

How Has This Been Tested?

Verified desktop/tests will ignore the bin folder if the obs64 is missing and errors will be printed when it cannot be found.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@sandboxcoder sandboxcoder marked this pull request as ready for review December 16, 2025 17:13
* controller.cpp: Adding new exitcode that represents
the obs64 exe could not be found. Updating JS code
to properly check the exitCode to avoid a silent
failure case
* utility.hpp: Output to error stream when connection fails.
Previously, the code attempted to return a JS
exception but it never got to run due to the exit(1).
This way we maintain legacy behavior and exit
application with a helpful message
* module.js: verify bin folder contains obs64
@sandboxcoder sandboxcoder force-pushed the rno/check-apple-for-bin-folder-only branch from a247f75 to 03f3218 Compare December 16, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants