mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-29 10:19:18 -05:00
OS Specific path seperator char (#316)
* OS Specific path seperator char Adds OS specific path seperator char * Update gui_window_file_dialog.h * Update custom_file_dialog.c
This commit is contained in:
@ -61,7 +61,7 @@ int main()
|
||||
// Load image file (if supported extension)
|
||||
if (IsFileExtension(fileDialogState.fileNameText, ".png"))
|
||||
{
|
||||
strcpy(fileNameToLoad, TextFormat("%s/%s", fileDialogState.dirPathText, fileDialogState.fileNameText));
|
||||
strcpy(fileNameToLoad, TextFormat("%s" PATH_SEPERATOR "%s", fileDialogState.dirPathText, fileDialogState.fileNameText));
|
||||
UnloadTexture(texture);
|
||||
texture = LoadTexture(fileNameToLoad);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user