2 |
$Id$ |
$Id$ |
3 |
|
|
4 |
Copyright (C) 2003/2004 Alexandre Courbot <alexandrecourbot@linuxgames.com> |
Copyright (C) 2003/2004 Alexandre Courbot <alexandrecourbot@linuxgames.com> |
5 |
|
Copyright (C) 2005 Kai Sterker <kaisterker@linuxgames.com> |
6 |
Part of the Adonthell Project http://adonthell.linuxgames.com |
Part of the Adonthell Project http://adonthell.linuxgames.com |
7 |
|
|
8 |
Adonthell is free software; you can redistribute it and/or modify |
Adonthell is free software; you can redistribute it and/or modify |
23 |
/** |
/** |
24 |
* @file base/paths.cc |
* @file base/paths.cc |
25 |
* @author Alexandre Courbot <alexandrecourbot@linuxgames.com> |
* @author Alexandre Courbot <alexandrecourbot@linuxgames.com> |
26 |
|
* @author Kai Sterker <kaisterker@linuxgames.com> |
27 |
* |
* |
28 |
* @brief Defines some primitives to get essential game paths. |
* @brief Defines some primitives to get essential game paths. |
29 |
* |
* |
113 |
return exists (GameDataDir); |
return exists (GameDataDir); |
114 |
} |
} |
115 |
|
|
116 |
// set path to saved game |
// set path to saved game (before loading the game from that directory) |
117 |
void paths::set_save_dir (const std::string & dir) |
void paths::set_save_dir (const std::string & dir) |
118 |
{ |
{ |
119 |
if (dir != "" && exists (CfgDataDir + dir)) |
if (dir != "" && exists (CfgDataDir + dir)) |