al_set_exe_name(3alleg5)

al_set_exe_name3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
void al_set_exe_name(char const *path)

Overview

This override the executable name used by al_get_standard_path(3alleg5) for ALLEGRO_EXENAME_PATH and ALLEGRO_RESOURCES_PATH.

One possibility where changing this can be useful is if you use the Python wrapper. Allegro would then by default think that the system’s Python executable is the current executable - but you can set it to the .py file being executed instead.

Since

5.0.6, 5.1.0

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.