Skip to content

Commit d9b9d74

Browse files
committed
Update library detection regex for FFmpeg and PortAudio
Refined the detection logic for FFmpeg to use a case-insensitive regex and simplified the PortAudio regex to match 'portaudio_x86' or 'portaudio_x64' more concisely.
1 parent 99dc707 commit d9b9d74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

db/PE/FFmpeg.4.sg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
meta("library", "FFmpeg");
66

77
function detect() {
8-
if (PE.isLibraryPresent("ffmpeg.dll")) {
8+
if (PE.isLibraryPresentExp(/ffmpeg/i)) {
99
bDetected = true;
1010
}
1111

db/PE/PortAudio.4.sg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
meta("library", "PortAudio");
66

77
function detect() {
8-
if (PE.isLibraryPresentExp(/^(portaudio_x86|portaudio_x64)/i)) {
8+
if (PE.isLibraryPresentExp(/^portaudio_x(86|64)/i)) {
99
bDetected = true;
1010
}
1111

0 commit comments

Comments
 (0)