Add support for non portable mode (#356)

This commit is contained in:
SSimco
2022-10-11 23:03:26 -07:00
committed by GitHub
parent 2b9edced81
commit d6ba61cf64
38 changed files with 233 additions and 163 deletions

View File

@@ -18,7 +18,7 @@ void libusbWrapper::init()
m_module = LoadLibraryW(L"libusb-1.0.dll");
if (!m_module)
{
const auto path = ActiveSettings::GetPath("resources/libusb-1.0.dll");
const auto path = ActiveSettings::GetDataPath("resources/libusb-1.0.dll");
m_module = LoadLibraryW(path.generic_wstring().c_str());
if (!m_module)
{