Skip to content

Commit

Permalink
Handle any possible NTDLL errors just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamscached committed Dec 27, 2024
1 parent 0259d7b commit d41c3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Monika After Story/game/definitions.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -7967,14 +7967,14 @@ init python:
try:
import ctypes
NTDLL = ctypes.WinDLL("ntdll.dll")
except (ImportError, IOError):
except Exception:
return False

try:
wine_get_version = NTDLL.wine_get_version
wine_get_version.argtypes = []
wine_get_version.restype = ctypes.c_char_p
except AttributeError:
except Exception:
# No such function in DLL
return False

Expand Down

0 comments on commit d41c3c0

Please sign in to comment.