SDL Wiki
(This is the legacy documentation for SDL2, the previous stable version; SDL3 is the current stable version.)

SDL_HINT_APPLE_RWFROMFILE_USE_RESOURCES

Specify if SDL_RWFromFile should use the resource dir on Apple platforms.

Header File

Defined in SDL_hints.h

Syntax

#define SDL_HINT_APPLE_RWFROMFILE_USE_RESOURCES "SDL_APPLE_RWFROMFILE_USE_RESOURCES"

Remarks

SDL2 has always done this on Apple platforms, but it can be surprising to try opening a path to discover that SDL adjusts the path to elsewhere, so this hint allows that behavior to be disabled.

If running from a App Bundle, this will be MyApp.app/Contents/Resources. If running as a normal Unix-like process, this will be the directory where the running binary lives. Setting this hint to 0 avoids this and just uses the requested path as-is.

This variable can be set to the following values:

This hint is available since SDL 2.32.0.


CategoryAPI, CategoryAPIMacro, CategoryHints


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.