Skip to content

Commit cb7ae49

Browse files
authored
AudioClipConverter - hotfix pyfmodex
1 parent 46e05c5 commit cb7ae49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: UnityPy/export/AudioClipConverter.py

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def cdll_hook(name, *args, **kwargs):
7373
return CDLL(name, *args, **kwargs)
7474

7575
ctypes.CDLL = cdll_hook
76+
77+
# hotfix ctypes for pyfmodex for non windows
78+
ctypes.windll = getattr(ctypes, "windll", None)
7679
import pyfmodex
7780

7881
ctypes.CDLL = CDLL

0 commit comments

Comments
 (0)