Merge pull request #1009 from FlexBy420/patch-11

Log: Add detection for mounted disc/iso for macOS
This commit is contained in:
Ilya
2025-11-15 22:45:12 +05:00
committed by GitHub

View File

@@ -116,10 +116,16 @@ internal static partial class LogParserResult
notes.Add("❌ Disc version of the game inside the `/dev_hdd0/game/` directory");
if (!string.IsNullOrEmpty(serial) && isElf)
notes.Add($"⚠️ Retail game booted directly through `{Path.GetFileName(elfBootPath)}`, which is not recommended");
if (items["os_type"] == "Windows"
&& items["mounted_dev_bdvd"] is {Length: >0} mountedBdvd
&& mountedBdvd.TrimEnd('/').EndsWith(':'))
notes.Add("⚠️ Booting directly from blu-ray disc is not supported, please make a proper game dump");
if (items["mounted_dev_bdvd"] is { Length: > 0 } mountedBdvd)
{
var bdvdPath = mountedBdvd.TrimEnd('/');
bool isWin = items["os_type"] == "Windows" && bdvdPath.EndsWith(':');
bool isMac = items["os_type"] == "MacOS" && bdvdPath.StartsWith("/Volumes/", StringComparison.OrdinalIgnoreCase);
if (isWin || isMac)
{
notes.Add("⚠️ Booting directly from blu-ray disc is not supported, please make a proper game dump");
}
}
if (items["log_from_ui"] is not null)
notes.Add(" The log is a copy from UI, please upload the full file created by RPCS3");