1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Open battery/USB file handlers only when needed.

This commit is contained in:
Paul Cercueil
2012-06-24 22:48:50 +02:00
parent 7484ad2ef0
commit 0d9977e54c
2 changed files with 11 additions and 26 deletions

View File

@@ -85,7 +85,6 @@ private:
@return A number representing battery charge. 0 means fully discharged. 5 means fully charged. 6 represents a gp2x using AC power.
*/
unsigned short getBatteryLevel();
FILE* batteryHandle, *usbHandle, *acHandle;
void browsePath(const std::string &path, std::vector<std::string>* directories, std::vector<std::string>* files);
/*!
Starts the scanning of the nand and sd filesystems, searching for dge and gpu files and creating the links in 2 dedicated sections.
@@ -116,10 +115,7 @@ private:
void initServices();
void initFont();
void initMenu();
void initCPULimits();
void init();
void deinit();
void showManual();