Skip to content

[examples] Fix directory navigation in core_directory_files#5823

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
MAXDVVV:fix-directory-files-listview-navigation
Apr 29, 2026
Merged

[examples] Fix directory navigation in core_directory_files#5823
raysan5 merged 1 commit into
raysan5:masterfrom
MAXDVVV:fix-directory-files-listview-navigation

Conversation

@MAXDVVV
Copy link
Copy Markdown

@MAXDVVV MAXDVVV commented Apr 29, 2026

Summary

Fixes #5788.

This restores directory navigation in the core_directory_files example after the switch to GuiListViewEx.

What changed

  • Include directories in the filtered listing by using DIRS*;.png;.c.
  • Detect when the selected list item is a directory and reload the view for that path.
  • Reset GuiListViewEx state after forward/back navigation.

Rationale

LoadDirectoryFilesEx(directory, ".png;.c", false) filters out directories, so the list no longer contains entries that can be selected to navigate into subdirectories. Including DIRS* restores directory rows while keeping the existing .png/.c file filtering.

Validation

  • Checked LoadDirectoryFilesEx() / GetDirectoryFileCountEx() / ScanDirectoryFiles() filter behavior.
  • git diff --check passes.
  • No local C toolchain was available in this Windows environment (cmake, gcc, cl not found), so this PR is validated by static review only.

@raysan5 raysan5 changed the title Fix directory navigation in core_directory_files [examples] Fix directory navigation in core_directory_files Apr 29, 2026
@raysan5 raysan5 merged commit 7b7ded5 into raysan5:master Apr 29, 2026
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Apr 29, 2026

@MAXDVVV thanks, the fix is valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[examples] core_directory_files no longer works as expected

2 participants