mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00: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
3de79f3595
commit
33371473fe
@ -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;
|
||||
|
||||
@ -343,8 +343,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 New Issue
Block a user