Update rcore.c
This commit is contained in:
parent
5681c3f856
commit
61453b131e
|
|
@ -1948,8 +1948,8 @@ const char *GetFileNameWithoutExt(const char *filePath)
|
||||||
{
|
{
|
||||||
if (filePath != NULL)
|
if (filePath != NULL)
|
||||||
{
|
{
|
||||||
const char *fileName = GetFileName(filePath);
|
const char *fileName = GetFileName(filePath); // get filename without path
|
||||||
int pos = (int)strlen(fileName);
|
int pos = (int)strlen(fileName); // get filename lenght
|
||||||
for (int i = pos; i>0; i--)
|
for (int i = pos; i>0; i--)
|
||||||
{
|
{
|
||||||
if (fileName[i] == '.')
|
if (fileName[i] == '.')
|
||||||
|
|
@ -1960,7 +1960,7 @@ const char *GetFileNameWithoutExt(const char *filePath)
|
||||||
}
|
}
|
||||||
return TextSubtext(fileName,0,pos);
|
return TextSubtext(fileName,0,pos);
|
||||||
}
|
}
|
||||||
return "";
|
return "\0";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get directory for a given filePath
|
// Get directory for a given filePath
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user