projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new editor image for infoblock
[supertux.git]
/
lib
/
app
/
setup.cpp
diff --git
a/lib/app/setup.cpp
b/lib/app/setup.cpp
index
acb1749
..
c7972c4
100644
(file)
--- a/
lib/app/setup.cpp
+++ b/
lib/app/setup.cpp
@@
-303,7
+303,7
@@
void Setup::directories()
// try current directory as datadir
if(datadir.empty()) {
// try current directory as datadir
if(datadir.empty()) {
-
if(FileSystem::faccessible("./data/intro
.txt"))
+
if(FileSystem::faccessible("./data/credits
.txt"))
datadir = "./data/";
}
datadir = "./data/";
}
@@
-322,10
+322,10
@@
void Setup::directories()
{
std::string exedir = std::string(dirname(exe_file)) + "/";
{
std::string exedir = std::string(dirname(exe_file)) + "/";
- datadir = exedir + ".
.
/data/"; // SuperTux run from source dir
+ datadir = exedir + "./data/"; // SuperTux run from source dir
if (access(datadir.c_str(), F_OK) != 0)
{
if (access(datadir.c_str(), F_OK) != 0)
{
- datadir = exedir + "../../data/"; //SuperTux run from source dir (with libtool script)
+ datadir = exedir + "../../
../../
data/"; //SuperTux run from source dir (with libtool script)
if (access(datadir.c_str(), F_OK) != 0)
{
if (access(datadir.c_str(), F_OK) != 0)
{