mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
Merge branch 'vnext'
This commit is contained in:
@@ -14,9 +14,9 @@ public static class PathUtils
|
||||
do
|
||||
{
|
||||
segment = Path.GetFileName(path);
|
||||
result.Add(string.IsNullOrEmpty(segment) ? path : segment);
|
||||
result.Add(segment is {Length: >0} ? segment : path);
|
||||
path = Path.GetDirectoryName(path);
|
||||
} while (!string.IsNullOrEmpty(segment) && !string.IsNullOrEmpty(path));
|
||||
} while (segment is {Length: >0} && path is {Length: >0});
|
||||
result.Reverse();
|
||||
return result.ToArray();
|
||||
}
|
||||
|
||||
@@ -118,8 +118,9 @@ internal static partial class LogParserResult
|
||||
notes.Add($"⚠️ Retail game booted directly through `{Path.GetFileName(elfBootPath)}`, which is not recommended");
|
||||
if (items["mounted_dev_bdvd"] is { Length: > 0 } mountedBdvd
|
||||
&& items["os_type"] is {Length: >0} osType
|
||||
&& (osType is "Windows" && mountedBdvd.TrimEnd('/').EndsWith(':')
|
||||
|| osType is "MacOS" && mountedBdvd.StartsWith("/Volumes/")))
|
||||
&& mountedBdvd.Split('/', StringSplitOptions.RemoveEmptyEntries) is {Length: <3} segments
|
||||
&& (osType is "Windows" && segments is [[_, ':']]
|
||||
|| osType is "MacOS" && segments is ["Volumes", _]))
|
||||
{
|
||||
notes.Add("⚠️ Booting directly from blu-ray disc is not supported, please make a proper game dump");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user