added even more explicit GetChars() calls.
This commit is contained in:
parent
1717ff47b2
commit
48ba63c022
42 changed files with 230 additions and 214 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue