Ignore:
Timestamp:
May 9, 2011, 12:55:14 AM (11 years ago)
Author:
Sam Hocevar
Message:

build: add a `--with-assetsdir' configure flag to specify where the
game data should be installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/sdlport/setup.cpp

    r555 r614  
    9393    if( (fd = fopen( rcfile, "w" )) != NULL )
    9494    {
    95         char datadir[255];
    96         strncpy(datadir, EXPDATADIR, 255);
    97 
    9895        fputs( "; Abuse-SDL Configuration file\n\n", fd );
    9996        fputs( "; Startup fullscreen\nfullscreen=0\n\n", fd );
     
    105102        fputs( "; Use OpenGL\ngl=0\n\n", fd );
    106103        fputs( "; Location of the datafiles\ndatadir=", fd );
    107         fputs( datadir, fd );
    108         fputs( "\n\n", fd );
     104        fputs( ASSETSDIR "\n\n", fd );
    109105        #endif
    110106        fputs( "; Use mono audio only\nmono=0\n\n", fd );
     
    434430        set_filename_prefix( (const char*)buffer );
    435431    #else
    436     set_filename_prefix( EXPDATADIR );
     432    set_filename_prefix( ASSETSDIR );
    437433    #endif
    438434
Note: See TracChangeset for help on using the changeset viewer.