|
NAMEal_get_standard_path - Allegro 5 APISYNOPSIS
DESCRIPTIONGets a system path, depending on the id parameter. Some of these paths may be affected by the organization and application name, so be sure to set those before calling this function.The paths are not guaranteed to be unique (e.g., SETTINGS and DATA may be the same on some platforms), so you should be sure your filenames are unique if you need to avoid naming collisions. Also, a returned path may not actually exist on the file system.
If called from an OS X app bundle, then this will point to the internal resource directory (<bundle.app>/Contents/Resources). To maintain consistency, if you put your resources into a directory called “data” beneath the executable on some other platform (like Windows), then you should also create a directory called “data” under the OS X app bundle’s resource folder. You should not try to write to this path, as it is very likely read-only. If you install your resources in some other system directory (e.g., in /usr/share or C:\ProgramData), then you are responsible for keeping track of that yourself.
You should not save files here unless the user expects it, usually by explicit permission.
Returns NULL on failure. The returned path should be freed with al_destroy_path(3). SEE ALSOal_set_app_name(3), al_set_org_name(3), al_destroy_path(3), al_set_exe_name(3)
Visit the GSP FreeBSD Man Page Interface. |