mirror of https://github.com/mgba-emu/mgba.git
VFS: Set dirname to . if there is no directory specified
This commit is contained in:
parent
a7801b3963
commit
88bf7b58ad
|
@ -173,7 +173,8 @@ void separatePath(const char* path, char* dirname, char* basename, char* extensi
|
|||
dirname[len] = '\0';
|
||||
}
|
||||
path = separatorPoint + 1;
|
||||
|
||||
} else if (dirname) {
|
||||
strcpy(dirname, ".");
|
||||
}
|
||||
if (basename) {
|
||||
size_t len;
|
||||
|
|
Loading…
Reference in New Issue