various fixes

This commit is contained in:
Prism Tutaj 2019-09-07 22:48:07 -05:00
parent b44af549cf
commit 2bf929f51e
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ std::wstring ContentManager::ResolvePackageRoot(uint32_t content_type) {
// Package root path:
// content_root/title_id/type_name/
auto package_root =
xe::join_paths(root_path_, xe::join_paths(title_id, type_name));
xe::join_paths(root_path_, xe::join_paths(title_id_str, type_name));
return package_root + xe::kPathSeparator<wchar_t>;
}

View File

@ -500,7 +500,7 @@ dword_result_t XamSwapDisc(dword_t disc_number,
std::wstring local_path = app::EmulatorWindow::SwapNext();
XELOGI("SwapNext returned path %S.", local_path.c_str());
auto last_slash = local_path.find_last_of(xe::kPathSeparator);
auto last_slash = local_path.find_last_of(xe::kPathSeparator<wchar_t>);
auto last_dot = local_path.find_last_of('.');
if (last_dot < last_slash) {