Go to the documentation of this file.
41 for (
const auto &
file : files) {
43 if (loader->willLoad(
file)) {
59 char full_path[PATH_MAX];
60 std::vector<std::string>
names[2];
63 dp =
opendir(directory.c_str());
70 if (
d->d_name[0] == 0 ||
d->d_name[0] ==
'.' || strcmp(
d->d_name,
"dev") == 0 || strcmp(
d->d_name,
"trashbin") == 0)
73 snprintf(full_path,
sizeof(full_path),
"%s/%s", directory.c_str(),
d->d_name);
75 type = S_ISDIR(sb.st_mode) ? 0 : 1;
86 for (
const auto &dir :
names[0]) {
void processFiles(const std::vector< std::string > &files)
std::vector< AssetLoader * > m_loaders
void bufferreader_destroy(BufferReader *br)
virtual ~AssetCollector()
BufferReader * bufferreader_init_from_file(BufferReader *br, const char *filepath, const char *failureMessage, LogLevel failureLevel)
DIR * opendir(const char *)
struct dirent * readdir(DIR *)
void collect(const std::string &directory)
How to Install a Crossfire Server on you must install a python script engine on your computer Python is the default script engine of Crossfire You can find the python engine you have only to install them The VisualC Crossfire settings are for d
virtual void load(BufferReader *reader, const std::string &filename) override
const char *const names[]
BufferReader * bufferreader_create()