From cb7ae496abbb9dff67967a8b9691928863335787 Mon Sep 17 00:00:00 2001 From: Rudolf Kolbe Date: Thu, 21 Dec 2023 22:08:56 +0100 Subject: [PATCH] AudioClipConverter - hotfix pyfmodex --- UnityPy/export/AudioClipConverter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UnityPy/export/AudioClipConverter.py b/UnityPy/export/AudioClipConverter.py index 16d2a02d..85ee15bd 100644 --- a/UnityPy/export/AudioClipConverter.py +++ b/UnityPy/export/AudioClipConverter.py @@ -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