mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
add detection for mounted disc/iso for macOS
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user