Added Emoji support + Fix bugs

This commit is contained in:
ixlammm 2023-06-09 23:47:35 +01:00
parent 936999a1e2
commit eee064e630
3 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
version = '1.7.0' version = '1.7.2'
revision = '' revision = ''
milestone = 'Yoitsu' milestone = 'Yoitsu'
release_number = '107' release_number = '107'

View File

@ -460,19 +460,19 @@ class VlcPlayer(BasePlayer):
self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\") self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
copyTo = os.path.join(os.path.dirname(playerPath) + "\\plugins\\control\\", "libsyncplay_chat_plugin.dll") copyTo = os.path.join(os.path.dirname(playerPath) + "\\plugins\\control\\", "libsyncplay_chat_plugin.dll")
if not os.path.exists(copyTo): #if not os.path.exists(copyTo):
copyForm = utils.findResourcePath("libsyncplay_chat_plugin.dll") copyForm = utils.findResourcePath("libsyncplay_chat_plugin.dll")
self.__playerController._client.ui.showDebugMessage("Copying VLC Syncplay Chat Plugin from '{}' to '{}'".format(copyForm, copyTo)) self.__playerController._client.ui.showDebugMessage("Copying VLC Syncplay Chat Plugin from '{}' to '{}'".format(copyForm, copyTo))
import ctypes import ctypes
commands = u'/k mklink /H "{}" "{}"'.format(copyTo, copyForm) commands = u'/k mklink /H "{}" "{}"'.format(copyTo, copyForm)
ctypes.windll.shell32.ShellExecuteW( ctypes.windll.shell32.ShellExecuteW(
None, None,
u"runas", u"runas",
u"cmd.exe", u"cmd.exe",
commands, commands,
None, None,
0 0
) )
self.__playerController.vlcModulePath = self.__playerController.vlcIntfPath + "modules/?.luac" self.__playerController.vlcModulePath = self.__playerController.vlcIntfPath + "modules/?.luac"
def _createIntfFolder(vlcSyncplayInterfaceDir): def _createIntfFolder(vlcSyncplayInterfaceDir):
self.__playerController._client.ui.showDebugMessage("Checking if syncplay.lua intf directory exists") self.__playerController._client.ui.showDebugMessage("Checking if syncplay.lua intf directory exists")