Commit Graph

73 Commits

Author SHA1 Message Date
mittorn 0901fd94e2 platform/android-nosdl: optionally wait gdb in nativeInit, enable dumpable flag early as possible 2024-02-27 05:01:13 +03:00
mittorn 0d18753adb platform/android-nosdl: add Platform_Shutdown for preShutdown callback 2024-02-27 05:01:13 +03:00
mittorn 7841382fef platform/android-nosdl: fix declaration style (werror) 2024-02-27 05:01:13 +03:00
mittorn e21d8df1fe platform/android-nosdl: Move all bindings to XashBindings class, workaround broken messageBox from crashhandler 2024-02-27 05:01:13 +03:00
mittorn 16aa2e919f vid/android: Remove pixelFormat selection code, it only used to set desktop bits per pixel 2024-02-27 05:01:13 +03:00
mittorn bb55de5963 platform/android: prevent rendering without context, fix android_sleep using surfaceless mode or dummy surface if possible 2024-02-27 05:01:13 +03:00
mittorn 44b1a8e863 platform/android: implement dumb dladdr fallback (only searches in server library) 2024-02-27 05:01:13 +03:00
mittorn 06c6371e69 platform/eglutil: prevent rendering while no surface 2024-02-27 05:01:13 +03:00
mittorn 7b4fd3bcad platform/android: debug surface enabling/disabling, add notification for event_set_pause, fix wrong host.status, prevent rendering while no surface 2024-02-27 05:01:13 +03:00
mittorn ea35863c26 platform/android: disable swbuffer resize hack, wrong buffer size really is an error that should be fixed on Activity side, not here 2024-02-27 05:01:13 +03:00
mittorn c2e14eb3a3 platform/android: rewrite egl part to separate not android-specific file 2024-02-27 05:01:13 +03:00
mittorn bb9775048b platform/android_nosdl: fix build (ndk10, host clang15) 2024-02-27 05:01:13 +03:00
mittorn fbb91e547d Revert "engine: partially remove legacy Android port, in preparation of new port merge"
This reverts commit ef663a8790.
2024-02-27 05:01:13 +03:00
Alibek Omarov e62ab51842 engine: platforms: android: platforms aren't expected to get NULL or zero sized native object names anymore 2024-02-19 17:49:37 +03:00
Velaron 5c90e716cb engine: platform: android: refactoring 2023-11-03 16:40:06 +03:00
Alibek Omarov 71b06801ef engine: platform: android: remove dead code 2023-11-03 14:48:28 +03:00
Alibek Omarov d2237fa144 engine: platform: android: merge new SDL2 based Android port from @Velaron's tree 2023-06-05 21:35:58 +03:00
Alibek Omarov ef663a8790 engine: partially remove legacy Android port, in preparation of new port merge 2023-06-05 20:30:18 +03:00
Andrey Akhmichin 6486533355 engine: platform: android: replace va function calls. 2023-03-11 16:29:55 +03:00
Alibek Omarov 0d7a2e7bad engine: platform: change capture API to allow locking/unlocking buffer to prevent race condition, use single function for pause 2022-08-31 06:50:06 +03:00
SNMetamorph 9f9141823a engine: added audio backend print to s_info command 2022-08-20 15:36:02 +03:00
Alibek Omarov 22ff45f5d0 engine: platform: add audio capture shutdown functions 2022-08-20 03:17:51 +03:00
SNMetamorph a254a342b1 engine: voice: minor code fixes 2022-08-18 04:46:11 +03:00
Velaron 2b9e050f57 engine: voice support 2022-08-18 04:46:11 +03:00
SNMetamorph 641f0632ef engine: client: fixed compilation errors on Android 2022-05-02 03:29:24 +03:00
Alibek Omarov ebfa8e6ffc engine: platform: android: fix compile 2021-12-27 03:19:50 +03:00
Alibek Omarov 4f89288ccf common: cleanup port.h 2021-12-23 19:17:11 +03:00
Alibek Omarov 523798857b engine: platform: fix opensles audio 2021-03-10 13:45:02 +03:00
Alibek Omarov a93d9ac71c engine: platform: simplify sound code
Remove SNDDMA_GetSoundtime, because it was mostly copypasted from one
platform code to another.
SNDDMA_GetDMAPos gets removed too, as we have dma.samplepos for that.
2021-03-10 00:16:13 +03:00
Alibek Omarov 3d9a4560d5 client: make sound cvars statically allocated, to avoid access to invalid pointers in the future 2021-03-09 23:59:29 +03:00
Gleb Mazovetskiy 5e0a0765ce Trim all trailing whitespace
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.

Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.

`git blame` becomes less useful on these lines but it already isn't very useful.

Commands:

```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
mittorn e96271a8a9 platform/android: make host.state actual in Android_UpdateSurface call 2020-07-12 05:16:08 +07:00
mittorn f0c9aa1585 vid_android: workaround small output buffer 2020-07-10 09:51:00 +07:00
mittorn 4515d3e3cb platform/android: implement native software blitter, fix lost context on resize, fix safegl 2020-07-08 08:48:46 +07:00
mittorn 98ffbaf87a android: fix fallbacks 2020-07-07 00:22:01 +07:00
Alibek Omarov 89ca0dec5e platform: android: slightly more verbosity 2020-03-29 17:44:23 +03:00
mittorn 3e3aff040e platform: add Platfrom_Init, Platform_Shutdown, Platform_MouseMove move platform-specific code from host.c 2020-02-08 23:15:40 +07:00
mittorn 3a416636f1 engine: mark GAME_EXPORT's 2020-01-19 08:15:54 +07:00
Alibek Omarov d0dbd185ad engine: android: fix enum-conversion 2019-12-23 06:55:00 +03:00
Alibek Omarov 8399107826 engine: platform: android: remake video backend to use EGL through Java code 2019-12-02 01:01:39 +03:00
Alibek Omarov fec0a6baf6 engine: platform: android: change package name 2019-12-01 02:17:51 +03:00
Alibek Omarov 0cb591821a Merge sdl12-port into master 2019-11-06 22:29:04 +03:00
Alibek Omarov 79adaa11e0 lowmemory: merge 2019-11-05 01:15:31 +03:00
mittorn 1365020302 ref: add enum for screen rotation 2019-11-04 20:27:46 +07:00
Alibek Omarov 9d826016b0 engine: finish sdl1.2 port 2019-11-02 08:56:07 +03:00
Aimless-Wanderer 00e5d42459 platform: android: fix macros 2019-10-31 18:42:34 +03:00
mittorn 7f6395fa7d ref: display transformation API 2019-10-31 01:36:07 +07:00
Alibek Omarov e3c3b05396 engine: platform: android: don't check if XASH_ENGLIBDIR and XASH_GAMELIBDIR are null. Load library by direct path if PATH_SPLITTER was found. Partially fixes #74 2019-10-30 16:55:00 +03:00
Alibek Omarov 6e637456ef platform: define platform-specific posix-compatible library loaders as macros to reduce macros hell in lib_posix.c 2019-10-30 16:46:18 +03:00
Alibek Omarov 8be58bcd21 engine: android: fix EGL context create error condition 2019-10-11 17:36:56 +03:00