X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fapp%2Fsetup.cpp;h=c7972c470323bc8b2a025df720cb5fa51b9d9d49;hb=8e0bad9f82ccbc811a18edd7ce6c6f69c5bca082;hp=acb17497a8e000d85642af2323f6f3d2568a753f;hpb=3e1ea65bfa3cf450b9c7207831d9403a2c0f9101;p=supertux.git diff --git a/lib/app/setup.cpp b/lib/app/setup.cpp index acb17497a..c7972c470 100644 --- 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()) { - if(FileSystem::faccessible("./data/intro.txt")) + if(FileSystem::faccessible("./data/credits.txt")) datadir = "./data/"; } @@ -322,10 +322,10 @@ void Setup::directories() { 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) { - 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) {