mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Added HIDE_HIDDEN build parameter
This commit is contained in:
parent
61c93e1222
commit
32b9675c49
@ -46,6 +46,10 @@ ifeq ($(TIMER_UNLOCK),1)
|
||||
CFLAGS += -DTIMER_UNLOCK
|
||||
endif
|
||||
|
||||
ifeq ($(HIDE_HIDDEN),1)
|
||||
CFLAGS += -DHIDE_HIDDEN
|
||||
endif
|
||||
|
||||
ifdef FIXED_BRIGHTNESS
|
||||
CFLAGS += -DFIXED_BRIGHTNESS=$(FIXED_BRIGHTNESS)
|
||||
endif
|
||||
|
@ -122,6 +122,10 @@ bool GetDirContentsWorker(DirStruct* contents, char* fpath, int fnsize, const ch
|
||||
while (fvx_readdir(&pdir, &fno) == FR_OK) {
|
||||
if ((strncmp(fno.fname, ".", 2) == 0) || (strncmp(fno.fname, "..", 3) == 0))
|
||||
continue; // filter out virtual entries
|
||||
#ifdef HIDE_HIDDEN
|
||||
if (fno.fattrib & AM_HID)
|
||||
continue; // filter out hidden entries
|
||||
#endif
|
||||
strncpy(fname, fno.fname, (fnsize - 1) - (fname - fpath));
|
||||
if (fno.fname[0] == 0) {
|
||||
ret = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user