Change trick to use LisaOS path separator.

This commit is contained in:
2016-08-01 19:05:06 +01:00
parent bd61a4f060
commit b7f67a71ac
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
2016-08-01 Natalia Portillo <claunia@claunia.com>
* Dir.cs:
* File.cs: Change trick to use LisaOS path separator.
2016-08-01 Natalia Portillo <claunia@claunia.com>
* AssemblyInfo.cs:

View File

@@ -94,9 +94,9 @@ namespace DiscImageChef.Filesystems.LisaFS
foreach(CatalogEntry entry in catalogCache)
{
if(entry.parentID == dirId)
// Do same trick as Mac OS X, replace filesystem '/' with ':'
// Maybe as '-' is the path separator in Lisa OS I should do that
contents.Add(GetString(entry.filename).Replace('/', ':'));
// Do same trick as Mac OS X, replace filesystem '/' with '-',
// as '-' is the path separator in Lisa OS
contents.Add(GetString(entry.filename).Replace('/', '-'));
}
return Errno.NoError;

View File

@@ -499,7 +499,7 @@ namespace DiscImageChef.Filesystems.LisaFS
for(int lvl = 0; lvl < pathElements.Length; lvl++)
{
string wantedFilename = pathElements[0].Replace(':', '/');
string wantedFilename = pathElements[0].Replace('-', '/');
foreach(CatalogEntry entry in catalogCache)
{