Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions checks/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,20 @@ def checkAdmin(lines):
"OBS is not running as Administrator. This can lead to OBS not being able to Game Capture certain games. If you are not running into issues, you can ignore this."]


gc_admin_re = re.compile(r"could not open process: (?P<executable>.*)$")


def checkGCAdmin(lines):
error_lines = search("could not open process:", lines)
gc_error_lines = search("game-capture", error_lines) # Makes sure the error comes from a game capture, in case.
if gc_error_lines:
exe_list = set([gc_admin_re.search(line).group("executable").strip() for line in gc_error_lines])
return [LEVEL_INFO, "Game Capture Permissions",
"Game Capture was unable to capture the following applications. This may be solved by running OBS as an Administrator:<br>\n<ul>\n<li>"
+ "</li>\n<li>".join(exe_list)
+ """</li>\n</ul> <br>However, further action could be required, as outlined in our <a href="https://obsproject.com/kb/game-capture-troubleshooting">Game Capture Troubleshooting</a> guide."""]


def check32bitOn64bit(lines):
winVersion = search('Windows Version', lines)
obsVersion = getOBSVersionLine(lines)
Expand Down
1 change: 1 addition & 0 deletions loganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def doAnalysis(url=None, filename=None):
checkWindowsARM64(logLines),
checkMacVer(logLines),
checkAdmin(logLines),
checkGCAdmin(logLines),
checkImports(logLines),
check32bitOn64bit(logLines),
checkWindowsARM64EmulationStatus(logLines),
Expand Down