mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-26 09:31:48 +01:00
gca/gcb support in copy_app_in_category()
This commit is contained in:
parent
01608655ab
commit
23a906f383
@ -94,12 +94,13 @@ void copy_app_in_category(int category) //Apps im Kategorie kopieren
|
||||
int anzahl_device = 0, anzahl_ordner = 0;
|
||||
|
||||
// Geräte SD, USB
|
||||
if(Settings.device == "sd1" || Settings.device == "usb1")
|
||||
if(Settings.device == "sd1" || Settings.device == "usb1" || Settings.device == "dvd"
|
||||
|| Settings.device == "gca" || Settings.device == "gcb")
|
||||
anzahl_device = 1;
|
||||
else if(Settings.device == "sd_usb")
|
||||
anzahl_device = 2;
|
||||
else if(Settings.device == "all")
|
||||
anzahl_device = 3;
|
||||
anzahl_device = 5;
|
||||
|
||||
// Ordner APPS, GC_APPS
|
||||
if(Settings.system == 1 || Settings.system == 0)
|
||||
@ -131,12 +132,13 @@ void copy_app_in_category(int category) //Apps im Kategorie kopieren
|
||||
foldername = "usb1" + ordner + AvailableCategory.apps[category][a] + "/";
|
||||
else if(x == 2)
|
||||
foldername = "dvd" + ordner + AvailableCategory.apps[category][a] + "/";
|
||||
else if(x == 3)
|
||||
foldername = "gca" + ordner + apps[a] + "/";
|
||||
else if(x == 4)
|
||||
foldername = "gcb" + ordner + apps[a] + "/";
|
||||
}
|
||||
|
||||
if(
|
||||
strcasecmp(vechomebrew_list_category[0][i].foldername.c_str(), foldername.c_str()) == 0 ||
|
||||
strcasecmp(AvailableCategory.apps[category][a].c_str(), "the homebrew channel") == 0
|
||||
)
|
||||
if(strcasecmp(vechomebrew_list_category[0][i].foldername.c_str(), foldername.c_str()) == 0)
|
||||
{
|
||||
|
||||
vechomebrew_list_category[category].push_back(homebrew_list(
|
||||
|
Loading…
Reference in New Issue
Block a user