mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 03:22:48 +02:00
More fixed for when CARD_ROOT doesn't exist
This commit is contained in:
parent
6381674f57
commit
cf9628a4cc
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user