3822 Commits

Author SHA1 Message Date
twinaphex
dbe620db60 Cleanups 2021-03-14 02:11:36 +01:00
twinaphex
4946d75c3d Further cleanups to do with menu_dialog code 2021-03-12 11:03:57 +01:00
twinaphex
53b4fe7716 This ifdef is no longer needed, remove - also 'push'
was always true so just hardcode it for this function
2021-03-12 10:57:42 +01:00
Autechre
de67a13ab9
Merge pull request #12134 from yoshisuga/macos_support_assets_bundle_extraction
[macOS] Support bundle assets extraction for macOS; Fix default paths
2021-03-12 10:27:22 +01:00
Yoshi Sugawara
a142f3b852 Support bundle assets extraction for macOS; Fix to only extract assets once on first install; Change cores, assets, other directories to default to application support directory instead of app bundle 2021-03-11 23:12:52 -10:00
twinaphex
4d3f8c3c80 Cleanup 2021-03-12 01:56:59 +01:00
twinaphex
f7f6f3c5d5 Revert "Cleanups - don't call MENU_ENTRIES_CTL_SET_REFRESH in a loop - set it"
This reverts commit ee06ddfbc067f050c7a491984c6dc29f2cfae8e0.
2021-03-11 22:32:28 +01:00
twinaphex
ee06ddfbc0 Cleanups - don't call MENU_ENTRIES_CTL_SET_REFRESH in a loop - set it
once outside
2021-03-11 22:17:38 +01:00
twinaphex
14248f7401 (Menu) Iterate function callback was never used, remove it
- Also turn menu_driver_iterate into static function and
redesign code a bit; non-functional
2021-03-11 20:17:22 +01:00
twinaphex
4d93ac3870 Get rid of menu_setting_ctl 2021-03-11 08:38:53 +01:00
twinaphex
ba7771fd28 MENU_NAVIGATION_CTL_{INCREMENT/DECREMENT/ASCEND_ALPHABET/DESCEND_ALPHABET'
can all be removed now and inlined
2021-03-11 06:23:29 +01:00
twinaphex
6a68cefe60 Cleanups 2021-03-11 05:25:37 +01:00
twinaphex
3c7419bac7 (Menu) Can now get rid of TODO/FIXME 2021-03-11 05:17:32 +01:00
twinaphex
b9d28ea76d Cleanups 2021-03-11 05:14:07 +01:00
twinaphex
656e10c60c Replace /inline file_list_get_last calls in retroarch.c 2021-03-11 05:11:08 +01:00
twinaphex
1afd728057 Cleanups 2021-03-11 04:28:39 +01:00
twinaphex
95d3b7285d MOve functions over to retroarch.c 2021-03-11 04:13:06 +01:00
twinaphex
e5045fa2e2 Simplify menu_driver_deferred_push_content_list 2021-03-11 03:49:51 +01:00
twinaphex
839a270a97 Menu refactors:
- Get rid of menu_driver_search_list_clear
- Get rid of contentlist_switch callback - was only ever one
function callback implementation
2021-03-11 03:37:19 +01:00
twinaphex
f502cd9e16 Get rid of menu_cbs_down/menu_cbs_up 2021-03-11 03:14:31 +01:00
Autechre
9f3ea51f77
Refactors pt4 (#12126)
* Cleanups:
- menu_driver_set_id - don't pass p_rarch to function
- Ozone: call ozone_list_cache directly instead of going through
wrapper function in retroarch.c that then calls ozone_list_cache
- Some other cleanups, non-functional

* (Menu) Replace calls to menu_driver_list_cache inside retroarch.c
2021-03-11 02:58:35 +01:00
Autechre
a2ed065f25
Refactors pt3 (#12124)
* Remove video_pixel_get_alignment - move it to video
drivers that use it

* Rewrite video_driver_pixel_converter_{init/free} - get rid of
p_rarch dependency

* Replace some variables

* (Menu) Get rid of cbs_refresh - was never set to any other
function callback implementation
2021-03-11 02:03:37 +01:00
twinaphex
cb5fba6b2a * Fix libnx build
* Put menu_cbs/enum_idx in menu_cbs_init behind DEBUG_LOG
2021-03-10 18:00:51 +01:00
twinaphex
29c509162e Cleanups - menu_entries_get_last_stack - unroll when possible in
retroarch.c
2021-03-10 17:28:31 +01:00
twinaphex
a092fe273c Turn retroarch_apply_shader into static function 2021-03-10 17:05:19 +01:00
twinaphex
4516d6626b * Cleanups; non-functional changes -
- Don't pass p_rarch around to other functions if unnecessary
  - Get rid of superfluous get/set runtime shader preset functions
2021-03-10 16:57:31 +01:00
twinaphex
a2031608e7 Don't use file_list_get_at_offset - access members directly 2021-03-10 09:41:49 +01:00
twinaphex
6629c20e25 video_driver_set_viewport_config - don't pass p_rarch to it 2021-03-10 05:49:59 +01:00
twinaphex
b53b6cbf34 Simplify menu_input_set_pointer_visibility 2021-03-10 05:49:58 +01:00
twinaphex
003fc7ccc8 Get rid of menu_entries_get_at_offset 2021-03-10 05:49:58 +01:00
twinaphex
88b2359a37 Cleanups 2021-03-09 00:51:15 +01:00
twinaphex
c645a9b8bb Rewrite osk_last_update_codepoint 2021-03-08 23:28:24 +01:00
twinaphex
682a09fbdb Reimplement input_joypad_analog_axis 2021-03-08 23:02:46 +01:00
twinaphex
d98f81359f Small cleanup to input_keyboard_event 2021-03-08 22:09:36 +01:00
twinaphex
fa539c9563 runloop_key_event can be NULL - check first if non-NULL before
calling it
2021-03-08 21:11:04 +01:00
twinaphex
012b02635e Get rid of p_rarch for more function arguments 2021-03-08 19:52:08 +01:00
twinaphex
af5c311fb0 Simplify code in input_keyboard_event 2021-03-08 19:45:27 +01:00
twinaphex
7b2256941e (Input) Redesign some code for input_driver_mapper - if input_remap_binds_enable
is true, assume input_driver_mapper is allocated, to avoid having to do
the conditional checks beforehand
2021-03-08 19:23:37 +01:00
twinaphex
e135df2983 Simplify input_state_device - two case statements were identical
to an already existing one
2021-03-08 07:42:11 +01:00
twinaphex
d350ee0256 Remove unused variables 2021-03-08 00:31:36 +01:00
twinaphex
0518f6e13e Create MENU_ENTRIES_NEEDS_REFRESH 2021-03-07 20:00:45 +01:00
twinaphex
db314cf5df file_list_set_userdata / file_list_set_actiondata are trivial one-line
functions - just set it directly
2021-03-07 19:30:04 +01:00
twinaphex
0c1e63a3c1 input_overlay_poll - add fallthrough
menu_display_powerstate - cleanup
2021-03-07 19:16:54 +01:00
twinaphex
0cce2fb4e2 menu_entries_append_enum - get rid of menu_driver_ident call 2021-03-07 19:04:24 +01:00
twinaphex
e7702ae20f Simplify pause button handling in runloop_check_state 2021-03-07 18:38:33 +01:00
twinaphex
681c5f0b2b Only call rcheevos_hardcore_active once in runloop_check_state 2021-03-07 18:31:53 +01:00
twinaphex
8328043897 Don't have two consecutive rcheevos_hardcore_active boolean
conditionals - have only one instead
2021-03-07 17:59:01 +01:00
twinaphex
69bae76ec3 Buildfix for MSVC 2021-03-07 16:08:49 +01:00
twinaphex
a657465a4a Don't call netplay_get_host_room/don't call state_manager_is_reversed
inside retroarch.c
2021-03-07 07:28:13 +01:00
twinaphex
58f54a757f Move global pointer getters to the top 2021-03-07 07:16:40 +01:00