Commit Graph

2209 Commits

Author SHA1 Message Date
Twinaphex e1260b2186 Remove unused variables 2019-08-22 23:40:14 +02:00
twinaphex 40ad1319c4 Buildfix 2019-08-22 23:31:33 +02:00
twinaphex 94308efcd8 First separator needs to be '?', then it becomes '&' 2019-08-22 23:24:44 +02:00
twinaphex 2c063cb1c9 (Translation) Add "?mode=fast" first when we set either language
and/or target language
2019-08-22 23:18:10 +02:00
twinaphex fa1f98dbac Append target_lang and source_lang to AI service URL when the
settings are set
2019-08-22 22:55:04 +02:00
LazyBumHorse a882901e39 save unmodified auto-shaders as a reference instead of a copy, see:
- implement #reference directive for auto-shaders
 - replace usual preset saving and loading functions with video_shader_read_preset() and video_shader_write_preset()
 - apply saved presets automatically for console menus
 - move auto-shader saving logic from menus into menu_shader.c menu_shader_manager_save_auto_preset()
 - refactor menu_shader_manager_save_preset() into menu_shader_manager_save_preset_internal()
2019-08-22 16:57:28 +02:00
jdgleaver 84dac7745e Make smooth ticker text scroll speed resolution independent 2019-08-22 11:49:05 +01:00
twinaphex 565d2351d1 Fixes hotkeys not properly working when gamepads are mapped to
a different logical port from their physical one
2019-08-22 02:50:17 +02:00
twinaphex 90266a2a6a Cleanups 2019-08-21 22:48:19 +02:00
twinaphex bd87e7fc17 Merge translation_service.c into retroarch.c 2019-08-21 22:40:47 +02:00
twinaphex 5481166156 (Vita) Buildfix 2019-08-21 08:02:56 +02:00
twinaphex 01bd4c22ad Avoid warning 2019-08-20 23:14:16 +02:00
twinaphex 12698f561f (Discord) Call Discord_RunCallbacks directly 2019-08-20 20:24:41 +02:00
twinaphex b059119213 Simplify input_keys_pressed 2019-08-20 20:11:57 +02:00
twinaphex 5752ea58f3 Use button masks for menu_input_keys_pressed 2019-08-20 18:59:23 +02:00
twinaphex c1f961b94e Start turning the two input functions closer together 2019-08-20 18:46:01 +02:00
twinaphex 75c7b2a29a Simplify menu_input_keys_pressed 2019-08-20 18:25:52 +02:00
twinaphex ab5e5d3a80 Add Quick Menu -> Views ->'Show Resume/Restart/Close content' 2019-08-20 18:08:44 +02:00
twinaphex 230b4b95dc Cleanups 2019-08-20 16:57:07 +02:00
twinaphex 72bde77ef0 Ability to set FPS update interval (new setting - fps_update_interval) 2019-08-20 03:05:52 +02:00
twinaphex 73663104b3 Add separate setting for Frontend Logging Level 2019-08-20 01:34:40 +02:00
Twinaphex 7c16b9e836 Get rid of unused variables 2019-08-18 20:51:43 +02:00
twinaphex b13ee8485f Start passing shader pointer to menu_shader.c functions 2019-08-18 16:59:09 +02:00
twinaphex c963b3be6a menu_display_toggle_reason was never used, get rid of it 2019-08-18 16:41:01 +02:00
LazyBumHorse 39c02664a8 fixes "Save Shader Preset As" dialog immediately popping up again on linux 2019-08-18 15:15:47 +02:00
twinaphex 52f8bef386 Buildfix for non-shader builds 2019-08-18 00:48:56 +02:00
LazyBumHorse be20b9c283 implement global shader presets 2019-08-17 22:11:17 +02:00
Twinaphex 5e2e1c82c5
Merge pull request #9315 from LazyBumHorse/set-shader
add --set-shader and overhaul shader loading logic
2019-08-17 16:32:42 +02:00
LazyBumHorse 719555bae1 Overhaul shader loading logic, add --set-shader CLI option 2019-08-17 15:20:51 +02:00
twinaphex c69c972942 (Menu) Cleanups 2019-08-16 15:17:33 +02:00
twinaphex a5f6c8f94d Cleanups 2019-08-15 17:44:02 +02:00
twinaphex bc46b1c802 Cleanups 2019-08-15 16:17:49 +02:00
twinaphex 8db00a17af (Menu widgets) Checks were wrong - should be correct now 2019-08-15 16:09:18 +02:00
twinaphex edaf8eb702 menu_widgets_volume_update_and_show always returns true 2019-08-15 15:46:16 +02:00
twinaphex 6c775ef170 These functions always return true 2019-08-15 15:42:24 +02:00
twinaphex 57df6dda82 (Menu widgets) Some architectural cleanups -
* Don't have all these manual setters
* Don't copy over the FPS text, instead make use
of video_info->fps_text
* Boolean checks always returned true anyway, so
avoid unnecessary conditional checks
2019-08-15 15:13:07 +02:00
twinaphex a500219d8c Move menu_widgets_ready to retroarch.c 2019-08-15 14:56:38 +02:00
twinaphex 6c671faed6 Start preparing for menu_widgets_ready to be moved to retroarch.c 2019-08-15 14:20:51 +02:00
twinaphex b4676e3591 Cleanups 2019-08-15 12:57:54 +02:00
twinaphex df8a024b82 Cleanups 2019-08-15 12:30:27 +02:00
twinaphex 16ceb54557 Simplifications 2019-08-15 12:13:14 +02:00
twinaphex b4375e3da0 Cleanups 2019-08-15 01:21:25 +02:00
twinaphex 80230a8181 Cleanups 2019-08-15 01:15:39 +02:00
twinaphex e54e8c4a1f Cleanups 2019-08-15 01:14:25 +02:00
twinaphex d30b2ecaca Merge menu_input_dialog.c into retroarch.c 2019-08-15 01:08:34 +02:00
Adrien Moulin a545499496 Midi: fix SysEx handling
We need to clear the event status after each message. Otherwise, after a SysEx message the first byte of the next event will incorrectly inherit its delta_time.
This causes a delay of several seconds in nearly every MT-32 games which uses a lot of long SysEx.
2019-08-14 21:34:28 +02:00
twinaphex 0092aa84d3 Fix OSK input regression 2019-08-14 17:55:29 +02:00
Twinaphex 9271f73dd2
Merge pull request #9304 from rsn8887/master
Allow auto save states also in cores that support no content
2019-08-14 17:30:55 +02:00
twinaphex 295e6f8e14 Move menu_input_dialog_keyboard_display to retroarch.c 2019-08-14 16:52:26 +02:00
rsn8887 2cc84bb99e Allow auto save states also in cores that support no content
as long as some content is loaded
2019-08-13 21:44:54 -05:00
twinaphex 890008491c Cleanups 2019-08-14 02:49:54 +02:00
twinaphex 7d10c1a9ff (menu widgets) No longer use video_driver_get_size 2019-08-13 16:47:56 +02:00
twinaphex 022b22a4cd Pass video_driver_width and video_driver_height
to menu driver render callback function so that
we don't have to call video_driver_get_size anymore
2019-08-13 12:50:24 +02:00
Twinaphex 6065f71bb2 Buildfix for C89_BUILD 2019-08-12 23:07:49 +02:00
twinaphex cf812b2e80 Revert "Prevent input_driver_poll from being called more than once per"
This reverts commit 15513c7752.
2019-08-12 21:33:47 +02:00
twinaphex 3ae447420e Cleanups 2019-08-12 19:33:50 +02:00
twinaphex 7c78e0ad1e menu_event_kb_set no longer needed 2019-08-12 18:14:47 +02:00
twinaphex a9002b444e Have to put this back 2019-08-12 18:09:56 +02:00
twinaphex f7aebf02c8 No longer need input_driver_input_state 2019-08-12 18:00:31 +02:00
twinaphex 39a6dce7da Optimization 2019-08-12 17:51:41 +02:00
twinaphex 95505ae5c5 input_keys_pressed - use bitmasks 2019-08-12 17:48:55 +02:00
twinaphex f117b22a46 Cleanups 2019-08-12 17:37:17 +02:00
twinaphex b2e57db8c2 input_overlay_key_pressed - start getting rid of it 2019-08-12 17:13:29 +02:00
twinaphex 0405cf40d0 Cleanups 2019-08-12 17:09:26 +02:00
twinaphex a4947780d9 Potential buildfix 2019-08-12 14:10:09 +02:00
twinaphex 524f202231 Turn two functions static 2019-08-12 13:04:08 +02:00
twinaphex a45c9b6eb4 Duplicate aspect ratio code that was being ran twice 2019-08-12 12:52:40 +02:00
Twinaphex 39a876a083 (Apple OSX Metal) Define HAVE_NO_BUILTIN_ZLIB 2019-08-12 12:05:52 +02:00
twinaphex f6d0de0ed5 Cleanups 2019-08-12 11:43:43 +02:00
twinaphex 54be49d88e More accurate framerate OSD 2019-08-12 11:36:49 +02:00
twinaphex 302cc16b57 Cleanups 2019-08-12 10:45:16 +02:00
twinaphex 15513c7752 Prevent input_driver_poll from being called more than once per
frame - would only regularly happen when 'pause when menu activated'
was turned off and we went to the menu, and maybe a slight few
times inside specific cores, but nothing major
2019-08-12 10:27:57 +02:00
twinaphex 3c9a3de8bc Refactor runloop_check_state 2019-08-11 20:04:41 +02:00
twinaphex ca3a80091a Cleanup runloop_iterate
NOTE/CHECK: Hopefully wiiu is unaffected by the change
in sleeping
2019-08-11 19:39:48 +02:00
twinaphex e4e86d027e Don't call runloop_get_system_info from within retroarch.c 2019-08-11 19:21:44 +02:00
twinaphex 8647bbc36f Attempt to fix WiiU build 2019-08-11 14:48:32 +02:00
twinaphex ab293b9900 Add HAVE_THREADS ifdefs 2019-08-11 12:53:21 +02:00
twinaphex 2b6613c137 Accidentally removed this 2019-08-10 20:09:33 +02:00
twinaphex a0f9f47e89 Cleanup savestate code 2019-08-10 20:06:38 +02:00
twinaphex 8ac794d4af Simplify fastforwarding code 2019-08-10 19:59:33 +02:00
twinaphex 9b4fe343f3 Fix --disable-menu 2019-08-10 17:47:09 +02:00
twinaphex baf8c71545 Cleanups 2019-08-10 14:23:00 +02:00
twinaphex 41c6345381 Cleanups 2019-08-10 14:14:20 +02:00
twinaphex e3ba467932 Refactor rarch_core_runtime_tick 2019-08-10 14:12:21 +02:00
twinaphex 23456bfc94 Create update_savestate_slot 2019-08-10 13:43:23 +02:00
twinaphex 602fd3b520 Call set_nonblocking state with false argument directly 2019-08-10 13:35:07 +02:00
twinaphex c1b3869db5 Buildfix 2019-08-10 13:21:36 +02:00
twinaphex 7505251b40 Cleanups 2019-08-10 13:16:15 +02:00
twinaphex 562ea77613 menu_event_kb_set else path is being called every frame, so at
least make it fast
2019-08-10 07:13:21 +02:00
twinaphex 1de946a1b7 Optimize fastforwarding runtime check - menu widgets function
was being called every frame unnecessarily
2019-08-10 06:25:50 +02:00
twinaphex 60932b18ad All these functions can be made static 2019-08-10 04:52:33 +02:00
twinaphex 5cac6dddfb See if this is what is behind the performance regression 2019-08-10 02:21:30 +02:00
twinaphex 7c9de7ec0f Turn rarch_core_runtime_tick into static function 2019-08-09 22:02:29 +02:00
twinaphex 7900faa419 Move menu_display_libretro to retroarch.c 2019-08-09 21:59:58 +02:00
twinaphex e51b93993b Move menu_driver_is_binding_state to retroarch.c 2019-08-09 21:41:10 +02:00
twinaphex b0f088d5fd Move menu_driver_is_alive to retroarch.c 2019-08-09 21:31:51 +02:00
twinaphex 3ff237e278 Cleanups 2019-08-09 16:26:58 +02:00
twinaphex a643f9e07e Refactor/reimplement mapper 2019-08-09 16:17:30 +02:00
twinaphex 05187f1a8c Cleanups 2019-08-09 13:28:40 +02:00
twinaphex 4d860c4d16 Move menu_driver_render to retroarch.c 2019-08-09 12:54:08 +02:00
twinaphex 881ef63b63 Cleanups 2019-08-09 11:43:35 +02:00
twinaphex 1cd281fb37 Cleanups when compiling with --disable-networking 2019-08-04 08:32:18 +02:00
twinaphex 7f59161156 Cleanup 2019-08-03 09:49:48 +02:00
twinaphex 7508cd5a73 Cleanups 2019-08-03 09:37:22 +02:00
twinaphex f111ad893b Cleanup 2019-08-03 08:45:50 +02:00
twinaphex c82693037f Cleanups 2019-08-02 21:15:54 +02:00
twinaphex e04e8948f5 Combine two RARCH_LOGs 2019-08-02 21:09:05 +02:00
Twinaphex 55202294e0
Merge pull request #9108 from p-sam/libnx-audren-driver
(Switch) Libnx audren based audio driver
2019-08-02 19:10:21 +02:00
p-sam badda24c12 (Switch) audren based audio drivers (libnx only) 2019-08-02 17:01:36 +00:00
twinaphex 70e54b2763 Get rid of unnecessary functions 2019-08-02 18:25:21 +02:00
twinaphex 9517f69a0a Cleanup core_option_manager_flush 2019-08-02 18:17:38 +02:00
twinaphex 7a2d09b4bf Cleanups/rewrites 2019-08-02 17:41:26 +02:00
jdgleaver 2fc8f5b0bf Add option to save core options per-core 2019-08-02 15:44:51 +01:00
jdgleaver 9617856c5c Remove favourites init/deinit from command event, and replace with seperate functions in retroarch.h/.c 2019-07-31 11:32:19 +01:00
jdgleaver 5220dc9084 Add independent 'favourites' playlist size setting 2019-07-30 17:13:04 +01:00
twinaphex 01d0ed5c3e config_load_remap - cleanups 2019-07-30 03:05:12 +02:00
twinaphex b5c39a6e5e Cleanup input_config_get_device_count 2019-07-29 20:10:42 +02:00
twinaphex 68a9fe0db9 Optimize GET_VARIABLE 2019-07-29 09:27:16 +02:00
twinaphex d28cadef01 Cleanups; turn more functions into static functions 2019-07-27 04:13:33 +02:00
twinaphex 65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
twinaphex d80dee882f Remove two RARCH_LOG lines 2019-07-27 00:42:08 +02:00
twinaphex b5d11db53b (XAudio2) Device index selection now works for old
pre-XAudio 2.8 codepath
2019-07-26 17:16:24 +02:00
twinaphex 453cc3dcbd (video context driver) has_Windowed can be degraded to a simple
boolean variable
2019-07-26 06:23:20 +02:00
Twinaphex 3f366ae4ab Cleanup unused variables 2019-07-25 00:49:44 +02:00
Twinaphex 52ef1af14e
Merge pull request #9137 from LazyBumHorse/realpath
replace realpath() by custom code which does not resolve symlinks
2019-07-24 22:20:38 +02:00
jdgleaver 92ae369045 When saving core option overrides, only include settings for the current core 2019-07-24 17:07:58 +01:00
twinaphex 69104602e9 Fix --disable-overlay 2019-07-24 17:58:47 +02:00
twinaphex c03f8bfcbe Cleanups 2019-07-24 17:01:26 +02:00
twinaphex d4f7a4a17a Cleanups 2019-07-24 16:51:23 +02:00
twinaphex 741a119574 Cleanups 2019-07-24 16:41:45 +02:00
twinaphex d36f6d8a1d Turn more functions static 2019-07-24 15:02:40 +02:00
OsirizX 37595a9ef1 Fix for Remote RetroPad input
This commit fixes processing of Remote RetroPad input. None of the remote inputs are being executed both in menu and in game. This is due to the way current key binds are being detected which block processing of any remote input.

It's been tested using Remote RetroPad core on Android including digital dpad and analog control input.
2019-07-24 01:15:13 -07:00
twinaphex 879debb60f (retroarch.c) Rearrange variables 2019-07-23 23:50:13 +02:00
twinaphex fb91df562c Cleanups 2019-07-22 21:25:43 +02:00
twinaphex 45d94efdf4 Cleanups 2019-07-22 21:22:52 +02:00
twinaphex 12823821ff CMD_EVENT_AUDIO_SET_NONBLOCKING_STATE - no longer necessary 2019-07-22 21:10:42 +02:00
twinaphex 5eb5930838 Cleanups 2019-07-22 20:31:53 +02:00
twinaphex 2e76deb3a0 Cleanups 2019-07-22 19:58:48 +02:00
twinaphex 36a48cd7f9 Turn rarch_environment_cb into static function 2019-07-22 19:44:42 +02:00
twinaphex 12cc7b3213 Turn function static 2019-07-22 19:10:27 +02:00
twinaphex cedf3dfe8e Cleanups 2019-07-22 19:06:31 +02:00
twinaphex 17c399eca0 Cleanups 2019-07-22 18:30:43 +02:00
twinaphex d27cdf90e2 The intent of command_event became muddied over time - it
should only be used for user-facing operations, not anything internal
to RetroArch that we don't want exposed to the outside through
bindable commands
2019-07-22 18:10:16 +02:00
twinaphex ee4bee2e7f Don't go through config_get_ptr 2019-07-22 16:54:45 +02:00
twinaphex 8438c9650a Last file to merge into retroarch.c - from here, we
can start refactoring things to split things off into tasks
that are not crucial to the main runloop
2019-07-22 16:46:33 +02:00
twinaphex 7d3fa9a84d Fix some includes 2019-07-22 15:42:35 +02:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
twinaphex 9b4c50a017 Cleanups 2019-07-21 14:47:24 +02:00
twinaphex 9bde8ca3e5 Remove unused functions 2019-07-21 14:34:33 +02:00
twinaphex b6b22a9a32 More shader refactors - make sure we can compile entirely
without shader support if HAVE_CG, HAVE_GLSL, HAVE_SLANG
and HAVE_HLSL are all not defined
2019-07-21 00:34:07 +02:00
twinaphex 1e08b2a5de Fixes keyboard processing regression 2019-07-20 20:12:41 +02:00
twinaphex 691dbb40a8 driver_update_system_av_info - refactor 2019-07-20 18:32:35 +02:00
twinaphex a0060182e3 Add more ifdefs covering HAVE_THREADS and HAVE_AUDIOMIXER 2019-07-20 16:09:39 +02:00
twinaphex 9868b4acdb Style nits 2019-07-20 15:43:12 +02:00
twinaphex 7fe0662918 Cleanups 2019-07-20 12:51:52 +02:00
twinaphex d905986a52 Rename functions - change rarch_ prefix to retroarch_ 2019-07-20 12:43:43 +02:00
twinaphex 16dde76a68 Cleanups 2019-07-20 12:34:49 +02:00
twinaphex 430fc16f61 Cleanups 2019-07-20 12:28:50 +02:00
twinaphex 65a777855f Cleanups 2019-07-20 00:34:47 +02:00
twinaphex f787e77c25 Revert "Dehardcode program name string"
This reverts commit 11291cc703.
2019-07-19 19:39:51 +02:00
twinaphex 11291cc703 Dehardcode program name string 2019-07-19 19:24:27 +02:00
twinaphex 9e39220390 Turn function static 2019-07-18 17:35:41 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
twinaphex a6d6c21e52 Rename config_file_new_null to config_file_new_alloc 2019-07-17 19:50:32 +02:00
twinaphex 0c31437c24 Create config_file_new_null 2019-07-17 18:27:53 +02:00
twinaphex 751c2a1069 Fix issue with load_content_info 2019-07-17 06:00:24 +02:00
twinaphex 5682eee276 core options manager - use config_file_from_string 2019-07-16 19:45:59 +02:00
twinaphex 0257e01bee Refactor input_autoconfigure_connect - don't return
value - set input device name upon failure implicitly
2019-07-16 15:28:22 +02:00
twinaphex de8baf7bec Cleanups 2019-07-16 14:00:46 +02:00
twinaphex 31766b7245 Buildfix for targets that only define HAVE_RUNAHEAD and not
HAVE_DYNAMIC at the same time
2019-07-16 13:50:19 +02:00
twinaphex 61c49a025e input_state - cleanup 2019-07-16 12:47:55 +02:00
twinaphex 31426b00b9 Cleanup input_state 2019-07-16 11:43:35 +02:00
twinaphex 724f623c8a Refactor input_state_device - overlay code is not implemented
for every device - like MOUSE/POINTER
2019-07-16 11:22:47 +02:00
twinaphex 32add9c3c2 Refactor this 2019-07-16 10:52:33 +02:00
twinaphex 0862700577 Split up core_input_state_poll into two - one for late polling,
one for early/normal
2019-07-16 10:51:13 +02:00
twinaphex 60f77cd903 Change core_set_poll_type 2019-07-16 10:10:49 +02:00
twinaphex e53d4987b4 Combine copy_load_info.c into retroarch.c 2019-07-16 01:56:09 +02:00
twinaphex 0a674a9a04 Move frontend.c into retroarch.c 2019-07-15 22:13:55 +02:00
twinaphex 2f7050edef Remove ui companion null 2019-07-15 21:06:48 +02:00
twinaphex 45abbc6ac5 Cleanups 2019-07-15 20:18:37 +02:00
twinaphex f5dc1b653d More CXX_BUILD buildfixes 2019-07-15 08:24:43 +02:00
twinaphex dca848df52 Revert "Revert "(VFS) Add codepath for MSVC CDROM code""
This reverts commit 651774daf1.
2019-07-15 06:49:20 +02:00
twinaphex 651774daf1 Revert "(VFS) Add codepath for MSVC CDROM code"
This reverts commit 7fb8965416.
2019-07-15 06:48:25 +02:00
twinaphex 7fb8965416 (VFS) Add codepath for MSVC CDROM code 2019-07-15 06:30:57 +02:00
twinaphex 8914e289e1 Add missing forward declarations 2019-07-14 19:00:21 +02:00
twinaphex cd244371b9 Cleanups 2019-07-14 18:56:18 +02:00
twinaphex d80b85b158 Cleanups 2019-07-14 18:52:51 +02:00
twinaphex 162695956f Cleanups 2019-07-14 16:00:54 +02:00
twinaphex fdd8dd65ce Cleanups 2019-07-14 15:48:44 +02:00
jdgleaver 0476901ca5 Add ability to manually set default core option values when using the new v1 core options interface 2019-07-12 18:20:19 +01:00
jdgleaver 4f3adb8d2c An environment callback for selectively hiding core options 2019-07-12 17:12:03 +01:00
twinaphex b7a85d392f Silence warnings 2019-07-12 16:31:16 +02:00
Twinaphex e8501203fb
Merge pull request #9092 from jdgleaver/core-option-sublabels-v2
Core Options: Add sublabels + localisation support
2019-07-12 14:23:00 +02:00
jdgleaver bb8636862f Fix CXX_BUILD 2019-07-12 09:52:34 +01:00
benoa 61dee5f015 WII: Fix compilation 2019-07-11 20:30:58 +02:00
jdgleaver 380812f83e Core Options: Add sublabels + localisation support 2019-07-11 16:10:43 +01:00
twinaphex 4eaf987ede Cleanups 2019-07-11 13:46:34 +02:00
twinaphex bddfca940e Add HAVE_GDI switch 2019-07-11 13:18:38 +02:00
twinaphex 1d43384213 Small cleanups 2019-07-11 12:32:37 +02:00