mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-28 09:38:52 +01:00
Fixed removal of all .sub files from the all playlist when exclude_all.txt is not empty.
This commit is contained in:
parent
d66aa26868
commit
68902745e0
@ -280,10 +280,8 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info, std::string me
|
||||
std::vector<Item *> includeFilterUnsorted;
|
||||
std::map<std::string, Item *> includeFilter;
|
||||
std::map<std::string, Item *> excludeFilter;
|
||||
std::map<std::string, Item *> excludeAllFilter;
|
||||
std::string includeFile = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "include.txt");
|
||||
std::string excludeFile = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "exclude.txt");
|
||||
std::string excludeAllFile = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "exclude_all.txt");
|
||||
|
||||
std::string launcher;
|
||||
bool showMissing = false;
|
||||
@ -315,7 +313,6 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info, std::string me
|
||||
ImportBasicList(info, includeFile, includeFilter);
|
||||
ImportBasicList(info, excludeFile, excludeFilter);
|
||||
}
|
||||
ImportBasicList(info, excludeAllFile, excludeAllFilter);
|
||||
|
||||
if (showMissing)
|
||||
{
|
||||
@ -366,6 +363,17 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info, std::string me
|
||||
excludeFilter.erase(it);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void CollectionInfoBuilder::addPlaylists(CollectionInfo *info)
|
||||
{
|
||||
std::map<std::string, Item *> excludeAllFilter;
|
||||
std::string excludeAllFile = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "exclude_all.txt");
|
||||
|
||||
ImportBasicList(info, excludeAllFile, excludeAllFilter);
|
||||
|
||||
if ( excludeAllFilter.size() > 0)
|
||||
{
|
||||
info->playlists["all"] = new std::vector<Item *>();
|
||||
@ -406,12 +414,7 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info, std::string me
|
||||
{
|
||||
info->playlists["all"] = &info->items;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void CollectionInfoBuilder::addPlaylists(CollectionInfo *info)
|
||||
{
|
||||
DIR *dp;
|
||||
struct dirent *dirp;
|
||||
std::string path = Utils::combinePath(Configuration::absolutePath, "collections", info->name, "playlists");
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
std::string retrofe_version_major = "0";
|
||||
std::string retrofe_version_minor = "8";
|
||||
std::string retrofe_version_build = "21";
|
||||
std::string retrofe_version_build = "22";
|
||||
|
||||
|
||||
std::string Version::getString( )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user