add note for iso mount

This commit is contained in:
13xforever
2026-01-09 21:57:37 +05:00
parent 60ad26f6ac
commit dffaab09eb
3 changed files with 9 additions and 1 deletions

View File

@@ -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(),

View File

@@ -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)]

View File

@@ -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:/