// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#include <config.h>
+
#include <cassert>
#include <cstdio>
#include <iostream>
{
return false;
}
+ fclose(fi);
return true;
}
mkdir((st_dir + "/levels").c_str(), 0755);
+ // try current directory as datadir
+ if(datadir.empty()) {
+ if(FileSystem::faccessible("./data/intro.txt"))
+ datadir = "./data";
+ }
+
// User has not that a datadir, so we try some magic
if (datadir.empty())
{
else if (strcmp(argv[i], "--version") == 0)
{
/* Show version: */
- printf((package_name + package_version + "\n").c_str() );
+ printf((package_name + " " + package_version + "\n").c_str() );
exit(0);
}
else if (strcmp(argv[i], "--disable-sound") == 0)