WARNING: RENAMED: GetDroppedFiles()
to LoadDroppedFiles()
This commit is contained in:
parent
5bcfa6ccdc
commit
47269f30ce
@ -129,11 +129,11 @@ int main()
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int dropFileCount = 0;
|
||||
char **droppedFiles = GetDroppedFiles(&dropFileCount);
|
||||
char **droppedFiles = LoadDroppedFiles(&dropFileCount);
|
||||
|
||||
if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
|
||||
|
||||
ClearDroppedFiles(); // Clear internal buffers
|
||||
UnloadDroppedFiles(); // Clear internal buffers
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
|
@ -10,8 +10,8 @@
|
||||
* DRAW: GuiFileDialog(&state);
|
||||
*
|
||||
* NOTE: This module depends on some raylib file system functions:
|
||||
* - GetDirectoryFiles()
|
||||
* - ClearDirectoryFiles()
|
||||
* - LoadDirectoryFiles()
|
||||
* - UnloadDirectoryFiles()
|
||||
* - GetWorkingDirectory()
|
||||
* - DirectoryExists()
|
||||
* - FileExists()
|
||||
@ -416,7 +416,7 @@ static char **LoadDirectoryFiles(const char *dir, int *filesCount, char *filterE
|
||||
bool filterExtensions = true;
|
||||
|
||||
int dirFilesCount = 0;
|
||||
char **files = GetDirectoryFiles(dir, &dirFilesCount);
|
||||
char **files = LoadDirectoryFiles(dir, &dirFilesCount);
|
||||
|
||||
// Sort files and directories: dir by name + files by name
|
||||
// https://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Quicksort#C
|
||||
@ -492,7 +492,7 @@ static char **LoadDirectoryFiles(const char *dir, int *filesCount, char *filterE
|
||||
}
|
||||
}
|
||||
|
||||
ClearDirectoryFiles();
|
||||
UnloadDirectoryFiles();
|
||||
|
||||
*filesCount = validFilesCount;
|
||||
return validFiles;
|
||||
|
@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int fileCount = 0;
|
||||
char **droppedFiles = GetDroppedFiles(&fileCount);
|
||||
char **droppedFiles = LoadDroppedFiles(&fileCount);
|
||||
|
||||
if (fileCount == 1)
|
||||
{
|
||||
@ -89,7 +89,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
ClearDroppedFiles();
|
||||
UnloadDroppedFiles();
|
||||
}
|
||||
|
||||
if (btnExport)
|
||||
|
@ -83,7 +83,7 @@ int main()
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int fileCount = 0;
|
||||
char **droppedFiles = GetDroppedFiles(&fileCount);
|
||||
char **droppedFiles = LoadDroppedFiles(&fileCount);
|
||||
|
||||
// Check file extensions for drag-and-drop
|
||||
if ((fileCount == 1) && IsFileExtension(droppedFiles[0], ".raw"))
|
||||
@ -108,7 +108,7 @@ int main()
|
||||
importWindowActive = true;
|
||||
}
|
||||
|
||||
ClearDroppedFiles();
|
||||
UnloadDroppedFiles();
|
||||
}
|
||||
|
||||
// Check if load button has been pressed
|
||||
|
@ -141,11 +141,11 @@ int main()
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int dropFileCount = 0;
|
||||
char **droppedFiles = GetDroppedFiles(&dropFileCount);
|
||||
char **droppedFiles = LoadDroppedFiles(&dropFileCount);
|
||||
|
||||
if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
|
||||
|
||||
ClearDroppedFiles(); // Clear internal buffers
|
||||
UnloadDroppedFiles(); // Clear internal buffers
|
||||
}
|
||||
|
||||
if (visualStyleActive != prevVisualStyleActive)
|
||||
|
@ -67,7 +67,7 @@ int main(int argc, char **argv)
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int count = 0;
|
||||
char **files = GetDroppedFiles(&count);
|
||||
char **files = LoadDroppedFiles(&count);
|
||||
|
||||
if (IsFileExtension(files[0], ".ttf") ||
|
||||
IsFileExtension(files[0], ".otf") ||
|
||||
@ -86,7 +86,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
ClearDroppedFiles();
|
||||
UnloadDroppedFiles();
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
|
@ -142,7 +142,7 @@ int main(int argc, char **argv)
|
||||
if (IsFileDropped())
|
||||
{
|
||||
int count = 0;
|
||||
char **files = GetDroppedFiles(&count);
|
||||
char **files = LoadDroppedFiles(&count);
|
||||
|
||||
if (IsFileExtension(files[0], ".ttf") ||
|
||||
IsFileExtension(files[0], ".otf") ||
|
||||
@ -162,7 +162,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
ClearDroppedFiles();
|
||||
UnloadDroppedFiles();
|
||||
}
|
||||
|
||||
// Convert text to hex representation and draw it on screen
|
||||
|
Loading…
x
Reference in New Issue
Block a user