Update ep_client.py

This commit is contained in:
Etoh 2023-10-24 20:05:19 +01:00 committed by GitHub
parent 88a3aaa9e0
commit faf2a6081a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,20 @@
import sys
import ctypes
from syncplay.clientManager import SyncplayClientManager
from syncplay.utils import blackholeStdoutForFrozenWindow
from syncplay.utils import blackholeStdoutForFrozenWindow, isWindows
def main():
def doWindowsRedistCheck():
try:
ctypes.CDLL('vcruntime140.dll')
except OSError:
ctypes.windll.user32.MessageBoxW(0, '''Syncplay relies on the Microsoft Visual C++ Redistributable which is not installed.
It can be downloaded at https://aka.ms/vs/17/release/vc_redist.x86.exe
For more details see http://syncplay.pl/''', "Syncplay", 1)
sys.exit()
if isWindows():
doWindowsRedistCheck()
blackholeStdoutForFrozenWindow()
SyncplayClientManager().run()