Aaron Culliney
e1629095b6
Get crash symbolication working for x86 build
2015-11-29 14:35:01 -08:00
Aaron Culliney
b9d6d38b17
First cut at save/restore emulator state feature
...
- This adds to overall UX ... (you can finally finish some very difficult arcade games by strategically leveraging
this feature)
- Currently enabled for Android, but not Android-specific
2015-11-22 18:22:01 -10:00
Aaron Culliney
6de1cae478
Move nativeOnCreate back to proper position as first native call
...
- This runs discovery of CPU family
- This sets up native crash handling
2015-11-01 19:26:34 -08:00
Aaron Culliney
9a2044f75e
Apparently not possible to query this early on Gingerbread devices
2015-11-01 13:43:09 -08:00
Aaron Culliney
521d1daccf
Refactor app startup
...
- Make sure crash checking is performed as early as possible
- Minimize calling complex native functions until after splash screen is dimissed
- Do not attempt to setup/resume OpenGL until after splash screen is dimissed
2015-11-01 10:14:40 -08:00
Aaron Culliney
cbe8a734d0
Move CPU feature discovery into CTOR
2015-10-31 23:00:45 -07:00
Aaron Culliney
acdc8da64f
Refactor pause/resume functions to be strictly CPU thread pause/resume
2015-10-31 14:01:47 -07:00
Aaron Culliney
d4adabda93
SNEAKY BUGFIX race condition between UI thread and CPU thread on disk insertion
...
- Previously we would start the CPU thread and then insert, which has been a long standing race condition, but
possibly better exposed since the recent disk.c rephactor to use mmap I/O
- This directly manifested on a Kindle Fire 1st Gen as a crash, and, anecdotally on other devices as a "stalled"
disk read requiring a reboot of the virtual machine. Yay for crappy devices helping to expose crappy code! (git
blame me). =P
2015-10-30 23:19:33 -07:00
Aaron Culliney
2cc23cf35d
Upgrade to GPLv3 "or later" and update copyrights
2015-10-22 21:09:13 -07:00
Aaron Culliney
4e478d369c
Refactor disk interface API function names
2015-10-15 22:51:44 -07:00
Aaron Culliney
f4fa5670b4
Add function-call time tracing for Linux/Android
2015-10-04 14:22:26 -07:00
Aaron Culliney
e161dce3c2
Make app shutdown happen on the GL thread to avoid crashing
2015-10-04 13:39:57 -07:00
Aaron Culliney
7f32e14a6e
Compile against android-10 while we still care about Gingerbread ... nom nom nom
2015-09-27 15:04:10 -07:00
Aaron Culliney
286012c991
Blow up early, blow up often
...
- Expose and trigger a link error with getpagesize() on Gingerbread devices if we have built the software
incorrectly.
2015-09-27 14:30:20 -07:00
Aaron Culliney
d90b523440
process crashes in-situ on Android device
2015-09-26 15:20:54 -07:00
Aaron Culliney
88be6086a2
Refactor crash testing/reports into separate class/files
2015-09-26 15:16:30 -07:00
Aaron Culliney
ad2dbd54b0
Android architecture globals
2015-09-26 14:58:09 -07:00
Aaron Culliney
b8921b8441
Integrate Breakpad crash dumper and tools into Android build
...
- Includes Linux x86_64 binaries dump_syms and minidump_stackwalk
- Includes adb_sanitize.c tool (gcc -std=gnu11 -o adb_sanitize adb_sanitize.c) for easily pulling local minidumps
2015-09-19 13:11:27 -07:00
Aaron Culliney
ba0b0505e3
Minor nit ... name change
2015-09-18 23:04:30 -07:00
Aaron Culliney
5dadc922fd
Simplify mobile lifecycle at the expense of holding onto audio resources
...
- This does not seem to be a problem with both modern and older Gingerbread devices
2015-09-13 14:24:17 -07:00
Aaron Culliney
b2cb35c182
Lifecycle tweaks that get Android building again
2015-09-12 15:33:22 -07:00
Aaron Culliney
bc5559c1b0
Allow graphics thread to self-shutdown to avoid segfault on exit
2015-09-08 23:12:20 -07:00
Aaron Culliney
9c98745099
Remove unnecessary call to pump key handling codepath
2015-09-07 11:08:43 -07:00
Aaron Culliney
fa91a2806d
Get testing working on Android again
2015-09-06 23:43:26 -07:00
Aaron Culliney
7d4b63e12d
Refactor : move reinitialize() to timing module and make static (mostly)
2015-09-06 14:05:18 -07:00
Aaron Culliney
c3702c54b5
Remove build variants because they are confusing and incompatible with CLI ant builds which I still want to maintain
2015-09-05 14:08:21 -07:00
Aaron Culliney
ebe7f82f22
Persist settings for currently inserted disks, and provide a way to eject disks
2015-08-22 14:44:31 -07:00
Aaron Culliney
704c381ea8
Logging should automatically print function
2015-08-21 23:43:19 -07:00
Aaron Culliney
3f934ecd3f
Fix cycling between different touch devices in the GL touch menu
2015-08-21 23:33:08 -07:00
Aaron Culliney
7344cadfbd
More joystick settings including calibration mode
2015-08-02 14:29:34 -07:00
Aaron Culliney
0bc8869627
nativeOnTouch() now returns various state flags
...
- Allows playing of a key click sound if a keyboard item tapped
- Improves stovepiping the native request to show the Android main menu
2015-07-30 22:05:21 -07:00
Aaron Culliney
25b9f3d3f3
Android lifecycle cleanups
...
- Differentiate between cpu_pause() when going to menu (and app is still foregrounded, and cpu_pauseBackground()
when a system backgrounding event has occurred.
- Destroy/free audio resources owned by CPU thread when background is requested, put CPU thread into waiting upon
pthread condition to resume.
- Mobile device now always signals pthread condition to force CPU thread resume from background
2015-07-27 22:36:39 -07:00
Aaron Culliney
a0cadc83c6
Refactor timing locking behavior
...
- Do not start CPU thread until after splash screen
- Insure that only CPU thread can actually create/destroy the audio interfaces
2015-07-26 13:48:24 -07:00
Aaron Culliney
a60ffb8eb9
Beginning of Android persistent settings
2015-07-21 21:38:28 -07:00
Aaron Culliney
7ca4a2646d
Optimize video drawing and API cleanup
...
- Enforces synchronized access to video dirty bit
2015-07-12 14:13:13 -07:00
Aaron Culliney
5f4bf6b1a7
Use single buffer queue callback for OpenSLES/Android
...
- OpenSLES Callback now performs simple mix of 2 sources (speaker and mockingboard)
- Avoids multiple callbacks which was a performance penalty especially for low-end droids
2015-07-12 12:59:49 -07:00
Aaron Culliney
ada6d7a0be
Pause/resume CPU/audio together
2015-07-04 18:17:04 -07:00
Aaron Culliney
20b3e25915
Renamed to get Android build working
2015-07-04 18:14:21 -07:00
Aaron Culliney
951b4518c1
Expose device-preferred audio parameters to native
2015-06-28 12:49:26 -07:00
Aaron Culliney
1da7acbaba
Properly hook up Android shutdown paths
2015-06-06 21:18:27 -07:00
Aaron Culliney
2562c17d73
Record Java exceptions to app home directory
2015-06-06 12:55:14 -07:00
Aaron Culliney
f2abf4ce35
Fix emulator quit path on Android
2015-06-01 22:50:44 -07:00
Aaron Culliney
e6ec58a8ba
Fix Android build break
2015-05-29 21:48:39 -07:00
Aaron Culliney
9e9939a3a6
Only allow explicit main menu requests to bubble up
...
- Works around existing bugs in various gltouchwidget's logic
2015-05-23 23:17:33 -07:00
Aaron Culliney
68011fa8f2
First cut at touch menu HUD
...
- Enables choosing touch keyboard or touch joystick
- Enables increasing/decreasing speed
- Enables opening main popup menu
- Also migrates all gesture responsibility away from Java side of things
2015-05-09 19:23:52 -07:00
Aaron Culliney
c2bd14f9b5
REFACTOR : glcpuanim now manages all generic alert messages
2015-04-18 15:15:09 -07:00
Aaron Culliney
c48e72c27f
Keep native side paused on "system" onResume()
2015-04-17 21:43:02 -07:00
Aaron Culliney
ee8660e394
Prevent creating a second native CPU thread on multiple onCreate() calls
...
- This was blowing up in an assert on the native side, yay defensive coding!
2015-04-17 21:41:46 -07:00
Aaron Culliney
2bc846d1fe
Revert "Fix non-deterministic ctor load issues and use singleton for video_backend module access"
...
This reverts commit af95212a19
.
TODO : make ctor loads deterministic
2015-04-17 21:40:56 -07:00
Aaron Culliney
af95212a19
Fix non-deterministic ctor load issues and use singleton for video_backend module access
2015-04-16 21:53:12 -07:00