1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 05:47:30 +02:00

More fixed for when CARD_ROOT doesn't exist

This commit is contained in:
bartbes 2010-09-01 22:11:24 +02:00
parent 6381674f57
commit cf9628a4cc

View File

@ -1070,7 +1070,7 @@ void GMenu2X::options() {
if (lang != tr.lang()) tr.setLang(lang); if (lang != tr.lang()) tr.setLang(lang);
if (fileExists(CARD_ROOT) && !showRootFolder) if (fileExists(CARD_ROOT) && !showRootFolder)
unlink(CARD_ROOT); unlink(CARD_ROOT);
else if (!fileExists(CARD_ROOT) && showRootFolder) else if (!fileExists(CARD_ROOT) /*&& showRootFolder*/)
symlink("/", CARD_ROOT); symlink("/", CARD_ROOT);
//WARNING: the above might be dangerous with CARD_ROOT set to / //WARNING: the above might be dangerous with CARD_ROOT set to /
writeConfig(); writeConfig();