mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 19:39:22 +02:00
Show disk usage of the home partition, not the one mounted on /boot
This commit is contained in:
parent
0fd8333257
commit
b0846812b8
@ -302,11 +302,7 @@ void GMenu2X::initBG() {
|
|||||||
Surface *sd = Surface::loadImage("imgs/sd.png", confStr["skin"]);
|
Surface *sd = Surface::loadImage("imgs/sd.png", confStr["skin"]);
|
||||||
if (sd) sd->blit(bgmain, 3, bottomBarIconY);
|
if (sd) sd->blit(bgmain, 3, bottomBarIconY);
|
||||||
|
|
||||||
#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)
|
string df = getDiskFree(getHome().c_str());
|
||||||
string df = getDiskFree("/boot");
|
|
||||||
#else
|
|
||||||
string df = getDiskFree(CARD_ROOT);
|
|
||||||
#endif
|
|
||||||
bgmain->write(font, df, 22, bottomBarTextY, Font::HAlignLeft, Font::VAlignMiddle);
|
bgmain->write(font, df, 22, bottomBarTextY, Font::HAlignLeft, Font::VAlignMiddle);
|
||||||
delete sd;
|
delete sd;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user