diff --git a/Player/Player.vcxproj b/Player/Player.vcxproj index cab1e48..8703775 100644 --- a/Player/Player.vcxproj +++ b/Player/Player.vcxproj @@ -99,8 +99,9 @@ Windows true - Winmm.lib;dxva2.lib;d3d9.lib;Oleacc.lib;$(VcpkgRoot)\installed\$(VcpkgTriplet)\lib\Python*.lib;%(AdditionalDependencies);$(INTELOCLSDKROOT)\lib\x86\OpenCL.lib + Winmm.lib;dxva2.lib;d3d9.lib;Oleacc.lib;$(VcpkgRoot)\installed\$(VcpkgTriplet)\lib\Python*.lib;%(AdditionalDependencies);OpenCL.lib opencl.dll + $(INTELOCLSDKROOT)\lib\x86\;%(AdditionalLibraryDirectories) false @@ -130,8 +131,9 @@ Windows - Winmm.lib;dxva2.lib;d3d9.lib;Oleacc.lib;$(INTELOCLSDKROOT)\lib\x64\OpenCL.lib;$(VcpkgRoot)\installed\$(VcpkgTriplet)\lib\Python*.lib;%(AdditionalDependencies) + Winmm.lib;dxva2.lib;d3d9.lib;Oleacc.lib;OpenCL.lib;$(VcpkgRoot)\installed\$(VcpkgTriplet)\lib\Python*.lib;%(AdditionalDependencies) opencl.dll + $(INTELOCLSDKROOT)\lib\x64\;%(AdditionalLibraryDirectories) false diff --git a/Player/YouTuber.cpp b/Player/YouTuber.cpp index ab97d62..068e247 100644 --- a/Player/YouTuber.cpp +++ b/Player/YouTuber.cpp @@ -736,16 +736,21 @@ void CheckPython() exit(1); } - boost::python::object path(boost::python::borrowed(sysPath)); - const auto length = len(path); - if (length < 1) - { - exit(1); - } + try { + boost::python::object path(boost::python::borrowed(sysPath)); + const auto length = len(path); + if (length < 1) + { + exit(1); + } - std::string v{ boost::python::extract(path[0]) }; - if (v.empty()) - { + std::string v{ boost::python::extract(path[0]) }; + if (v.empty()) + { + exit(1); + } + } + catch (...) { exit(1); } }