mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 02:51:53 +02:00
Removed checks for manuals and screenshots in JPEG and BMP format
Support for loading JPEG and BMP images was removed a long time ago, so there is no point in looking for files in those formats.
This commit is contained in:
parent
666be4d354
commit
8472acc26c
@ -429,8 +429,7 @@ void LinkApp::showManual() {
|
||||
return;
|
||||
|
||||
// Png manuals
|
||||
string ext8 = manual.substr(manual.size()-8,8);
|
||||
if (ext8==".man.png" || ext8==".man.bmp" || ext8==".man.jpg" || manual.substr(manual.size()-9,9)==".man.jpeg") {
|
||||
if (manual.substr(manual.size()-8,8)==".man.png") {
|
||||
#ifdef ENABLE_CPUFREQ
|
||||
//Raise the clock to speed-up the loading of the manual
|
||||
gmenu2x->setSafeMaxClock();
|
||||
|
@ -456,12 +456,6 @@ bool Menu::addLink(string path, string file, string section) {
|
||||
string manual = "";
|
||||
if (fileExists(exename+".man.png")) {
|
||||
manual = exename+".man.png";
|
||||
} else if (fileExists(exename+".man.jpg")) {
|
||||
manual = exename+".man.jpg";
|
||||
} else if (fileExists(exename+".man.jpeg")) {
|
||||
manual = exename+".man.jpeg";
|
||||
} else if (fileExists(exename+".man.bmp")) {
|
||||
manual = exename+".man.bmp";
|
||||
} else if (fileExists(exename+".man.txt")) {
|
||||
manual = exename+".man.txt";
|
||||
} else {
|
||||
|
@ -279,8 +279,6 @@ void Selector::prepare(FileLister *fl, vector<string> *screens, vector<string> *
|
||||
|
||||
if (fileExists(screendir+noext+".png"))
|
||||
screens->at(i) = screendir+noext+".png";
|
||||
else if (fileExists(screendir+noext+".jpg"))
|
||||
screens->at(i) = screendir+noext+".jpg";
|
||||
else
|
||||
screens->at(i) = "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user