Commit Graph

2247 Commits

Author SHA1 Message Date
Twinaphex 2a72d90e8a
Merge pull request #9715 from realnc/no-video-reinit
Do not reinit video driver on SET_SYSTEM_AV_INFO unless needed
2019-11-18 00:41:30 +01:00
Twinaphex 9c0028c1d1
Merge pull request #9739 from Jamiras/cheevos_init_load_state
(cheevos) prevent loading state while achievements are still being fetched from server
2019-11-17 23:16:21 +01:00
Twinaphex 53d18cf95e
Merge pull request #9713 from Rinnegatamante/vitagl
Added gl1 video driver support to Vita build
2019-11-17 23:14:29 +01:00
twinaphex 63e437d58f Rename get_rotation to retroarch_get_rotation 2019-11-17 22:58:52 +01:00
Twinaphex ddd9fbf6ae
Merge pull request #9734 from Aethyrion/rotation_fixing
Rotation fixing
2019-11-17 22:53:12 +01:00
twinaphex 934697b0da Buildfix for no menu 2019-11-17 22:42:15 +01:00
twinaphex cbe68cbf88 Turn the find_handle/find_ident functions static 2019-11-17 22:31:57 +01:00
twinaphex f9bc57bcf8 Merge list_special.c into retroarch.c 2019-11-17 21:07:56 +01:00
twinaphex 8c799f978b Merge paths.c - this is one of the last file we merge - not long after this
we can start splitting up retroarch.c into several files
2019-11-17 21:00:15 +01:00
Rémi 154c2d388d Fix CI compilation issues 2019-11-17 20:18:42 +01:00
Nikos Chantziaras e8c027cbc3
Do not reinit video driver on SET_SYSTEM_AV_INFO unless needed
Video reinit causes the core to freeze momentarily, freezing audio and
flashing the window. Cores like dosbox-svn need to change fps quite often
(some DOS games even change fps mid-gameplay) and the video reinit becomes
very annoying.

Change this to not reinit the video driver unless CRT SwitchRes is enabled
or a max width/height change was requested.
2019-11-17 20:29:42 +02:00
Rémi 1c9d0dbf48 Refactoring (still trying to fix CI compilation issue) 2019-11-17 18:03:57 +01:00
Jamiras 939770929f hardcore mode is not dependent on having achievement data 2019-11-17 09:36:39 -07:00
Twinaphex b6aa9f2fd1
Revert "Refactor RetroArch input polling settings" 2019-11-17 16:45:40 +01:00
Rémi f804e0738f Fix Integer Scaling when rotating 2019-11-17 13:52:28 +01:00
Rémi a28e57e42d Fixing Integer Scaling for Custom Viewport (when rotating) 2019-11-17 13:21:50 +01:00
Rémi 7088281b52 Fixing 1:1 PAR for 270 degree rotation 2019-11-16 23:18:56 +01:00
Rémi ba183cf7a6 Refactoring (get_rotation) 2019-11-16 23:03:15 +01:00
Rémi 9df755bdb4 Fixing 1:1 PAR aspect ratio when video rotated 2019-11-16 22:13:12 +01:00
Twinaphex 0d284c42bc
Merge pull request #9714 from rz5/master
Refactor RetroArch input polling settings
2019-11-15 17:18:30 +01:00
jdgleaver 7eefec6945 (GLUI) Navigation improvements 2019-11-15 14:53:00 +00:00
rz5 82898ea194 Cast arg to rarch_set_in_put from what it is to enum rarch_poll_type.
Might fix building under clang 6.0
2019-11-15 00:47:46 +00:00
Rinnegatamante d7572399cc [VITA] Make (for now) vita2d renderer the default one. 2019-11-13 09:05:57 +01:00
rz5 2678789bd8 Refactor RetroArch input polling settings
* Refactored the way RetroArch sets the input state/poll callbacks, hopefully it's clearer now.

* The unnamed enum of poll type behaviors in core.h was moved to retroarch.h and is now named rarch_poll_type.
It represents polling behaviors implemented specifically by RetroArch.
First element starts at 1 to match the data encoding of RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE.

* Created rarch_set_input_cbs - sets different input state/poll callbacks based on a
rarch_poll_type parameter.

* Replaced the static variable core_poll_type_override in retroarch.c with a poll_type_lock flag
inside global_t's menu struct;
RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE will now call rarch_set_input_cbs and set poll_type_lock,
which blocks the user from changing behaviors from the menu.

* To follow the RETRO_ENVIRONMENT_POLL_TYPE_OVERRIDE spec, we now set poll_type_lock and call
rarch_set_input_cbs after calling unload_game.

* core_set/unset_netplay_callbacks will now set/unset poll_type_lock, preventing the
poll type from being changed by the user;

* The MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR action will now call rarch_set_input_cbs if poll_type_lock
isn't set, which means poll type is changed on-the-fly.
2019-11-13 00:11:05 +00:00
Rinnegatamante f3ca57e6f0 [VITA] Add vita video driver context. 2019-11-12 16:33:36 +01:00
twinaphex 455982da91 Silence warning 2019-11-09 18:01:13 +01:00
twinaphex 0c83d2a7cf (Libnx) RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT - return false for libnx 2019-11-09 17:29:49 +01:00
twinaphex dbd1e70410 RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT - turn this off for now
for Switch
2019-11-09 17:16:29 +01:00
Barry Rowe a247ee14cd Added fix for ai service overlay still showing when opening the menu. 2019-11-06 09:52:26 -08:00
jdgleaver 6afd684ae5 (GLUI) Halt scrolling when pointer is pressed/stationary 2019-11-05 12:23:09 +00:00
Barry Rowe d641e67876 AI Service overlay. 2019-10-28 16:48:05 -07:00
rz5 a723a833a8 (video_driver_frame) Cache frame before converting 0RGB1555 (#9629)
* (video_driver_frame) Don't convert 0RGB1555 when menu is active

Fixes the color cycling that happens when the menu is up and the core's internal pixel format is 0RGB1555.

This happened because video_driver_scaler would keep converting from 0RGB1555 to RGB565, even when the core was paused.

* Update retroarch.c

* Update retroarch.c
2019-10-25 02:15:07 +02:00
Rinnegatamante 24c798f550 Implement the driver switch enable setting. 2019-10-18 23:39:13 +02:00
Rinnegatamante 3cfde6cc45 Re-initializing menu display driver even when widgets are not supported. 2019-10-18 19:58:37 +02:00
jdgleaver 37d12c3859 (GLUI) Menu improvements (Round 2) 2019-10-18 17:56:43 +01:00
Rinnegatamante 011078f991 Fix for cached driver not restoring back to old one with vulkan override. 2019-10-16 14:31:56 +02:00
Twinaphex 4ac264b1d0
Merge pull request #9591 from Rinnegatamante/videodrivers2
Graceful switching between videodrivers #2.
2019-10-15 22:49:17 +02:00
Rinnegatamante 4d9fb951df Make code C90 compliant. 2019-10-15 19:31:27 +02:00
orbea 14308e0b98 Remove redundant conditionals.
HAVE_NETWORK_CMD should never be true when HAVE_NETWORKING is
false.
2019-10-15 08:15:37 -07:00
orbea 70fd455b13 qb: Fix --disable-networking.
Fixes https://github.com/libretro/RetroArch/issues/9580.
2019-10-15 07:37:24 -07:00
Rinnegatamante 839747f420 Added RETRO_ENVIRONMENT_GET_PREFERRED_HW_RENDER. 2019-10-15 14:53:10 +02:00
Twinaphex 92272fe01e
Merge pull request #9556 from ToKe79/lakka_wifi_ap
[Lakka] Wi-Fi Access Point in RetroArch Settings
2019-10-12 14:52:12 +02:00
Twinaphex 5340387164
Merge pull request #9584 from jdgleaver/menu-scaling
(GLUI) Menu scaling improvements
2019-10-12 14:46:36 +02:00
Twinaphex 7bed40d17b
Merge pull request #9547 from Rinnegatamante/videodrivers
Graceful switch between video drivers.
2019-10-12 14:21:33 +02:00
Rinnegatamante ff726d212c Fix for video driver config overwrite when video driver was forced by core on exit. 2019-10-11 15:15:18 +02:00
Joe Osborn ef0eba5c5f
Fix BSV recording/playback
Inputs are 16-bit numbers, but the file writing routines were called with just one byte lengths.  This change fixes BSV recording and playback for me.
2019-10-11 07:37:58 -04:00
Rinnegatamante 77d185ba8b Fix video submenu not updating when a driver swap happens.
Thanks to jdgleaver for this.
2019-10-11 13:05:32 +02:00
jdgleaver e47e055508 (GLUI) Menu scaling improvements 2019-10-10 10:01:46 +01:00
Barry Rowe 778571e3d0 Added in fix for bmp returns to ai service. Added in label passing to
ai service call.
2019-10-09 12:41:31 -07:00
natinusala e394b439a8 osd: fix fast forward indicator 2019-10-08 10:42:13 +02:00
Rob Loach c41e2218f7
Fix minus character 2019-10-07 22:16:50 -04:00
Rob Loach f7dba5d331
Fix window title missing space 2019-10-07 22:15:07 -04:00
twinaphex 0da68dacf5 Silence unused variable warning 2019-10-05 19:01:05 +02:00
twinaphex 7e9e330e99 Add another HAVE_AUDIOMIXER ifdef - use string_is_equal instead
of strcmp
2019-10-05 18:50:28 +02:00
twinaphex 221df13250 Cleanups/warning fixes - compilation fix for OSX PPC 2019-10-05 18:38:17 +02:00
Tomas Kelemen (vudiq) 7b4c4efd11 Wi-Fi Access Point in RetroArch Settings
Adds an option to start wireless access point directly from RetroArch
settings menu (Services submenu). This wireless access point can be then
used for local netplay. If not defined in a specific config file
(LAKKA_LOCALAP_PATH), the arbitrary values for SSID/PassKey of the
created access point are LakkaAccessPoint/RetroArch. The menu/option is
added only in case when compiling with HAVE_LAKKA.
2019-10-05 13:18:15 +02:00
Rinnegatamante b6e6b78843 Properly changing video driver name in settings when a core forces one. 2019-10-04 19:45:49 +02:00
Twinaphex 419eb5a6c0 Remove unused variables 2019-10-04 16:06:34 +02:00
jdgleaver 1df3e20bdd Add option to automatically rotate overlays 2019-10-04 12:15:57 +01:00
Rinnegatamante 453781af9c Graceful switch between video drivers. 2019-10-03 17:45:59 +02:00
jdgleaver ece9851afb (Menu Input) Re-work pointer 'swipe' detection 2019-10-01 13:00:59 +01:00
jdgleaver 3057c31798 (Menu Input) Add mouse/touchscreen gesture support + full gesture support for XMB 2019-09-30 16:55:41 +01:00
Ryan 'Swingflip' Hamlin 8fff917341
add platform specific to classics 2019-09-29 21:44:58 +01:00
twinaphex f4467d6595 Combine RARCH_LOG/RARCH_ERR messages 2019-09-24 08:24:19 +02:00
benoa 2bd71b55bc Wii/GC: free memory instead of used memory 2019-09-23 16:09:53 +02:00
Twinaphex 80b62fc635
Merge pull request #9501 from justinweiss/always-define-runtime-shader-preset
Ensure {set,unset}_runtime_shader_preset are always defined
2019-09-23 11:10:34 +02:00
twinaphex 3307e65ad3 Fix FPS text in threaded video mode 2019-09-23 09:22:35 +02:00
twinaphex 85d9eeb50d Should fix CXX_BUILD 2019-09-23 04:40:18 +02:00
twinaphex d045484788 Cleanups of some strings 2019-09-23 02:41:19 +02:00
twinaphex b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
Justin Weiss 621c79dd3c Ensure {set,unset}_runtime_shader_preset are always defined
These functions are used elsewhere, so they need to be defined. (Or we
could guard every place they're called instead)
2019-09-22 14:39:27 -07:00
twinaphex 882a66b49a C89_BUILD buildfix 2019-09-22 21:59:17 +02:00
twinaphex 920a20f060 (GX) Silence more warnings 2019-09-22 11:35:09 +02:00
Barry Rowe 4e155dbc8e Added in rpng string streaming to ai service. 2019-09-21 23:57:59 -07:00
twinaphex c7fd375120 Create video_driver_display_userdata_{set/get} 2019-09-22 07:35:05 +02:00
Twinaphex c2b26a3cd9 Remove unused variable 2019-09-22 04:40:01 +02:00
twinaphex ed29c6f59c Start going for consistent memory representation - instead of
'memory used' needs to become 'memory free'
2019-09-22 03:57:59 +02:00
twinaphex 111d666f85 Fix space 2019-09-22 03:30:04 +02:00
twinaphex d356f88fb5 Memory details can now be shown individually without FPS and
frame count
2019-09-22 03:21:36 +02:00
LazyBumHorse c81d363a6e fix name of retroarch log file 2019-09-21 12:12:45 +02:00
twinaphex 302e2fdc53 Move show memory details outside of the video context driver and
into retroarch.c - avoid lots of code duplication
2019-09-21 07:49:33 +02:00
twinaphex 2f0a5f48aa Corect small log string 2019-09-20 23:36:29 +02:00
twinaphex 3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex 76f4cf5cc5 Start using STRLCAT_CONST/STRLCAT_CONST_INCR/STRLCPY_CONST 2019-09-20 20:39:34 +02:00
Twinaphex 3da84396b6 Remove unused variables 2019-09-20 17:34:35 +02:00
Twinaphex bcb7e14d0f
Merge pull request #9490 from jdgleaver/horiz-mouse-wheel-fix
Improve horizontal mouse wheel (tilt) navigation
2019-09-20 16:16:50 +02:00
jdgleaver eb72a2e7d2 Improve horizontal mouse wheel (tilt) navigation 2019-09-20 14:16:21 +01:00
jdgleaver dacf9e327a (RGUI) Ensure display is always refreshed when pointer input is active 2019-09-20 11:04:31 +01:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
jdgleaver 8655038601 Overhaul menu mouse/touchscreen input handling 2019-09-19 16:53:22 +01:00
twinaphex e7eb0e2b3e Combine two RARCH_LOGs into one 2019-09-19 09:00:05 +02:00
twinaphex 33353d5cd9 Fix C89_BUILD buildfix 2019-09-19 07:07:03 +02:00
twinaphex 4eac009c27 Buffer more before we send text to be logged to stderr/stdout
and the logger interface for help/features/startup
2019-09-19 05:50:26 +02:00
twinaphex 1027762db5 Remove some trivial string_is_equal calls during parsing of buttons
in config_file
2019-09-18 18:22:31 +02:00
twinaphex ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
twinaphex 922680851a (features_cpu) noticed that the buffer wasn't actually being used,
so it can go
2019-09-18 08:37:35 +02:00
twinaphex ed77d46cc9 Cut down on some strlcat usage where not necessary 2019-09-18 04:58:52 +02:00
twinaphex 8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex b28c405377 Backport and rebase initial FPGA port that was done in 2017 (port
done for Z-Turn board) - has some outstanding issues such as
very slow framebuffer software rendering output that needs to
be overcome before this becomes usable - community help needed
2019-09-17 08:16:50 +02:00
twinaphex 7d58bb9799 Avoid more snprintf usage 2019-09-17 06:34:00 +02:00