mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-09-28 20:16:25 -05:00
Add support for non portable mode (#356)
This commit is contained in:
@@ -306,11 +306,10 @@ bool TestWriteAccess(const fs::path& p)
|
||||
}
|
||||
|
||||
// make path relative to Cemu directory
|
||||
fs::path MakeRelativePath(const fs::path& path)
|
||||
fs::path MakeRelativePath(const fs::path& base, const fs::path& path)
|
||||
{
|
||||
try
|
||||
{
|
||||
const fs::path base = ActiveSettings::GetPath();
|
||||
return fs::relative(path, base);
|
||||
}
|
||||
catch (const std::exception&)
|
||||
|
||||
@@ -52,7 +52,7 @@ uint32_t GetPhysicalCoreCount();
|
||||
// Creates a temporary file to test for write access
|
||||
bool TestWriteAccess(const fs::path& p);
|
||||
|
||||
fs::path MakeRelativePath(const fs::path& path);
|
||||
fs::path MakeRelativePath(const fs::path& base, const fs::path& path);
|
||||
|
||||
#ifdef HAS_DIRECTINPUT
|
||||
bool GUIDFromString(const char* string, GUID& guid);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user