Update rcore.c
This commit is contained in:
parent
3658e45a80
commit
02776d450e
|
|
@ -1945,6 +1945,8 @@ const char *GetFileName(const char *filePath)
|
||||||
|
|
||||||
// Get filename string without extension (uses static string)
|
// Get filename string without extension (uses static string)
|
||||||
const char *GetFileNameWithoutExt(const char *filePath)
|
const char *GetFileNameWithoutExt(const char *filePath)
|
||||||
|
{
|
||||||
|
if (filePath != NULL)
|
||||||
{
|
{
|
||||||
const char *fileName = GetFileName(filePath);
|
const char *fileName = GetFileName(filePath);
|
||||||
int pos = (int)strlen(fileName);
|
int pos = (int)strlen(fileName);
|
||||||
|
|
@ -1958,6 +1960,8 @@ const char *GetFileNameWithoutExt(const char *filePath)
|
||||||
}
|
}
|
||||||
return TextSubtext(fileName,0,pos);
|
return TextSubtext(fileName,0,pos);
|
||||||
}
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
// Get directory for a given filePath
|
// Get directory for a given filePath
|
||||||
const char *GetDirectoryPath(const char *filePath)
|
const char *GetDirectoryPath(const char *filePath)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user