Commit Graph

2873 Commits

Author SHA1 Message Date
Alcaro 156449ca9d Fix a leak here. 2014-10-10 23:01:17 +02:00
Twinaphex 908001a861 Merge pull request #1116 from lakkatv/xmb
(XMB) Remove the xmb_ prefix of variables contained in the xmb_handler
2014-10-10 22:42:09 +02:00
Jean-André Santoni 261f1022e3 (XMB) Remove the xmb_ prefix of variables contained in the xmb_handler 2014-10-10 22:42:56 +02:00
twinaphex a5de4f7f75 Pass index to 'list_delete' callback as well 2014-10-10 22:36:30 +02:00
Jean-André Santoni 557f83377d (XMB) Remove uneeded headers 2014-10-10 22:31:43 +02:00
twinaphex dff600fdb2 Implement userdata variable for file_list - use it in
XMB menu display driver - segfaults less frequent but could still
trigger one
2014-10-10 22:08:11 +02:00
twinaphex 24865759ff (RMenu XUI) Clean up unused str_buffer 2014-10-10 19:58:36 +02:00
twinaphex e50958a096 Small change in menu_animation.h 2014-10-10 19:54:15 +02:00
twinaphex 50a45ab073 Rename and move frontend/menu/disp/tween.c to frontend/menu/menu_animation.c 2014-10-10 19:53:13 +02:00
twinaphex ddd210d4f0 (Tween) Refactor update_tween and make it a static function 2014-10-10 19:36:17 +02:00
twinaphex 6c51889430 (RMenu) Add safety check in rmenu_init 2014-10-10 19:22:57 +02:00
twinaphex 064fbfb35c (Lakka) Uniquely name vertex and tex_coord variables 2014-10-10 19:18:25 +02:00
twinaphex f660071355 (Lakka) Every global variable moved over to lakka_handle_t now 2014-10-10 18:45:22 +02:00
twinaphex 0962b83455 Move more variables to lakka_handle_t pt. 3 2014-10-10 18:41:41 +02:00
twinaphex f021b1818f (Lakka) Move more variables over pt. 2 2014-10-10 18:20:52 +02:00
twinaphex 75002d26a7 (Lakka) Move more variables over 2014-10-10 18:10:13 +02:00
twinaphex dd55a65216 Move margin variables over to lakka_handle_t 2014-10-10 17:58:02 +02:00
twinaphex f58cd011e8 Move more variables to lakka_handle_t 2014-10-10 17:50:55 +02:00
twinaphex af18048837 (Lakka) Create lakka_free_userdata 2014-10-10 16:55:36 +02:00
twinaphex 60e5b881b9 (Lakka) Move categories over to userdata too 2014-10-10 16:53:02 +02:00
twinaphex c6a27e46ae (Lakka) Start moving global variables over to lakka_handle_t struct, and
bind it to driver.menu->userdata
2014-10-10 16:38:02 +02:00
twinaphex ca25d46742 (GLUI) Implement menu->userdata for GLUI 2014-10-10 16:23:12 +02:00
twinaphex e853eb88d7 Add userdata variable to menu_handle_t 2014-10-10 15:52:12 +02:00
twinaphex c8d9a71424 (XMB) Cleanups 2014-10-10 05:54:36 +02:00
twinaphex 7fed404a8d Cut down on some calls made to add_tween 2014-10-10 00:42:22 +02:00
twinaphex 821e37f480 Start reimplementing tween.c functions 2014-10-10 00:01:45 +02:00
Jean-André Santoni 0d9261663c (XMB) Implement context reset 2014-10-09 22:59:05 +02:00
twinaphex 5c728cef82 (XMB) Cleanups pt. 1 2014-10-09 22:45:29 +02:00
twinaphex 5f50570313 (XMB) Rename num_nodes to something more sane 2014-10-09 22:33:23 +02:00
twinaphex 4a6e59d35e Run xmb_selection_pointer_changed for all 'navigation'-related
functions right now
2014-10-09 22:30:17 +02:00
twinaphex 6995d46529 (XMB) Make some stub function implementations for navigation/list operation callbacks 2014-10-09 22:25:13 +02:00
twinaphex 07cd41c46b (XMB) Move another global variable to XMB 2014-10-09 21:57:05 +02:00
twinaphex fd7824ede5 (XMB) Don't use strcpy - always use strlcpy 2014-10-09 21:52:15 +02:00
twinaphex f0dca2cc18 (XMB) Some cleanups 2014-10-09 21:47:40 +02:00
Twinaphex 0d9a45cff0 Merge pull request #1109 from lakkatv/xmb
(XMB) Fix setttings values display
2014-10-09 19:22:08 +02:00
Jean-André Santoni ca11654e49 (XMB) Fix setttings values display 2014-10-09 19:22:42 +02:00
twinaphex 6f84dbd710 apply_deferred_settings - nit 2014-10-09 19:21:44 +02:00
Twinaphex c1ec8811f3 Merge pull request #1108 from lakkatv/xmb
(XMB) Use the populate entries callback, fixes the segfault
2014-10-09 19:06:20 +02:00
Jean-André Santoni 0dcf1949ad (XMB) Use the populate entries callback, fixes the segfault 2014-10-09 19:06:07 +02:00
Mike Robinson b67c86de28 Add support for deferred settings changes, defer audio latency 2014-10-09 11:09:36 +01:00
twinaphex 623e19edd5 (XMB) Cleanups 2014-10-09 05:35:18 +02:00
Twinaphex 91f2090297 Start adding xmb.c to Apple build 2014-10-09 05:06:32 +02:00
twinaphex 438fcccbbf (XMB) Uniquely name global vertex and tex_coord 2014-10-09 04:51:42 +02:00
twinaphex 84a35d4176 (XMB) Encapsulate everything inside xmb_handle_t struct 2014-10-09 04:34:16 +02:00
Twinaphex de130dd516 Build fix for non-HAVE_NETPLAY 2014-10-09 04:04:56 +02:00
twinaphex 86783713c8 (XMB) Build fixes 2014-10-09 02:58:05 +02:00
Twinaphex 6f951cbd8b Merge pull request #1106 from lakkatv/xmb
Xmb
2014-10-09 02:41:33 +02:00
Jean-André Santoni fed8744aef (XMB) Vertical animations 2014-10-09 02:41:08 +02:00
Twinaphex a86d5550a5 Merge pull request #1105 from aliaspider/master
(Lakka) fix segfault.
2014-10-09 02:34:05 +02:00
aliaspider e34402e98e (Lakka) fix segfault. 2014-10-09 01:32:56 +01:00
twinaphex a5d457728c (Lakka) Take out dead font driver code 2014-10-09 02:20:07 +02:00
twinaphex 3ba45d3eae Create init_lists in menu display driver 2014-10-09 01:31:11 +02:00
Jean-André Santoni c162510005 (XMB) Make functions static 2014-10-09 01:24:54 +02:00
Jean-André Santoni 7018d58731 (XMB) Initial commit 2014-10-09 01:21:22 +02:00
twinaphex 8cb7620f0c list_mainmenu and list_settings already get initialized by
menu_entries_push_list
2014-10-09 01:04:54 +02:00
twinaphex e5ab079298 Maintain two rarch_setting_t * lists in driver.menu - one
for main menu and the other for settings menu - regenerate these
when needed
2014-10-09 00:50:35 +02:00
twinaphex 1fe95bdafb Create menu_init_list and menu_free_list 2014-10-09 00:23:39 +02:00
twinaphex 80578199f6 Reduce calls to 'draw_frame' to one 2014-10-08 21:43:19 +02:00
twinaphex bb7b3a0d70 Add RARCH_CMD_OVERLAY_NEXT 2014-10-08 18:26:46 +02:00
twinaphex c35d25c76e Add RARCH_CMD_NETPLAY_FLIP_PLAYERS and RARCH_CMD_FULLSCREEN_TOGGLE 2014-10-08 16:41:08 +02:00
twinaphex 7391b7573b (Menu) Remove menu->last_time - unused 2014-10-08 04:44:43 +02:00
twinaphex 4100f40373 (Menu) Cleanup 2014-10-08 02:46:46 +02:00
twinaphex da3734e8c7 Add mask parameter to setting_data_get_list 2014-10-08 02:13:07 +02:00
twinaphex 150539decc Take out header include in frontend.c 2014-10-08 01:08:16 +02:00
twinaphex 0e2ce4d8d3 (Menu) Input Options and Shader Options don't go through settings list
yet, so put them back in menu_common_type_is
2014-10-07 23:09:21 +02:00
twinaphex 7daf5874e1 Dehardcode some code in menu_common_type_is 2014-10-07 22:52:31 +02:00
twinaphex 0e31f60ad1 Dehardcode some code in menu_entries.c 2014-10-07 22:48:57 +02:00
Twinaphex 7270f8982a (OSX) Get rid of unused variable warnings for now on OSX 2014-10-07 16:51:25 +02:00
Twinaphex 665a56b0b4 (iOS) Properly implement this - seems to fix the issue on second startup
with the simulator
2014-10-07 04:55:14 +02:00
Twinaphex 3280c0b2c9 (iOS) Build fix 2014-10-07 04:46:14 +02:00
twinaphex 3512919f9a (iOS) Start implementing frontend_apple_get_environment_settings 2014-10-07 04:43:59 +02:00
twinaphex 8dbe11613d Add need_refresh parameter to setting_data_get_list 2014-10-07 02:49:04 +02:00
twinaphex 8ac298a232 (Menu) Cleanup menu_action_setting_set somewhat 2014-10-06 23:43:17 +02:00
aliaspider a30ca8a082 (Lakka) fix texture loading when video_threaded is set to 'true' 2014-10-06 02:41:53 +01:00
aliaspider ce9cd4ac8f (Lakka) fix segfault due to uninitialized pointer in coords. 2014-10-06 01:37:04 +01:00
twinaphex e0b977215f Rename some macros for bit get/setting 2014-10-05 15:48:06 +02:00
twinaphex 3d68429aca Change menu_iterate return value to int 2014-10-04 16:20:28 +02:00
Jay McCarthy 0adcd2df76 Change interpretation of iteration return 2014-10-04 09:11:26 -04:00
twinaphex 458eff5f4d Both the 'pause' state and the 'menu' state return 1 - so that
we can signal to the Apple upper-layer function that we want
to run CFRunLoopWakeUp
2014-10-04 14:14:45 +02:00
twinaphex f86ad85fcd Use -1 for indicating we want to exit out of rarch_main_iterate 2014-10-04 13:41:57 +02:00
twinaphex e79d3d1630 Change return values for rarch_main_iterate and do_state_checks 2014-10-04 13:30:09 +02:00
Twinaphex 94f653ed2d Merge pull request #1087 from aliaspider/master
(GLUI) fixes segfault when selecting a video filter.
2014-10-04 03:18:55 +02:00
aliaspider 6ae462a61c (GLUI) fixes segfault when selecting a video filter. 2014-10-04 02:17:32 +01:00
Twinaphex 81ffa31441 (Apple) Comment out CFRunLoopWakeUp 2014-10-04 02:28:26 +02:00
twinaphex d68903f417 Add quick workaround for 100% CPU activity for iOS - NOTE -
FIXME/TODO should be acted upon since this is quite bad behavior
in its current state
2014-10-04 02:10:22 +02:00
twinaphex aa961dba9e Add 'Limit Maximum Run Speed' setting - set this to 'off' to
get the fastforward_ratio = -1 (no limit) setting again
2014-10-03 18:05:46 +02:00
twinaphex 86e0292883 (GX) Fix build 2014-10-03 17:01:56 +02:00
Twinaphex bdbd8842d3 Merge pull request #1082 from lakkatv/lakka
(Lakka) Fix subitem icon x coordinate
2014-10-03 15:38:03 +02:00
Jean-André Santoni 14b2396fd8 (Lakka) Fix subitem icon x coordinate 2014-10-03 15:31:08 +02:00
Twinaphex aa990f427f Merge pull request #1081 from lakkatv/lakka
(Lakka) Fix trigger menu animation flickering
2014-10-03 14:20:37 +02:00
Jean-André Santoni 95b22058fe (Lakka) Fix trigger menu animation flickering 2014-10-03 14:20:32 +02:00
twinaphex db47e069c2 Get rid of unused negative_return macro 2014-10-03 14:08:42 +02:00
twinaphex cf22277871 Only call RARCH_CMD_HISTORY_INIT from menu_load_content - it
already deinits and inits behind the scenes
2014-10-03 13:19:55 +02:00
twinaphex 4a623684c2 Init history file right before we attempt to push something to it
in rarch_main
2014-10-03 13:07:33 +02:00
twinaphex 154e7caf17 menu_environment_get - only set libretro core if g_extern.has_set_libretro
is false
2014-10-03 11:27:19 +02:00
twinaphex 7a6ee6a300 Get rid of MODE_MENU_HD too -g_extern.lifecycle_state can now
be used for 'injecting' button presses (i.e. libretro button presses
and/or meta button presses)
2014-10-02 21:57:01 +02:00
twinaphex e6a79f798b Refactor MODE_EXITSPAWN and MODE_EXITSPAWN_START_GAME 2014-10-02 21:39:29 +02:00
twinaphex a0e3404422 Free up g_extern.lifecycle_state - start with getting rid of
MODE_EXTLAUNCH_MULTIMAN/MODE_EXITSPAWN_MULTIMAN
2014-10-02 21:17:32 +02:00
twinaphex e581436c0a Remove unused menu_action_ok LOG 2014-10-02 17:48:40 +02:00
twinaphex b22cf18228 (GL/Shaders) Put fixed-function vertex/matrix coord code inside shader
backend files as fallback routines
2014-10-02 15:17:21 +02:00
Twinaphex 7bfde3df63 Merge pull request #1077 from lakkatv/lakka
(Lakka) Un-hardcode alpha values
2014-10-02 13:39:05 +02:00
Jean-André Santoni 30f4572fda (Lakka) Un-hardcode alpha values 2014-10-02 13:36:03 +02:00
twinaphex 6c675e6580 Create gfx/gl_common.c 2014-10-02 13:32:42 +02:00
twinaphex 6b054da299 Rename shader_common to shader_context 2014-10-02 13:21:45 +02:00
twinaphex 28ab662668 (PS3) Build fixes 2014-10-02 13:00:04 +02:00
twinaphex 780c3220a0 Build fix for targets with shaders - get rid of now
obsolete menu_common_backend.h header
2014-10-02 11:36:52 +02:00
twinaphex e07ae03047 (GX) Build fix 2014-10-02 11:34:06 +02:00
twinaphex e4fd66ed98 (menu_shader.c) Fix dependency on shaders being there 2014-10-02 11:31:31 +02:00
twinaphex 89e449cc86 Get rid of header dependencies on GL in shader_common.h 2014-10-02 11:27:11 +02:00
twinaphex ca12482af0 Move shader files to gfx/shader/ 2014-10-02 00:45:11 +02:00
Jean-André Santoni abe6aa79fe (Lakka) Fix label display with video_threaded 2014-10-01 23:52:04 +02:00
Jean-André Santoni 66cf8bd820 (Lakka) Make effects depending on FBO optional and disabled for now 2014-10-01 22:44:36 +02:00
twinaphex 2523efdf48 (Lakka) Cleanups 2014-10-01 16:27:36 +02:00
twinaphex 23e1744235 (Menu) Update rmenu display drivers 2014-10-01 15:17:34 +02:00
twinaphex d99fa70fe0 (menu_input_line_cb.c) Get rid of some unneeeded variables - silence
warnings
2014-10-01 15:16:03 +02:00
twinaphex f273b34f73 deinit_msg_queue becomes static function - clean it up in rarch_main_state_free 2014-09-30 21:29:28 +02:00
twinaphex 9daad8bdb8 Split up rarch_main_clear_state into two functions - rarch_main_state_new
and rarch_main_state_free
2014-09-30 20:46:15 +02:00
Toad King b0ade7e010 add getVendorId and getProductId to android device detection (needs testing) 2014-09-30 12:31:37 -05:00
Jean-André Santoni c85d32b8a2 (Lakka) Fix draw_icon in gles2 2014-09-30 19:01:16 +02:00
Jean-André Santoni ce3ebc1bdb (Lakka) Fix GLES2 build 2014-09-30 18:12:37 +02:00
Jean-André Santoni 094c1022fb (Lakka) Fix shader coords bug 2014-09-30 16:19:22 +02:00
Jean-André Santoni 21de27d935 (Lakka) Fix zoom out animation 2014-09-30 15:16:47 +02:00
Jean-André Santoni d926d119a3 (Lakka) Fix menu toggle 2014-09-30 14:57:19 +02:00
Jean-André Santoni d0001eb666 (Lakka) FBO 2014-09-30 14:44:13 +02:00
twinaphex 4b0bcf39cc Get rid of dead code in menu_iterate 2014-09-30 12:43:06 +02:00
Twinaphex 53f3555076 (Apple) Fix pause hotkey locking up the app 2014-09-29 21:50:27 +02:00
Vladimir Panteleev d0e970f175 Fix/reimplement input flushing
This fixes:

- menu toggle erratically not working on Android
- stray input going to libretro core when resuming content
- bound keys triggering as soon as they're bound on Android
- menu key repeat also repeating keys which should not be repeated
- issues caused by relying on timeouts for flushing

Architectural changes:

- menu_ctx_driver_t::input_postprocess now takes state and old_state
  (this allows getting rid of menu_handle_t::trigger_state)

Related changes:

- remove some no-op input_postprocess handlers (same effect as NULL)
- menu_iterate now uses the parameters passed to it, instead of
  polling menu_input
- menu_input is now merged into meta_input_keys_pressed
2014-09-29 12:58:52 +00:00
Vladimir Panteleev 85f745e587 Document some input-related variables 2014-09-29 12:56:31 +00:00
twinaphex 2e230fe9b4 (menu) draw_frame - cleanups 2014-09-29 14:41:24 +02:00
twinaphex 295e83bfc0 (Menu) Implement pause_libretro functionality 2014-09-29 14:38:37 +02:00
twinaphex ae6c8fa7fb (Settings data) Create new category 'Menu Options' 2014-09-29 14:19:40 +02:00
twinaphex c7d6eaa830 Refactor RARCH_ACTION_STATE_MENU_PREINIT into RARCH_ACTION_STATE_MENU_RUNNING 2014-09-29 13:27:28 +02:00
twinaphex 449cb9e9ed (Menu) Do away with throttle_frame in menu_iterate - let rarch_main_iterate
do this
2014-09-28 19:11:11 +02:00
twinaphex 3c8cc513ab Make it possible to compile without menu support again 2014-09-28 18:01:59 +02:00
twinaphex 822bbe4e92 Create menu_shader_manager_apply_changes and move code to menu_shader.c 2014-09-28 17:42:31 +02:00
twinaphex 3bfa247770 (frontend.c) cleanups 2014-09-28 17:35:58 +02:00
twinaphex 94de11b060 Add resampler directory setting 2014-09-27 15:55:55 +02:00
twinaphex 828e02cb49 menu_environment_get - implement has_set_save_path/has_set_state_path/
has_set_verbosity
2014-09-26 06:09:36 +02:00
twinaphex 19e5efe431 Take out unused load_menu_content_history 2014-09-26 06:04:08 +02:00
twinaphex 3b94edf14e (Menu) Grab all libretro keys in menu_input 2014-09-26 05:55:46 +02:00
Twinaphex 28c212c792 Merge pull request #1060 from lakkatv/lakka
(Lakka) Fix two submenu bugs
2014-09-25 23:32:02 +02:00
Jean-André Santoni 7fb42d5da9 (Lakka) Fix subitems fade out 2014-09-25 23:22:17 +02:00
Jean-André Santoni 61435123d0 (Lakka) Fix initial alpha and zoom for settings subitems 2014-09-25 23:17:22 +02:00
Jean-André Santoni 7c2bd73dfd (Lakka) Remember settings active submenu 2014-09-25 23:04:34 +02:00
Jean-André Santoni 6f996ade8c (Lakka) Prevent lakka_reset_submenu to reset all submenus 2014-09-25 22:58:32 +02:00
Twinaphex 470684cb43 menu_input - Remove unused variable 2014-09-25 21:21:46 +02:00
Twinaphex 7020b979da Merge pull request #1059 from lakkatv/lakka
(Lakka) Fix draw_text alpha when animating with a big LAKKA_DELAY
2014-09-25 20:50:15 +02:00
Jean-André Santoni 788a081f00 (Lakka) Fix draw_text alpha when animating with a big LAKKA_DELAY 2014-09-25 20:02:38 +02:00
twinaphex 2fe6103a61 Get rid of more unnecessary code now for menu toggle in menu_iterate 2014-09-25 18:40:01 +02:00
twinaphex d1d504df6c Implement menu toggle in a better way 2014-09-25 18:38:35 +02:00