added even more explicit GetChars() calls.

This commit is contained in:
Christoph Oelckers 2023-10-03 15:55:08 +02:00
commit 48ba63c022
42 changed files with 230 additions and 214 deletions

View file

@ -189,11 +189,11 @@ UNSAFE_CCMD (dir)
{
path = I_GetCWD();;
}
auto base = ExtractFileBase(path, true);
auto base = ExtractFileBase(path.GetChars(), true);
FString bpath;
if (base.IndexOfAny("*?") >= 0)
{
bpath = ExtractFilePath(path);
bpath = ExtractFilePath(path.GetChars());
}
else
{
@ -202,7 +202,7 @@ UNSAFE_CCMD (dir)
}
FileSys::FileList list;
if (!FileSys::ScanDirectory(list, bpath, base, true))
if (!FileSys::ScanDirectory(list, bpath.GetChars(), base.GetChars(), true))
{
Printf ("Nothing matching %s\n", path.GetChars());
}