Commit graph

102 commits

Author SHA1 Message Date
Connor McLaughlin ead1be4728 Android: Add version, GitHub, Discord to app 2020-12-07 01:07:13 +10:00
Connor McLaughlin 922e17f677 CommonHostInterface: Don't use sleep throttle when syncing to audio at standard speed 2020-12-06 18:18:18 +10:00
Connor McLaughlin eaafd0a00c Cheats: Support parsing built-in database 2020-11-30 01:15:44 +10:00
Connor McLaughlin cf75282078 Android: Add missing call to ApplyGameSettings 2020-11-28 02:04:18 +10:00
Connor McLaughlin bb1e3a0692 Android: Display covers in game list 2020-11-28 00:14:46 +10:00
Connor McLaughlin 12caa79178 Android: Use APK assets for HostInterface::OpenPackagePath 2020-11-28 00:14:45 +10:00
Connor McLaughlin 82ffb1bc81 Android: Implement vibrate-on-press and dualshock vibration 2020-11-09 00:38:19 +10:00
Connor McLaughlin 3e6bc0e10d Android: Implement disc changing via playlists 2020-11-08 00:22:35 +10:00
Connor McLaughlin c1de8c32c1 Android: Provide game list file title to Java-side 2020-11-08 00:22:35 +10:00
Connor McLaughlin 74942443d3 Android: Add patch code (cheat) import 2020-11-08 00:22:35 +10:00
Connor McLaughlin 8cb89636eb Android: Empty audio buffers when returning from activity 2020-11-08 00:22:35 +10:00
Connor McLaughlin f68ad7d0c3 Android: Fix wait for emulation thread returning early 2020-11-08 00:22:35 +10:00
Connor McLaughlin f94fef11ac Android: Display version in title 2020-11-04 00:07:56 +10:00
Connor McLaughlin 8816c5048d Android: Add CPU overclocking option 2020-11-03 22:59:26 +10:00
Connor McLaughlin 2b66492ed8 HostInterface: Add proper turbo speed setting 2020-11-03 22:59:26 +10:00
Connor McLaughlin 5a93760af9 Android: Fix some crashes reported via Play Store 2020-11-03 16:17:45 +10:00
Connor McLaughlin d16b5a6721 Android: Add MSAA to enhancements 2020-11-03 16:17:45 +10:00
Connor McLaughlin 7ce55ca800 Android: Fix race/crash when switching away/back to the emulation activity 2020-10-27 11:58:46 +10:00
Connor McLaughlin 80a377d45a Android: Defer renderer changes to restart
Apparently it doesn't like changing surface types.
2020-10-27 11:58:04 +10:00
Connor McLaughlin e22c7608e3 Android: Scan on background thread and show progress 2020-10-24 16:05:52 +10:00
Connor McLaughlin e78ea2b60e Android: Fix crash on startup 2020-10-14 18:50:10 +10:00
Connor McLaughlin 3b6b7007b3 OpenSLESAudioStream: Add additional logging 2020-10-14 15:45:30 +10:00
Connor McLaughlin 8b3db72677 Android: Add logging options to settings 2020-10-14 15:45:30 +10:00
Connor McLaughlin 962f3407b4 Android: Add OpenSL ES audio backend 2020-10-14 00:48:48 +10:00
Connor McLaughlin d39c9f5d1c Clean up some compiler warnings 2020-10-11 12:21:08 +10:00
Connor McLaughlin 13a9411b07 Android: Add BIOS importer 2020-10-10 17:42:21 +10:00
Connor McLaughlin 423054e8ac Android: Fix ANR when boot fails 2020-10-10 16:35:36 +10:00
Connor McLaughlin 533722456b Android: Fix logo not displaying during loading 2020-10-07 18:01:20 +10:00
Connor McLaughlin de33c7fa2b Android: Implement cheats 2020-10-07 18:01:20 +10:00
Connor McLaughlin a7b85605e2 Ignore existing surface size on Android
Seems to be a race condition here where it's not up to date.
2020-09-20 01:36:49 +10:00
Connor McLaughlin 5aa1b9553f Android: Fix emulation stopping on app switch and UI covering display 2020-09-13 14:37:44 +10:00
Connor McLaughlin 9b942de47e Android: Improve handling of portrait mode 2020-09-11 00:18:57 +10:00
Connor McLaughlin 6bbbb96d4b Move GameList to FrontendCommon
Reduces libretro core dependencies further.
2020-09-01 12:46:44 +10:00
Connor McLaughlin cbbf599e4e Android: Multiple improvements
- Save/resume state when closing/starting.
 - Error reporting - hopefully can figure out why it's not starting on
   some devices.
 - Reduce startup latency.
 - Add more options and descriptions to settings.
2020-08-30 15:35:01 +10:00
Connor McLaughlin c3ce9135bf Fix recompiler not auto-disabling with PGXP-CPU mode 2020-08-21 00:09:37 +10:00
Connor McLaughlin 7b384ad300 Android: Use getExternalStorageDirectory() rather than hardcoding to /sdcard 2020-08-02 00:25:12 +10:00
Connor McLaughlin e9882a10aa System: Move restore/reset graphics API state to System
Fixes frame stepping.
2020-08-01 16:45:07 +10:00
Connor McLaughlin b6f871d2b9
JIT optimizations and refactoring (#675)
* CPU/Recompiler: Use rel32 call where possible for no-args

* JitCodeBuffer: Support using preallocated buffer

* CPU/Recompiler/AArch64: Use bl instead of blr for short branches

* CPU/CodeCache: Allocate recompiler buffer in program space

This means we don't need 64-bit moves for every call out of the
recompiler.

* GTE: Don't store as u16 and load as u32

* CPU/Recompiler: Add methods to emit global load/stores

* GTE: Convert class to namespace

* CPU/Recompiler: Call GTE functions directly

* Settings: Turn into a global variable

* GPU: Replace local pointers with global

* InterruptController: Turn into a global pointer

* System: Replace local pointers with global

* Timers: Turn into a global instance

* DMA: Turn into a global instance

* SPU: Turn into a global instance

* CDROM: Turn into a global instance

* MDEC: Turn into a global instance

* Pad: Turn into a global instance

* SIO: Turn into a global instance

* CDROM: Move audio FIFO to the heap

* CPU/Recompiler: Drop ASMFunctions

No longer needed since we have code in the same 4GB window.

* CPUCodeCache: Turn class into namespace

* Bus: Local pointer -> global pointers

* CPU: Turn class into namespace

* Bus: Turn into namespace

* GTE: Store registers in CPU state struct

Allows relative addressing on ARM.

* CPU/Recompiler: Align code storage to page size

* CPU/Recompiler: Fix relative branches on A64

* HostInterface: Local references to global

* System: Turn into a namespace, move events out

* Add guard pages

* Android: Fix build
2020-07-31 17:09:18 +10:00
Connor McLaughlin 24ffe6f67e Android: Multiple fixes
- Fix possible crash when applying settings worker thread (no JNIEnv).
 - Fix settings not applying until restarting the app.
 - Support analog controller - auto-binding of axixes. Currently no
   touchscreen controller for the joysticks.
 - Add option to auto-hide the touchscreen controller.
2020-07-29 02:38:04 +10:00
Connor McLaughlin a7e24da7fe Android: Multiple changes
- Fix game list display of NTSC-J region
 - Hook up quick load/save/reset options in emulation view.
 - Add speed limiter toggle to emulation view.
 - Add game list scanning options to main menu.
 - Add resume button (not yet hooked up to save states, it'll start the
   BIOS shell)
2020-07-27 00:05:18 +10:00
Connor McLaughlin 0398c6cb4a Android: Fix build 2020-07-21 20:25:40 +10:00
Connor McLaughlin 68d98af497 Qt: Remove usage of QString where possible for settings 2020-07-21 20:10:06 +10:00
Connor McLaughlin f9cbc3acfb Android: Hook up settings interface 2020-07-11 03:29:15 +10:00
Connor McLaughlin a451e7f177 Android: Get it running again
Currently settings are not changable.
2020-07-07 00:59:56 +10:00
Connor McLaughlin e91d760175 HostInterface: Fix crash on startup with controller connected 2020-04-06 12:18:33 +10:00
Connor McLaughlin b418f880ab Android: It builds again, but needs a lot more work 2020-04-06 00:25:40 +10:00
Connor McLaughlin ad21f48a67 Fix Android build after controller changes 2019-12-16 16:46:43 +10:00
Connor McLaughlin 5d91c011a6 Android: Basic touchscreen controller implementation 2019-12-09 01:43:37 +10:00
Connor McLaughlin 8c33163ef1 Android: Add type to game list (disc/psexe) 2019-12-04 21:54:14 +10:00
Connor McLaughlin 6da9e23d3b Android: Implementation of basic game list 2019-12-02 01:09:25 +10:00
Connor McLaughlin adc3a2fac1 Android: Support GLES3 and hardware renderers 2019-12-01 21:57:27 +10:00
Connor McLaughlin ea35c5f3bc Import initial work on Android frontend 2019-11-29 00:17:24 +10:00