Changeset 149


Ignore:
Timestamp:
Jun 24, 2008, 5:50:47 PM (15 years ago)
Author:
holiday
Message:

EXPDATADIR from ./configure now written into new abuserc files

File:
1 edited

Legend:

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

    r129 r149  
    9090    if( (fd = fopen( rcfile, "w" )) != NULL )
    9191    {
     92        char datadir[255];
     93        strncpy(datadir, EXPDATADIR, 255);
     94
    9295        fputs( "; Abuse-SDL Configuration file\n\n", fd );
    9396        fputs( "; Startup fullscreen\nfullscreen=0\n\n", fd );
     
    98101        fputs( "; Use DoubleBuffering\ndoublebuf=0\n\n", fd );
    99102        fputs( "; Use OpenGL\ngl=0\n\n", fd );
    100         fputs( "; Location of the datafiles\ndatadir=/var/games/abuse\n\n", fd );
     103        fputs( "; Location of the datafiles\ndatadir=", fd );
     104        fputs( datadir, fd );
     105        fputs( "\n\n", fd );
    101106        #endif
    102107        fputs( "; Use mono audio only\nmono=0\n\n", fd );
Note: See TracChangeset for help on using the changeset viewer.