49 Commits

Author SHA1 Message Date
Themaister
6536401c1e Fix memory leak in platform_android.c.
Use static storage instead.
2014-06-13 18:00:49 +02:00
twinaphex
6cbf2f8bb0 (Android) Get_environment_settings - Set args->sram_path/args->savestate_path 2014-06-13 04:27:47 +02:00
twinaphex
94cd38f628 (Android) Sets default savedir/savestate/system directory paths now to internal sandboxed
app dir (Android 4.4.2 and so on no longer allow writing to SD card)
2014-06-13 03:52:17 +02:00
twinaphex
ddf0dcb165 (Android) Build fixes/cleanups to frontend 2014-06-13 01:10:14 +02:00
twinaphex
2f3af72501 Build fixes 2014-06-12 22:31:25 +02:00
twinaphex
c90a3f5a89 (Android) Set default out latency based on Android model 2014-06-12 18:59:55 +02:00
twinaphex
97a262dd60 Rename default_paths to g_defaults 2014-06-12 18:06:29 +02:00
twinaphex
0b076883d6 Add get_name function to frontend context 2014-06-12 16:26:33 +02:00
twinaphex
febdd2bc8a (Android) Start implementing frontend_android_get_rating 2014-06-12 14:53:20 +02:00
Themaister
e8d123fdf5 Some more robustness in platform_android. 2014-06-11 15:48:15 +02:00
Themaister
ee916bf2f1 Some Android fixes.
Dump config with RARCH_LOG instead of fprintf.
2014-06-11 15:48:15 +02:00
twinaphex
8193eb4b3d (Android) Input - Move files around 2014-06-10 22:15:23 +02:00
twinaphex
27cbd74564 (Android) Change platform_android.c to new argc/argv system 2014-06-03 19:48:44 +02:00
twinaphex
29a3a46e73 Setup main_entry and environment_get for proper building of
argc/argv for console/mobile ports with non-conformant argc/argv
input values
2014-06-03 03:35:12 +02:00
twinaphex
83174b51c4 Correct 'ret' return of process_args at least - 0 is for content
being loaded, 1 is if content is not loaded
2014-06-02 22:58:28 +02:00
twinaphex
ae6688465c (Menu) Add more info descriptions 2014-06-02 15:48:21 +02:00
twinaphex
2e430a9438 (Android) Should resume now from sleep again 2014-06-02 10:36:52 +02:00
twinaphex
537db4929c (Android) Fix ROM parameter passing from Android frontend to
RetroArch native activity
2014-06-02 10:23:48 +02:00
twinaphex
f224c21b7f (Android) platform_android.c - reduce reliance on g_extern.lifecycle_state
for pausing
2014-06-02 09:31:14 +02:00
twinaphex
d04f86814d (Android) More changes to platform_android.c 2014-06-02 09:24:06 +02:00
twinaphex
a55379c35b (Android) Change some params to default_paths in environment_get
function
(Default paths) Add default_paths.core_path
2014-06-02 08:55:47 +02:00
twinaphex
b51b0d1e62 (Android) platform_android - cleanups 2014-06-01 22:51:52 +02:00
twinaphex
908164868f Make 'argc' into int pointer so that we can modify argc inside
get_environment callback
2014-06-01 05:56:38 +02:00
twinaphex
a0567c3c77 (BB10) Start cleaning up some include header references
(Android) Uniquely name symbols - platform_android.c
2014-05-17 15:45:14 +02:00
twinaphex
fdfa41b1e0 (Frontend) Add get_rating to frontend context 2014-05-16 22:20:51 +02:00
twinaphex
b20b6525d3 (Android) PendingIntent code created bad dependencies on Java frontend and
made it impossible for external clients like Dinothawr to use RetroArch
as a library
2014-01-04 05:36:08 +01:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex
ff036066e2 Rework frontend - separate functions now for iterating per frame
and for doing teardown - Emscripten and Apple ports can make use
of this now so we don't need separate frontend implementations
2013-12-28 21:08:30 +01:00
twinaphex
6c638f91f4 (Android) Big changes -
- both MainMenuActivity and RetroActivity are single instances now
- AKEYCODE_BACK gets eaten and onBackPressed in Java is triggered
- onBackPressed right now calls an instance of MainMenuActivity
(reuses the existing activity on the stack)
- User can switch back and forth between RetroActivity and MainMenuActivity
with AKEYCODE_BACK / Back button
- When a subsequent intent is launched after RetroActivity has already been
started up once, the pending intent gets passed to the existing RetroActivity
throug onNewIntent - in C land it will look every frame if an intent is pending - if it is, it will look up certain variables through JNI to launch a new game - or whatever it is that the intent wants to do
- With this we can now switch seamlessly between Android UI and RetroArch
itself.
2013-11-24 22:02:57 +01:00
twinaphex
1d06b07a16 (Android) Add "USED" intent extra to RetroActivity 2013-11-24 17:58:23 +01:00
twinaphex
4c4c828c02 (Android) JNI - Cache getIntent and getStringExtra jmethodIDs 2013-11-24 17:24:41 +01:00
twinaphex
25faefefac (Android) get_environment_settings - make it more readable 2013-11-24 17:02:38 +01:00
twinaphex
47c8c26511 (Android) Simplify intent grabbing with JNI 2013-11-24 16:43:57 +01:00
twinaphex
37fce3c56e (Android) Move engine_handle_cmd from input_android.c to platform_android.c 2013-11-22 21:12:13 +01:00
twinaphex
d66d4f7263 (Android) have engine_handle_cmd take as argument void* 2013-11-22 17:41:45 +01:00
twinaphex
fb9eca8c69 (Android) Fix jni_get_intent_variable 2013-11-20 18:26:42 +01:00
twinaphex
8e303a3159 (Android) jni_get_intent_variable - Get rid of warnings - jstring pointer maybe uninitialized 2013-11-20 18:18:37 +01:00
twinaphex
ef2bf910c7 (Android) Rename jni_get to jni_get_intent_variable 2013-11-20 18:10:52 +01:00
twinaphex
868de7d4ef (Android) jni_params struct -remove class_obj 2013-11-20 18:09:50 +01:00
twinaphex
87421d477c Clean up JNI: (...)
* pthread_key_create is used to set a destructor for every thread
created through jni_thread_getenv
* To grab a JNIEnv pointer - go through jni_thread_getenv
* jni_thread_getenv sets pthread_setspecific for the JNIEnv pointer
to bind destructor
* Reuse activity->vm everywhere instead of creating local pointer
copies
* Don't use DetachCurrentThread outside of platform_android's (new)
jni_thread_destruct function - the destructor will do this for us
now
2013-11-20 17:33:19 +01:00
twinaphex
3f279a2d5c (Android) Get rid of JNI_OnLoad - unused and unneeded 2013-11-20 15:54:31 +01:00
twinaphex
20f679d201 (Android) Get rid of globalMyNativeActivityClass variable 2013-11-20 03:56:33 +01:00
ToadKing
894b2870c0 more android camera work. no longer crashes, but still no image 2013-11-19 14:20:29 -05:00
twinaphex
21bc30a44c (Android) Make RetroActivity invoke JNI_OnLoad - grab pointer to
RetroActivity class - try to use from camera/android.c
2013-11-19 14:30:45 +01:00
twinaphex
0c54da42e3 (Android JNI) jni_params - now also takes a submethod_name/submethod_signature 2013-11-18 00:52:26 +01:00
twinaphex
e3ebfbffa9 Rename frontend_android.h to platform_android.h 2013-11-03 17:02:40 +01:00
twinaphex
002c519707 Add credit where credit is due 2013-11-03 16:51:37 +01:00
twinaphex
74d1d11a65 (Android) Remove frontend_android.c - now uses frontend.c 2013-11-03 16:49:54 +01:00
twinaphex
5d52aaf3a3 (Android) Rewrite frontend_android 2013-11-03 16:38:56 +01:00