Skip to content

Commit

Permalink
AudioClipConverter - hotfix pyfmodex
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 authored Dec 21, 2023
1 parent 46e05c5 commit cb7ae49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnityPy/export/AudioClipConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def cdll_hook(name, *args, **kwargs):
return CDLL(name, *args, **kwargs)

ctypes.CDLL = cdll_hook

# hotfix ctypes for pyfmodex for non windows
ctypes.windll = getattr(ctypes, "windll", None)
import pyfmodex

ctypes.CDLL = CDLL
Expand Down

0 comments on commit cb7ae49

Please sign in to comment.