File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,14 @@ static void detectName(FFDisk* disk, const FFstrbuf* device)
121121
122122#ifdef __ANDROID__
123123
124- static void detectType (const FFlist * allDisks , FFDisk * currentDisk , const char * options )
124+ static void detectType (FF_MAYBE_UNUSED const FFlist * allDisks , FFDisk * currentDisk , FF_MAYBE_UNUSED const char * options )
125125{
126- if (ffStrbufEqualS (& disk -> mountpoint , "/" ) || ffStrbufEqualS (& disk -> mountpoint , "/storage/emulated" ))
127- disk -> type = FF_DISK_TYPE_REGULAR ;
128- else if (ffStrbufStartsWithS (& disk -> mountpoint , "/mnt/media_rw/" ))
129- disk -> type = FF_DISK_TYPE_EXTERNAL ;
126+ if (ffStrbufEqualS (& currentDisk -> mountpoint , "/" ) || ffStrbufEqualS (& currentDisk -> mountpoint , "/storage/emulated" ))
127+ currentDisk -> type = FF_DISK_TYPE_REGULAR ;
128+ else if (ffStrbufStartsWithS (& currentDisk -> mountpoint , "/mnt/media_rw/" ))
129+ currentDisk -> type = FF_DISK_TYPE_EXTERNAL ;
130130 else
131- disk -> type = FF_DISK_TYPE_HIDDEN ;
131+ currentDisk -> type = FF_DISK_TYPE_HIDDEN ;
132132}
133133
134134#else
You can’t perform that action at this time.
0 commit comments