engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h

This commit is contained in:
Alibek Omarov
2019-11-24 03:52:08 +03:00
parent ac4a14ef6c
commit 9421457b3a
55 changed files with 190 additions and 211 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ static int KeycodeFromEvdev(int keycode, int value)
}
static void Evdev_CheckPermissions( void )
{
#ifdef __ANDROID__
#if XASH_ANDROID
system( "su 0 chmod 664 /dev/input/event*" );
#endif
}
@@ -142,7 +142,7 @@ void Evdev_Setup( void )
{
if( evdev.initialized )
return;
#ifdef __ANDROID__
#if XASH_ANDROID
system( "su 0 supolicy --live \"allow appdomain input_device dir { ioctl read getattr search open }\" \"allow appdomain input_device chr_file { ioctl read write getattr lock append open }\"" );
system( "su 0 setenforce permissive" );
#endif