SDL icon indicating copy to clipboard operation
SDL copied to clipboard

SDL_EnumeratePropertiesCallback should return SDL_EnumerationResult

Open icculus opened this issue 2 months ago • 1 comments

This is SDL4 API-change stuff.

SDL_EnumeratePropertiesCallback returns void. It should return SDL_EnumerationResult, so an app can stop doing work once it found the thing it was looking for (and also dictate if SDL_EnumerateProperties should return success or failure in the stopped-early case).

Along with this, SDL_EnumerationResult should move out of SDL_filesystem.h and into a more generic location.

icculus avatar Nov 10 '25 17:11 icculus

There are maybe other callbacks that would also benefit from this sort of change, but I haven't looked around for them at the moment.

icculus avatar Nov 10 '25 17:11 icculus