MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / findFirstMountedSdCardPath

Function findFirstMountedSdCardPath

Tactility/Source/Paths.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace tt {
10
11bool findFirstMountedSdCardPath(std::string& path) {
12 auto* fs = findSdcardFileSystem(true);
13 if (fs == nullptr) return false;
14 char found_path[128];
15 if (file_system_get_path(fs, found_path, sizeof(found_path)) != ERROR_NONE) return false;
16 path = found_path;
17 return true;
18}
19
20FileSystem* findSdcardFileSystem(bool mustBeMounted) {
21 FileSystem* found = nullptr;

Callers 7

getSystemRootPathFunction · 0.85
bootSplashInitFunction · 0.85
handleApiScreenshotMethod · 0.85
getPropertiesFilePathFunction · 0.85
createFilePathWidgetsMethod · 0.85
updateStorageMethod · 0.85
onShowMethod · 0.85

Calls 2

findSdcardFileSystemFunction · 0.85
file_system_get_pathFunction · 0.85

Tested by

no test coverage detected