mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
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:
@@ -57,6 +57,12 @@ static qboolean Platform_GetDirectoryCaseSensitivity( const char *dir )
|
||||
{
|
||||
#if XASH_WIN32 || XASH_PSVITA || XASH_NSWITCH
|
||||
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 )
|
||||
int flags = 0;
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user