mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 16:54:29 +00:00
engine: android: allow building dedicated on Android
This commit is contained in:
parent
b91e97ca53
commit
07aa9595c0
@ -162,7 +162,7 @@ void Sys_PrintLog( const char *pMsg )
|
|||||||
|
|
||||||
time( &crt_time );
|
time( &crt_time );
|
||||||
crt_tm = localtime( &crt_time );
|
crt_tm = localtime( &crt_time );
|
||||||
#ifdef __ANDROID__
|
#if XASH_ANDROID && !XASH_DEDICATED
|
||||||
__android_log_print( ANDROID_LOG_DEBUG, "Xash", "%s", pMsg );
|
__android_log_print( ANDROID_LOG_DEBUG, "Xash", "%s", pMsg );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#include "platform/platform.h"
|
#include "platform/platform.h"
|
||||||
#if defined __ANDROID__ || 1
|
#if !defined(XASH_DEDICATED)
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
@ -973,4 +973,4 @@ void Platform_RunEvents()
|
|||||||
pthread_mutex_lock( &events.framemutex );
|
pthread_mutex_lock( &events.framemutex );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __ANDROID__
|
#endif // XASH_DEDICATED
|
||||||
|
@ -12,6 +12,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef DLSYM_WEAH_H
|
#ifndef DLSYM_WEAH_H
|
||||||
#define DLSYM_WEAK_H
|
#define DLSYM_WEAK_H
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#ifdef __ANDROID__
|
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "library.h"
|
#include "library.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
@ -54,11 +52,12 @@ void *ANDROID_LoadLibrary( const char *dllname )
|
|||||||
void *ANDROID_GetProcAddress( void *hInstance, const char *name )
|
void *ANDROID_GetProcAddress( void *hInstance, const char *name )
|
||||||
{
|
{
|
||||||
void *p = dlsym( hInstance, name );
|
void *p = dlsym( hInstance, name );
|
||||||
|
|
||||||
|
#ifndef XASH_64BIT
|
||||||
if( p ) return p;
|
if( p ) return p;
|
||||||
|
|
||||||
return dlsym_weak( hInstance, name );
|
p = dlsym_weak( hInstance, name );
|
||||||
|
#endif // XASH_64BIT
|
||||||
|
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif // __ANDROID__
|
|
||||||
|
@ -13,7 +13,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#ifdef __ANDROID__
|
|
||||||
#ifndef ANDROID_LIB_H
|
#ifndef ANDROID_LIB_H
|
||||||
#define ANDROID_LIB_H
|
#define ANDROID_LIB_H
|
||||||
|
|
||||||
@ -21,4 +20,3 @@ void *ANDROID_LoadLibrary( const char *dllname );
|
|||||||
void *ANDROID_GetProcAddress( void *hInstance, const char *name );
|
void *ANDROID_GetProcAddress( void *hInstance, const char *name );
|
||||||
|
|
||||||
#endif // ANDROID_LIB_H
|
#endif // ANDROID_LIB_H
|
||||||
#endif // __ANDROID__
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "platform/platform.h"
|
#include "platform/platform.h"
|
||||||
#if defined XASH_VIDEO == VIDEO_ANDROID || 1
|
#if defined XASH_VIDEO == VIDEO_ANDROID
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user