Merge pull request #2386 from LukeUsher/fix-multi-xbe-vfs
emufile: fix multi-xbe titles when running through xbox-iso-vfs
This commit is contained in:
commit
9fab1d5bed
|
@ -797,9 +797,10 @@ std::string CxbxConvertXboxToHostPath(const std::string_view XboxDevicePath)
|
||||||
// If the rootDirectoryHandle is not null, we have a relative path
|
// If the rootDirectoryHandle is not null, we have a relative path
|
||||||
// We need to prepend the path of the root directory to get a full DOS path
|
// We need to prepend the path of the root directory to get a full DOS path
|
||||||
if (rootDirectoryHandle != nullptr) {
|
if (rootDirectoryHandle != nullptr) {
|
||||||
char directoryPathBuffer[MAX_PATH];
|
WCHAR directoryPathBuffer[MAX_PATH];
|
||||||
GetFinalPathNameByHandle(rootDirectoryHandle, directoryPathBuffer, MAX_PATH, VOLUME_NAME_DOS);
|
GetFinalPathNameByHandleW(rootDirectoryHandle, directoryPathBuffer, MAX_PATH, VOLUME_NAME_DOS);
|
||||||
XbePath = directoryPathBuffer + std::string("\\") + XbePath;
|
std::string directoryPath = utf16_to_ascii(directoryPathBuffer);
|
||||||
|
XbePath = directoryPath + std::string("\\") + XbePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
return XbePath;
|
return XbePath;
|
||||||
|
|
Loading…
Reference in New Issue