GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SET_ALLEGRO_RESOURCE_PATH (3)

NAME

set_allegro_resource_path - Sets a specific resource search path. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

int set_allegro_resource_path(int priority, const char *path);

DESCRIPTION

Sometimes Allegro doesn’t look in enough places to find a resource. For those special cases, you can call this function before loading your resource with additional paths to search for. You set up the priorities, higher numbers are searched for first. To modify an already setup path, call this function with the same priority and the new path. To remove an already setup path, call this function with the priority of the path and NULL as the path parameter. Example:

   set_allegro_resource_path(10, "my_game/configs");
   set_allegro_resource_path(0, "users/configs/");
   set_allegro_resource_path(-45, "temp");
  

These custom paths will be valid until you call allegro_exit(). You can call this function before install_allegro(), but after set_uformat() if you want to use a text encoding format other than the default.

RETURN VALUE

Returns non-zero on success, zero if the path could not be added or you wanted to remove a path and the priority used didn’t have any associated path. Modification of existing paths always succeeds.

SEE ALSO

find_allegro_resource(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro SET_ALLEGRO_RESOURCE_PATH (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.