mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-24 12:08:30 +00:00
Review formatting GetPRevDirectoryPath()
This commit is contained in:
@@ -2125,8 +2125,9 @@ const char *GetPrevDirectoryPath(const char *dirPath)
|
||||
{
|
||||
if ((dirPath[i] == '\\') || (dirPath[i] == '/'))
|
||||
{
|
||||
if ((i == 2) && (dirPath[1] ==':') // Check for root: "C:\"
|
||||
|| i == 0) i++; // Check for root: "/"
|
||||
// Check for root: "C:\" or "/"
|
||||
if (((i == 2) && (dirPath[1] ==':')) || (i == 0)) i++;
|
||||
|
||||
strncpy(prevDirPath, dirPath, i);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user