add detection for mounted disc/iso for macOS

This commit is contained in:
FlexBy420
2025-11-15 16:28:13 +01:00
committed by GitHub
parent d5cfc8db58
commit bb0d1f0a00

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");