mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
add note for iso mount
This commit is contained in:
@@ -184,6 +184,7 @@ internal partial class LogParser
|
||||
["SYS: Title was set from"] = TitleWasSet(),
|
||||
["SYS: Path:"] = DigitalPathSys(),
|
||||
["SYS: Boot path:"] = BootPathInBodySys(),
|
||||
["SYS: Disc:"] = DiscMountSys(),
|
||||
["Elf path:"] = ElfPath(),
|
||||
["VFS: Mounted path \"/dev_bdvd\""] = VfsMountPath(),
|
||||
["Invalid or unsupported file format:"] = InvalidFileFormat(),
|
||||
|
||||
@@ -248,6 +248,8 @@ internal partial class LogParser
|
||||
private static partial Regex DigitalPathSys();
|
||||
[GeneratedRegex(@"Boot path: (?<ldr_boot_path_full>.*(?<ldr_boot_path>/dev_hdd0/game/(?<ldr_boot_path_serial>[^/\r\n]+)).*|[^\r\n]*)\r?$", DefaultOptions)]
|
||||
private static partial Regex BootPathInBodySys();
|
||||
[GeneratedRegex(@"SYS: Disc: /(?<vfs_disc_mount>\w+)/\r?$", DefaultOptions)]
|
||||
private static partial Regex DiscMountSys();
|
||||
[GeneratedRegex(@"Elf path: (?<host_root_in_boot>/host_root/)?(?<elf_boot_path_full>(?<elf_boot_path>/dev_hdd0/game/(?<elf_boot_path_serial>[^/\r\n]+)/USRDIR/EBOOT\.BIN|.*?))\r?$", DefaultOptions)]
|
||||
private static partial Regex ElfPath();
|
||||
[GeneratedRegex(@"Mounted path ""/dev_bdvd"" to ""(?<mounted_dev_bdvd>[^""]+)""", DefaultOptions)]
|
||||
|
||||
@@ -116,7 +116,12 @@ internal static partial class LogParserResult
|
||||
notes.Add("❌ Disc version of the game inside the `/dev_hdd0/game/` directory");
|
||||
if (serial is {Length: >0} && isElf)
|
||||
notes.Add($"⚠️ Retail game booted directly through `{Path.GetFileName(elfBootPath)}`, which is not recommended");
|
||||
if (items["mounted_dev_bdvd"] is { Length: > 0 } mountedBdvd
|
||||
|
||||
if (items["vfs_disc_mount"] is "vfsv0_virtual_iso_overlay_fs_dev")
|
||||
{
|
||||
notes.Add("ℹ️ Booted from ISO");
|
||||
}
|
||||
else if (items["mounted_dev_bdvd"] is { Length: > 0 } mountedBdvd
|
||||
&& items["os_type"] is {Length: >0} osType
|
||||
&& mountedBdvd.Split('/', StringSplitOptions.RemoveEmptyEntries) is {Length: <3} segments
|
||||
&& (osType is "Windows" && segments is [[_, ':']] // D:/
|
||||
|
||||
Reference in New Issue
Block a user