Commit Graph

416 Commits

Author SHA1 Message Date
Henrik Rydgård f0d2f24658 Finally delete base/logging.cpp/h. Carefully preserve behaviour on Android.
There's more cleanup to do ...
2020-08-15 19:09:09 +02:00
Henrik Rydgård 5117ded378 Remove ELOG/ILOG/WLOG from the Android C++ code (mostly) 2020-08-15 19:08:39 +02:00
Henrik Rydgård 73166def93 Android: Reduce asserts during startup. 2020-07-28 19:06:29 +02:00
Henrik Rydgård aebbff55f1 Some renaming and cleanup in the Android audio code 2020-07-28 14:24:40 +02:00
Henrik Rydgård 06d57b1656 GL: Add some paranoid checks. Remove a useless option. 2020-07-28 14:24:36 +02:00
Unknown W. Brackets 54896432df Android: Oops, fix start with space in filename. 2020-05-12 21:21:22 -07:00
Unknown W. Brackets b1ae90dd03 Global: Add some defs for MSVC highlighting.
Just want this file not to be a sea of errors.  Before it said ifs etc.
were wrong too, because it didn't think things were functions.
2020-05-12 21:20:50 -07:00
Unknown W. Brackets ccc7ae54af Android: Avoid multiple resizes in a row.
This was sometimes happening when ui callbacks etc. would trigger in
certain patterns of using the app.  Might have been related to sizing
problems.

Delaying the resize by 10ms when the surface is unchanged seems okay.
2020-05-09 14:47:48 -07:00
Unknown W. Brackets 03fc86a147 UI: Return to game settings after restart.
This is more convenient.  Also restarts the game if needed.

Added a way to pass args to Android here as well, and fixed displaying an
error if the shortcut file doesn't exist on Android (like if you deleted
it after creating the shortcut.)
2020-05-09 13:53:42 -07:00
Henrik Rydgård 3838a1c94f Support drawing around notches on Android displays. Fixes #12261 2020-03-31 00:47:01 +02:00
Unknown W. Brackets 7d00cefd35 Android: Fix dismiss of OSK dialog. 2020-03-21 11:06:40 -07:00
Unknown W. Brackets 51b94a9c9c Core: Quiet some warnings. 2020-03-10 22:19:59 -07:00
Unknown W. Brackets f46231f2f4 Android: Avoid translation conflict in translation.
Using a magic pattern isn't ideal, but the user input can safely have
these characters without issue.  It only affects the input title.
2020-03-08 20:45:01 -07:00
Unknown W. Brackets a3e12f4242 Android: Process input prompts more clearly.
This way, the processing is generally inline or explicitly a callback.
There's also less parsing issues since all the parsing is centralized.
2020-03-08 20:45:01 -07:00
李通洲 55bb58e13e NativeApp: add System_GetPropertyFloat all the places 2020-02-04 09:20:34 +08:00
Florin9doi 83277680da Location: add HDOP; change speed to km/h; change altitude from geoid to sea level
The speed is now close to the value obtained on original hardware but
the altitude on original hardawre is too imprecise to tell if we're good
2020-01-26 14:19:45 +02:00
Florin9doi 2b57d2365f Android satellites info 2020-01-26 09:22:24 +02:00
Florin9doi 5fbf2d7713 Add camera/location support for iOS
Add front camera support for Android
Allow to change the active camera in-game
2020-01-25 16:54:45 +02:00
Henrik Rydgård f342d8d856 Logging improvements 2019-10-06 13:21:57 +02:00
Henrik Rydgård 0698944752 Fixes 2019-10-06 00:20:49 +02:00
Henrik Rydgård c023cd7e20 Make use of OnSystemUiVisibilityChangeListener to check whether navbar is hidden. Affects DPI calculations.
Also recalculate all dp parameters after either display or buffer size changed.
2019-10-05 23:30:50 +02:00
Henrik Rydgård e69b71b58f Remove some legacy 2019-09-17 23:26:42 +02:00
Henrik Rydgård 309d6562d5 We had an old fallback to the EGL GL loop in the Vulkan init. Remove it. 2019-09-17 10:52:02 +02:00
Henrik Rydgård caa8f1a433 Android: NativeApp.Init: Log the device name. 2019-08-13 10:15:39 +02:00
Henrik Rydgård 96a15cf525 Fix the indirect postprocessing path. Fixes #12133 (but see the issue for a secondary bug). 2019-08-04 18:01:36 +02:00
Silent bb2ba8086b Improved Show in Folder:
- Not spawning cmd.exe anymore, rather using the same way Chromium does to spawn a shell window with a file focused
- Hid a nonfunctional "Show In Folder" button for UWP builds
2019-05-23 19:59:08 +02:00
Henrik Rydgård aba375e2f7 Remove old resolution hackery that didn't fix anything. 2019-02-28 14:16:20 +01:00
Henrik Rydgård 3e1197f5f3 Android: Add some logging 2019-02-10 20:13:13 +01:00
Henrik Rydgård a0b019d473 Merge pull request #11455 from unknownbrackets/android-resize
Android: Fix Vulkan immersive startup
2018-10-08 07:52:47 +02:00
Unknown W. Brackets 9cb471e5bd Android: Avoid race on surface destroyed.
Avoids a segfault in this scenario.
2018-10-07 16:13:34 -07:00
Henrik Rydgård a3a94bdd33 Avoid calling any GL calls during shutdown on Android. Should help #11063
The context is already lost and we're really running shutdown when the process is woken
up again. Additionally, orderly shutdown through the button doesn't happen
on the render thread so remove a couple of asserts that are wrong.
2018-10-06 21:31:52 +02:00
Henrik Rydgård 3c5b2d69f6 Android: When using the hardware scaler, round the size to divisible by 4. Might help #11151 2018-08-26 19:26:54 +02:00
Unknown W. Brackets b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets 767886c4a3 Android: Fix C++ EGL code path with threaded GLES.
Still has the same problems as before.
2018-06-17 21:56:18 -07:00
Henrik Rydgård 343763cf5a More paranoia from Google Play 2018-05-27 22:16:36 +02:00
Henrik Rydgård b730d187e8 Add some paranoid checks guided by stack traces from Google Play 2018-05-27 22:12:59 +02:00
Unknown W. Brackets 3f1544612b Android: Add missing graphics shutdown calls.
These were there for graphics restart (like resize) but not for full
shutdown, which was causing crashes during shutdown sometimes.

See #10931.
2018-04-21 08:33:53 -07:00
Unknown W. Brackets 6ba0a6cdfd Android: End GLES renderer after emu thread join.
This matches other backends, and prevents things from being added to the
deleter after GLES end.  Fixes #10849.
2018-04-08 19:28:15 -07:00
Henrik Rydgård 188ed07d77 Android: Have haptic feedback ignore the global setting, but default to off. 2018-03-25 13:42:57 +02:00
Henrik Rydgård fb15208777 Android: Reload the config after getting storage permission, and ask immediately. Should help #10670 2018-03-24 12:52:51 +01:00
Henrik Rydgård 08c3e13517 Do more detailed checks for Vulkan availability. Should hopefully solve #10729. 2018-03-17 11:36:16 +01:00
Henrik Rydgård 9f9903c02e Fixes to vulkan restart logic on Android. Should help #10696 2018-03-11 17:14:11 +01:00
Henrik Rydgård f196a877e6 Android: Fix fallback from Vulkan to GL. 2018-03-03 00:00:18 +01:00
Henrik Rydgård 926b3873df Fix issue with Vulkan task switching and resolution changes on Android. 2018-02-12 17:47:31 +01:00
Unknown W. Brackets cdf378d20c GLES: Prevent race condition on shutdown.
emuThreadState might become STOPPED before the last frame has been run,
which can cause WaitUntilQueueIdle to hang.

It's simpler just to wait until StopThread() is called, since it now is.
This will line up properly with run_.
2018-02-11 11:40:11 -08:00
Unknown W. Brackets 48b4a5f378 Android: Fix race condition on shutdown. 2018-02-10 16:55:48 -08:00
Henrik Rydgård ae19c48138 Cleanup the Windows thread stuff to work like the other platforms. Not quite perfect yet. 2018-02-07 16:00:29 +01:00
Henrik Rydgård 7f30037e45 Android: Fix emuthread management to exit cleanly without hanging. Helps with task switching on Android. 2018-02-07 13:11:43 +01:00
Henrik Rydgård bd3a681fd3 Enough JNI/threading hackery to get it to run on Android! Broken readbacks make it crash alot though. 2018-01-28 17:30:33 +01:00
Henrik Rydgård 7abb8702ce Work towards threaded GL on Android. Now TextDrawer barfs on wrong JNI context. 2018-01-28 17:29:27 +01:00