Logo Search packages:      
Sourcecode: freecraft version File versions

beos.cpp

//   ___________             _________                _____  __
//   \_       _____/______   ____   ____ \_   ___ \____________ _/ ____\/  |_
//    |    __) \_  __ \_/ __ \_/ __ \/    \  \/\_  __ \__  \\   __\\   __|
//    |     \   |  | \/\  ___/\  ___/\     \____|  | \// __ \|  |   |  |
//    \___  /   |__|    \___  >\___  >\______  /|__|  (____  /__|   |__|
//      \/            \/         \/      \/              \/
//  ______________________                           ______________________
//                  T H E   W A R   B E G I N S
//       FreeCraft - A free fantasy real time strategy game engine
//
/**@name beos.cpp -     The BeOS functions */
//
//    (c) Copyright 2000 by Kenneth Sanislo
//
//    $Id: beos.cpp,v 1.4 2002/12/17 06:40:40 nehalmistry Exp $

//@{

/*----------------------------------------------------------------------------
--    Includes
----------------------------------------------------------------------------*/

#ifdef USE_BEOS

#include <Path.h>
#include <unistd.h>

/*----------------------------------------------------------------------------
--    Functions
----------------------------------------------------------------------------*/

extern "C" {

void beos_init( int argc, char **argv )
{ 
  BPath path( argv[0] );
  path.GetParent( &path );
  chdir( path.Path() );
}

}

//@}

#endif

Generated by  Doxygen 1.6.0   Back to index