+ std::string filename = subset.get_level_filename(i);
+ std::string filepath;
+ filepath = st_dir + "/levels/" + filename;
+ if (access(filepath.c_str(), R_OK) != 0)
+ {
+ filepath = datadir + "/levels/" + filename;
+ if (access(filepath.c_str(), R_OK) != 0)
+ {
+ std::cerr << "Error: Level: couldn't find level: " << filename << std::endl;
+ continue;
+ }
+ }
+
+ LispReader* reader = LispReader::load(filepath, "supertux-level");