mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
Make FILES work for cases where fileSpec does not contain a directory
This commit is contained in:
parent
a5fedd9d0c
commit
8fa66795b8
|
@ -792,6 +792,9 @@ void sub_files(qbs *str, int32_t passed) {
|
|||
} else {
|
||||
std::string d;
|
||||
filepath_split(fileSpec, d, pathName);
|
||||
if (d.empty())
|
||||
d = "./"; // default to the current directory if one is not specified
|
||||
|
||||
directory = FS_GetFQN(d.c_str());
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue