mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 02:18:20 -07:00
path_get_basename helper function
This commit is contained in:
@@ -267,6 +267,13 @@ plat_getcwd(char *bufp, int max)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *
|
||||
path_get_basename(const char *path)
|
||||
{
|
||||
QFileInfo fi(path);
|
||||
return fi.fileName().toUtf8().data();
|
||||
}
|
||||
|
||||
void
|
||||
path_get_dirname(char *dest, const char *path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user