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:
Functionable 2025-12-14 13:08:34 +00:00
parent 3de79f3595
commit 33371473fe
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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 = []()