10#include "physfsrwops.h"
15#include "player_gui.h"
59 snprintf( buf,
sizeof( buf ), GUI_PATH
"%s.lua", name );
60 rw = PHYSFSRWOPS_openRead( buf );
62 WARN( _(
"GUI '%s' does not exist as a file: '%s' not found." ), name,
71 new[0] = strdup( name );
94 if ( strcmp(
gui_list[i], name ) == 0 )
Provides macros to work with dynamic arrays.
#define array_free(ptr_array)
Frees memory allocated and sets array to NULL.
static ALWAYS_INLINE int array_size(const void *array)
Returns number of elements in the array.
#define array_grow(ptr_array)
Increases the number of elements by one and returns the last element.
#define array_create(basic_type)
Creates a new dynamic array of ‘basic_type’.
Header file with generic functions and naev-specifics.
const char ** player_guiList(void)
Gets the list of GUIs.
void player_guiRm(const char *name)
Removes a player GUI.
int player_guiAdd(const char *name)
Adds a gui to the player.
int player_guiCheck(const char *name)
Check if player has a GUI.
void player_guiCleanup(void)
Cleans up the player's GUI list.