From f044cd8621c78b20a4a9e98bd2d58a883a9a4857 Mon Sep 17 00:00:00 2001 From: Christopher Bonhage Date: Tue, 11 Jun 2024 06:13:06 -0400 Subject: [PATCH] Hide macOS system files in the root of the SD card (#113) ## Description Make the root of the SD card a little cleaner by hiding the crap that macOS puts there. ## Motivation and Context Whenever an SD card touches macOS, a handful of hidden files get created that cannot be touched. N64FlashcartMenu has no need for these files, so they should be hidden. ## How Has This Been Tested? Built and run on SummerCart64 with an NTSC N64 ## Types of changes - [x] Improvement (non-breaking change that adds a new feature) - [ ] Bug fix (fixes an issue) - [ ] Breaking change (breaking change) - [ ] Config and build (change in the configuration and build system, has no impact on code or features) ## Checklist: - [X] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [X] All new and existing tests passed. Signed-off-by: meeq --- src/menu/views/browser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/menu/views/browser.c b/src/menu/views/browser.c index 75c45a15..d7d518e8 100644 --- a/src/menu/views/browser.c +++ b/src/menu/views/browser.c @@ -24,7 +24,14 @@ static const char *hidden_paths[] = { "/ED64", "/ED64P", "/sc64menu.n64", + // Windows garbage "/System Volume Information", + // macOS garbage + "/.fseventsd", + "/.Spotlight-V100", + "/.Trashes", + "/.VolumeIcon.icns", + "/.metadata_never_index", NULL, };