From 7742abfcf101ee597aa4c4c69f40987d538a053d Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 23 Mar 2012 19:10:05 +0100 Subject: [PATCH] removed some unused code --- installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes source/Tools/app_list.cpp | 70 ----------------------------- updates | 1 + 3 files changed, 1 insertion(+), 70 deletions(-) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index add7f5f01693da7722855c06704e936674ec8b60..f29ee61fcdb7412ccbd2a27e174ae68c881ca057 100644 GIT binary patch delta 30 ocmV+(0O9}81kePqIsz6)Ak@A)9L3P%nWsZz_xWx6!a)D)o6_c3T0l_BDoD|Kn^CDY!CofuN*un6B`8oix-3-S7 diff --git a/source/Tools/app_list.cpp b/source/Tools/app_list.cpp index 4a6ba57..05c7d53 100644 --- a/source/Tools/app_list.cpp +++ b/source/Tools/app_list.cpp @@ -23,79 +23,9 @@ extern void HaltGui(); void add(string device, string apps_path) { - /* - char dirname[MAXPATHLEN]; - struct stat st; - DIR_ITER* dir; - char pathnameelf[200]; - char pathname[200]; - char pFilename[200]; - string pathboot; - dir = diropen ((device + ":/" + apps_path).c_str()); - - if(dir != NULL) - { - //get all dir names - while( dirnext (dir, dirname, &st) != -1 ) - { - sprintf(pathnameelf, (device + ":/" + apps_path + "%s/boot.elf").c_str() ,dirname); - sprintf(pathname, (device + ":/" + apps_path + "%s/boot.dol").c_str() ,dirname); - - if(fopen(pathnameelf, "rb") != NULL) pathboot = pathnameelf; - if(fopen(pathname, "rb") != NULL) pathboot = pathname; - - if((fopen(pathname, "rb") || fopen(pathnameelf, "rb")) && strstr(pathname, (apps_path + "./").c_str()) == 0 && strstr(pathname, (apps_path + "../").c_str()) == 0 ) - { - sprintf(pFilename, (device + ":/" + apps_path + "%s/meta.xml").c_str() ,dirname); - - string line, quelltext, name, info, foldername, iconpath, arg; - ifstream in(pFilename); - while(getline(in, line)) - quelltext = quelltext + line + "\n"; - - name = parser(quelltext, "", ""); - if(name == "\0") name = dirname; - - info = parser(quelltext, "", ""); - if(info == "\0") info = tr(""); - - foldername = device + ":/" + apps_path + dirname + "/"; - transform(foldername.begin(), foldername.end(), foldername.begin(),::tolower); // in kleinebuchstaben umwandeln - - u8 *tempicon; - u8 *icon = NULL; - - iconpath = foldername + "icon.png"; - - arg = parser(quelltext, "", ""); - - size_t amount_read; - FILE *fp = fopen(iconpath.c_str(),"r"); //open the png file - if(fp) //make sure the file exists - { - u32 filesize; - fseek (fp , 0 , SEEK_END); - filesize = ftell(fp); //find the file size - rewind(fp); - - tempicon = new u8 [filesize]; //allocate memory for your image buffer - if(tempicon) //make sure memory allocated - { - amount_read = fread(tempicon,1,filesize,fp); //read file to buffer - if(amount_read == filesize) icon = tempicon; //make sure it read everything - } - } - fclose(fp); //close file - - vechomebrew_list_category[0].push_back(homebrew_list(name, info, foldername, icon, pathboot, arg)); - } - } - dirclose( dir ); - }*/ DIR *pdir; struct dirent *pent; -// struct stat statbuf; char pathnameelf[200]; char pathname[200]; diff --git a/updates b/updates index 684617c..188f528 100644 --- a/updates +++ b/updates @@ -10,6 +10,7 @@ - BUGFIX: compiled with libpng 1.4 to fix a problem in PNG handling - installer now supports Classic-Controller - installer now supports GameCube-Controller +- adopt libwiigui changes from ZERO - updated PNGu //rev37: