filesystem: on Android, assume all paths are case-sensitive because doing Linux-specific ioctl check crashes FUSE driver and kills our app
This commit is contained in:
parent
f92a3695b3
commit
35dc072b26
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,12 @@ static qboolean Platform_GetDirectoryCaseSensitivity( const char *dir )
|
||||||
{
|
{
|
||||||
#if XASH_WIN32 || XASH_PSVITA || XASH_NSWITCH
|
#if XASH_WIN32 || XASH_PSVITA || XASH_NSWITCH
|
||||||
return false;
|
return false;
|
||||||
|
#elif XASH_ANDROID
|
||||||
|
// on Android, doing code below causes crash in MediaProviderGoogle.apk!libfuse_jni.so
|
||||||
|
// which in turn makes vold (Android's Volume Daemon) to umount /storage/emulated/0
|
||||||
|
// and because you can't unmount a filesystem when there is file descriptors open
|
||||||
|
// it has no other choice but to terminate and then kill our program
|
||||||
|
return true;
|
||||||
#elif XASH_LINUX && defined( FS_IOC_GETFLAGS )
|
#elif XASH_LINUX && defined( FS_IOC_GETFLAGS )
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
int fd;
|
int fd;
|
||||||
|
|
Loading…
Add table
Reference in a new issue