mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix detection of PS1 and PS2 CDs with no spaces in SYSTEM.CNF.
This commit is contained in:
@@ -1985,9 +1985,11 @@ namespace Aaru.Core.Media.Detection
|
||||
line.Length == 0)
|
||||
break;
|
||||
|
||||
if(line.StartsWith("BOOT = cdrom:", StringComparison.InvariantCultureIgnoreCase))
|
||||
line = line.Replace(" ", "");
|
||||
|
||||
if(line.StartsWith("BOOT=cdrom:", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
ps1BootFile = line.Substring(13);
|
||||
ps1BootFile = line.Substring(11);
|
||||
|
||||
if(ps1BootFile.StartsWith('\\'))
|
||||
ps1BootFile = ps1BootFile.Substring(1);
|
||||
@@ -1998,7 +2000,7 @@ namespace Aaru.Core.Media.Detection
|
||||
break;
|
||||
}
|
||||
|
||||
if(line.StartsWith("BOOT2 = cdrom0:", StringComparison.InvariantCultureIgnoreCase))
|
||||
if(line.StartsWith("BOOT2=cdrom0:", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
ps2BootFile = line.Substring(13);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user