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 ee06ddfbc0
.
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
twinaphex
348b353907
Don't use menu_navigation_set_selection inside retroarch.c
2021-03-07 07:09:37 +01:00
twinaphex
d6e897ca2c
Get rid of menu_entries_set_checked
2021-03-07 06:52:35 +01:00
twinaphex
b65d4e483e
Avoid calls to menu_entries_get_menu_stack_ptr and
...
menu_entries_get_selection_buf
2021-03-07 06:26:51 +01:00
twinaphex
7b6a01056e
Optimizations to menu refresh/clear functions -
...
* don't use menu_entries_get_size but used optimized
getter
2021-03-07 06:07:45 +01:00
twinaphex
fa2b2708e5
Optimize MENU_ENTRIES_CTL_REFRESH
2021-03-07 06:00:35 +01:00
twinaphex
2bc23c9eaa
Found quirk in code - add TODO/FIXME note
2021-03-07 05:49:12 +01:00
twinaphex
ef650b2b48
Simplify menu_entries_elem_get_first_char - list is always non-NULL
...
so no need to check this
2021-03-07 05:25:34 +01:00
twinaphex
ae378b8b80
Simplify further
2021-03-07 04:59:21 +01:00
twinaphex
3442f57bc7
menu_shader_manager_set_preset - ret is already set to false
...
by default, no need to set it again
2021-03-07 04:57:55 +01:00
twinaphex
0b863d6bc7
Forget 'void' for function prototype - needed for C
2021-03-07 04:48:30 +01:00
twinaphex
09bf486618
More cleanups
2021-03-07 04:40:12 +01:00
twinaphex
b45eb0c76d
Cleanups
2021-03-07 04:28:33 +01:00
twinaphex
2c7d5ad944
Get rid of p_rarch being passed as argument to functions whenever
...
possible
2021-03-07 04:15:17 +01:00
twinaphex
48926799cb
Don't pass p_rarch around as argument unless we have to
2021-03-07 03:35:04 +01:00
twinaphex
5b3e3187c4
Don't pass p_rarch around to other functions if unnecessary
2021-03-07 03:12:55 +01:00
twinaphex
a80e563d1f
(cheevos) Cut down on calls to gfx_widgets_ready
2021-03-07 02:01:31 +01:00
twinaphex
d794a57159
Cleanup
2021-03-06 23:31:37 +01:00
twinaphex
7be3d47b52
Cleanup menu_input_post_iterate
2021-03-06 23:11:00 +01:00
twinaphex
a35cecac96
input_state_device - more refactors - prevent duplicate code
...
for finding base analog
2021-03-06 19:38:21 +01:00
twinaphex
7982613d31
Further optimizations to input_state_device - when input_remote is
...
false, res is still set to 0, so change conditionals
2021-03-06 19:21:41 +01:00
twinaphex
a723e563f0
Further optimize input_state_device - move remote_input boolean
...
variable and refactor the logic
2021-03-06 19:12:40 +01:00
twinaphex
7c69911065
Further micro optimizations to input_state_device - get rid
...
of res_overlay variable
2021-03-06 18:59:30 +01:00
twinaphex
490d67ab83
Refactor tons of stateful code in input_state_device - this should
...
all be streamlined and further optimized
2021-03-06 18:41:45 +01:00
twinaphex
fc65a939b7
Refactor some of the input_state_device code - some very messy code in
...
here
2021-03-06 18:14:06 +01:00
twinaphex
f50906787f
Small optimization to turbo button handling
2021-03-06 17:57:04 +01:00
twinaphex
e6cb7592a6
Further refinement to code that uses input_joypad_analog_button - value
...
is not subject to change unless the bind is valid, so move conditional
2021-03-06 17:48:58 +01:00
twinaphex
00a5c9502e
Check if bind is valid before calling input_joypad_analog_button
2021-03-06 17:38:25 +01:00
twinaphex
5020c6a4d6
input_key_pressed - comment function and redesign it
2021-03-06 17:30:14 +01:00
twinaphex
5b741acbf3
Stylistic cleanups and code refactors to some functions in retroarch.c
2021-03-06 17:21:51 +01:00
Jamiras
5783a2907d
add READ/WRITE_CORE_MEMORY network commands
2021-03-06 08:05:48 -07:00
jdgleaver
3c909a3059
Ensure RARCH_CTL_CORE_OPTIONS_LIST_GET returns false if no core options are available
2021-02-26 09:57:50 +00:00
jdgleaver
20a187ef9c
Add option to reset all core options for current core/content
2021-02-25 16:59:05 +00:00
jdgleaver
110e318b71
Add support for saving per-directory core options and deleting core option overrides
2021-02-25 10:54:22 +00:00
crystalct
1687d4a90b
Step#1 to add per-folder core options ( #11843 )
2021-02-23 18:59:11 +01:00
Tony
b8f84b8fa1
Restrict menu acceleration to navigation buttons ( #12069 )
2021-02-23 18:58:58 +01:00
twinaphex
80e90e532a
Refactor away strcpy_alloc_force
2021-02-22 06:25:25 +01:00
twinaphex
f54679417c
Simplifications
2021-02-22 04:46:11 +01:00
sonninnos
f03ad6ea7c
Tweak menu scroll initial hold delays
2021-02-21 04:24:38 +02:00
twinaphex
d1280b4196
Revert "retroarch_load_shader_preset_internal - cleanups"
...
This reverts commit b51ee5fafd
.
2021-02-21 01:06:41 +01:00
twinaphex
069470aff6
Cleanups
2021-02-21 00:04:13 +01:00
twinaphex
8350a2e050
Cleanup handle_discord_join_request
2021-02-20 23:49:38 +01:00
twinaphex
b51ee5fafd
retroarch_load_shader_preset_internal - cleanups
2021-02-20 21:39:07 +01:00
twinaphex
de3a85f18c
Cuts down on two path_is_directory calls
2021-02-20 17:45:42 +01:00
twinaphex
4d8db1a091
Small cleanups
2021-02-20 10:05:41 +01:00
twinaphex
ffaa7fcd40
Small cleanups/refactors
2021-02-20 09:34:45 +01:00
twinaphex
a73de886fc
Cleanups - should be no functional changes
2021-02-20 09:02:32 +01:00
Autechre
515b2035ef
Merge pull request #12048 from sonninnos/override-path
...
Fix empty override paths when launching without content
2021-02-19 01:29:47 +01:00
sonninnos
c5abb09182
Fix empty override paths when launching without content
2021-02-18 22:00:34 +02:00
sonninnos
f333cd0df8
Logging level adjustments
2021-02-18 19:28:08 +02:00
sonninnos
6c3c2bea5f
Logging cleanups
2021-02-18 18:35:31 +02:00
jdgleaver
4b70fbcd86
input_keyboard_event(): Add NULL check (prevents potential segfault when input remaps are disabled)
2021-02-18 11:01:27 +00:00
twinaphex
e8cd332b78
Refactor away driver_ctl_find_index
2021-02-17 06:54:37 +01:00
Autechre
dea73a5595
Merge pull request #12011 from sonninnos/video-resolution
...
Screen Resolution option fixes
2021-02-16 22:15:55 +01:00
sonninnos
371453623b
Screen Resolution option fixes
2021-02-16 22:59:24 +02:00
twinaphex
219f7ac689
Simplify command_event_init_controllers:
...
- Take variables out of loop that are not changing per iteration
- Early return in function if info is NULL
- Rearrange some code so it's better readable
Should have no functional changes
2021-02-16 20:29:10 +01:00
David Guillen Fandos
9313b10467
Memalign audio buffers to 64 bytes
...
This is the most common cache line size, helps with performance.
Also fixes issues with platforms like PSP that wrongly assume that
malloc returns aligned buffers (to 16bytes). This recently broke the PSP
builds.
2021-02-10 21:35:04 +01:00
jdgleaver
d81bdcddd0
When remembering last selected shader preset/shader pass directories, also remember selected files
2021-02-09 13:14:00 +00:00
Autechre
f661cc3fb5
Merge pull request #11572 from ImJezze/master
...
Option to open the file browser in the last used directory
2021-02-08 12:29:31 +01:00
Tatsuya79
d97e0b3cee
mouse visibility fixes
2021-02-07 16:15:09 +01:00
ImJezze
270c41b35a
Implement toggle to open the start directory at the last used location
2021-02-07 11:54:17 +01:00
jdgleaver
864c2913d8
'On-Screen Notifications' menu clean-ups
2021-02-05 16:55:09 +00:00
twinaphex
4df6d287e3
(Clang) Silence 'n' is never used warnings
2021-02-03 11:48:33 +01:00
twinaphex
542162c17b
Silence some warnings
2021-02-03 10:39:29 +01:00
twinaphex
d6c027be31
(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings(Mac) Silence some warnings
2021-02-01 09:38:01 +01:00
sonninnos
d78f321d33
Prevent duplicate key events with hotkeys + keyboard device type
2021-01-30 11:41:44 +02:00
jdgleaver
b9691597d1
Add 'L2 + R2' menu toggle gamepad combo ( #11935 )
2021-01-24 16:33:13 +01:00
Jamiras
015576b2ba
improve error handling for achievement unlocks ( #11916 )
2021-01-21 04:07:48 +01:00
twinaphex
284634dd1e
Silence more implicit conversion warnings
2021-01-16 21:28:54 +01:00
twinaphex
41a8661bdf
Silence more implicit conversions
2021-01-16 21:03:57 +01:00
twinaphex
f4dc486a77
Silence more implicit conversion warnings
2021-01-16 20:55:17 +01:00
jdgleaver
b1ee5a2421
(X11) Fix mouse input when mouse is grabbed
2021-01-16 13:57:25 +00:00
jdgleaver
1c591be8f1
Add option to automatically enable 'game focus' mode when running/resuming content
2021-01-13 15:00:36 +00:00
Ryunam
c341aabdb4
Add option to show/hide Refresh Rate notification
2021-01-08 17:32:33 +01:00
Autechre
d935b392d9
Merge pull request #11839 from IAmBoring/boring1
...
Core run init failure forces return to menu
2021-01-07 09:21:33 +01:00
IAmBoring
a11f1bd74f
Add Visual Studio 2019 version numbers
2021-01-07 04:23:58 +00:00
IAmBoring
510bed6655
Core run init failure forces return to menu
...
Gracefully loads dummy core instead of running lots of unexpected bad behavior.
2021-01-07 03:38:27 +00:00
IAmBoring
5d2c4e6868
Threaded audio - prevent callbacks when paused
2021-01-05 16:07:35 +00:00
Autechre
9797ba9f27
Merge pull request #11743 from HyperspaceMadness/Shaders_Fix_Simple_Preset_Relative_Texture_Paths
...
Shaders Load Refactor and Fix Referenced Texture Loading
2020-12-31 16:13:20 +01:00
Autechre
1681872763
Merge pull request #11772 from fpscan/facebook-gaming
...
Facebook Gaming stream option
2020-12-28 21:04:09 +01:00
Ömercan Kömür
9fceafdcc0
fb-fix
2020-12-28 16:20:40 +03:00
twinaphex
d5e96eed03
Cleanups
2020-12-28 07:33:42 +01:00
HyperspaceMadness
0c526b6498
Shaders Load Refactor and Fix Referenced Texture Loading
...
Partial update to work with shaders directly
More Edits
More changes
more shader fixes
More Fixes Compiling, reference load still wrong
Added Feedback & things are working
Logging Fixes
Log Fix
More Fixes
Added Feedback Logging
Fixes for file pathing in Linux
Fix GLCore and Crash in QT Saving
Code Cleanup
Removed Unused Function filepath.c
Code Cleanup
2020-12-26 21:09:27 -05:00
sonninnos
73feffc4d1
Keyboard device mapper rework
2020-12-26 04:44:54 +02:00
Autechre
1560641235
Revert "Runahead instance windows fix"
2020-12-24 16:41:23 +01:00
Michaël Palomas
8a76fba78b
Removed trailing backslash in Windows Temp path to fix runahead with second instance
2020-12-24 11:57:41 +01:00
twinaphex
4072841c17
Silence warning 'unused function'
2020-12-23 12:56:04 +01:00
Ömercan Kömür
6256b8ca2b
first
2020-12-19 15:14:14 +03:00
sonninnos
c18c4680b3
Keyboard remapping fix pt2
2020-12-17 00:39:57 +02:00
twinaphex
0e1b980803
Move rarch_timer functions to retroarch_data.h and turn them into
...
macros
2020-12-13 22:37:42 +01:00
twinaphex
2e266e1577
Cleanups
2020-12-13 22:16:44 +01:00
Autechre
4c98be1aa8
Merge pull request #11677 from jdgleaver/rgui-cjk
...
(RGUI) Add support for CJK fonts
2020-12-10 23:47:24 +01:00
jdgleaver
0f0ccbadc0
(RGUI) Add support for CJK fonts
2020-12-10 15:17:26 +00:00
twinaphex
b6fd220c79
Cleanups
2020-12-09 22:23:07 +01:00
twinaphex
7ce76679de
Silence warnings for builds that don't have shader support
2020-12-09 22:11:06 +01:00
twinaphex
c2a73a6921
remove unused variables
2020-12-09 22:06:02 +01:00
David Guillen Fandos
ed7b3aa415
Add a proper WiFi menu, with Enable/Disable & Disconnect options
...
This also allows WiFi passwords to be remembered. The underlying
tool (connman) allows to store passswords (that's why it auto connects
whenever you boot a Lakka device), so we expose this so that the user
does not have to re-input the pass when connecting to a saved wifi.
Option to forget a password to come in a future PR, for now a password
is automatically forgotten if the Wifi connect operation fails (we assume
it fails due to password).
Changes the WiFi API to enable these features of course!
2020-12-09 20:20:48 +01:00
David Guillen Fandos
091f6e6354
Improving Wifi API and connman implementation
...
This sets the ground for more PRs to come. Clean up how scanning and listing
SSID works, and adds attributes to the newtworks.
Frontend will be able to know which networks are "remembered" and thus
require no password to re-connect.
For now scans are performed every 2 minutes or on demand if no networks found
(either for real or in the "cache").
2020-12-04 02:18:03 +01:00
Jamiras
76074a76fe
fix discord rich presence
2020-12-03 09:42:40 -07:00
David Guillen Fandos
a442696b71
First attempt at adding proper brightness
...
Supports Switch and OGA
2020-11-26 19:22:05 +01:00
Autechre
1cbc26ac9e
Merge pull request #11614 from HyperspaceMadness/Shader_Multi-Level_Referenced_Presets
...
Shader_Multi-Level_Referenced_Presets
2020-11-25 15:47:31 +01:00
jdgleaver
8d8ccf45db
Prevent 'Rewind Frames' from being set to '1' incorrectly on load content
2020-11-23 14:01:18 +00:00