mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-13 04:00:08 +01:00
ISO: Remove resolve_path hack
- Modify Emulator::GetFakeCat to return "DG" for mounted ISO games like expected. - Undo changes to main_application resolve_path callback
This commit is contained in:
parent
48f39acac7
commit
fa11af1cba
|
|
@ -4387,7 +4387,7 @@ const std::string& Emulator::GetFakeCat() const
|
|||
{
|
||||
const std::string mount_point = vfs::get("/dev_bdvd");
|
||||
|
||||
if (mount_point.empty() || !IsPathInsideDir(m_path, mount_point))
|
||||
if (mount_point.empty() || (!IsPathInsideDir(m_path, mount_point) && !m_path.starts_with(iso_device::virtual_device_name)))
|
||||
{
|
||||
static const std::string s_hg = "HG";
|
||||
return s_hg;
|
||||
|
|
|
|||
|
|
@ -345,8 +345,7 @@ EmuCallbacks main_application::CreateCallbacks()
|
|||
callbacks.resolve_path = [](std::string_view sv)
|
||||
{
|
||||
// May result in an empty string if path does not exist
|
||||
std::string result = QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
|
||||
return !result.empty() ? result : std::string(sv);
|
||||
return QFileInfo(QString::fromUtf8(sv.data(), static_cast<int>(sv.size()))).canonicalFilePath().toStdString();
|
||||
};
|
||||
|
||||
callbacks.get_font_dirs = []()
|
||||
|
|
|
|||
Loading…
Reference in a new issue