use it for new option to skip pbl files when gathering files
This commit is contained in:
parent
d159b15637
commit
a99aa8532b
2 changed files with 4 additions and 1 deletions
|
@ -181,6 +181,9 @@ void get_files_in_dir(const std::string &directory,
|
|||
|
||||
if (::stat(fullname.c_str(), &st) != -1) {
|
||||
if (S_ISREG(st.st_mode)) {
|
||||
if(filter == SKIP_PBL_FILES && looks_like_pbl(basename)) {
|
||||
continue;
|
||||
}
|
||||
if (files != NULL) {
|
||||
if (mode == ENTIRE_FILE_PATH)
|
||||
files->push_back(fullname);
|
||||
|
|
|
@ -38,7 +38,7 @@ struct io_exception : public game::error {
|
|||
struct file_tree_checksum;
|
||||
|
||||
enum file_name_option { ENTIRE_FILE_PATH, FILE_NAME_ONLY };
|
||||
enum file_filter_option { NO_FILTER, SKIP_MEDIA_DIR };
|
||||
enum file_filter_option { NO_FILTER, SKIP_MEDIA_DIR, SKIP_PBL_FILES };
|
||||
enum file_reorder_option { DONT_REORDER, DO_REORDER };
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue