Commit Graph

10126 Commits

Author SHA1 Message Date
twinaphex
92dec44b0e menu_widgets_push_achievements always returns true 2019-08-15 15:48:08 +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
17957e0816 (Menu widgets) DO away with == NULL/!= NULL checks 2019-08-15 15:17:01 +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
d30b2ecaca Merge menu_input_dialog.c into retroarch.c 2019-08-15 01:08:34 +02:00
twinaphex
ba3e940cac (menu_driver.c) Cleanups 2019-08-14 17:19:39 +02:00
twinaphex
295e6f8e14 Move menu_input_dialog_keyboard_display to retroarch.c 2019-08-14 16:52:26 +02:00
twinaphex
02eaad8587 Reduce two functions to one 2019-08-14 14:46:17 +02:00
twinaphex
890008491c Cleanups 2019-08-14 02:49:54 +02:00
twinaphex
36ed0ca34f menu_display_get_dpi - don't use video_driver_get_size inside function 2019-08-13 17:12:55 +02:00
Twinaphex
aaac54783d
Merge pull request #9298 from jdgleaver/rgui-check-mark
(RGUI) Add marker for currently selected item in drop down lists
2019-08-13 17:09:01 +02:00
twinaphex
7d10c1a9ff (menu widgets) No longer use video_driver_get_size 2019-08-13 16:47:56 +02:00
jdgleaver
6d95075c6a (RGUI) Add marker for currently selected item in drop down lists 2019-08-13 15:29:25 +01:00
twinaphex
17d2ce5220 (Menu display D3D8/D3D9) We should be able to use
video_info->width and video_info->height instead of
having to use video_driver_get_size
2019-08-13 13:17: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
c0bfbd1ae8 Revert "(XMB) xmb_render - Extra call to video_driver_get_size"
This reverts commit a918bbdc3a.
2019-08-13 12:16:30 +02:00
twinaphex
a918bbdc3a (XMB) xmb_render - Extra call to video_driver_get_size 2019-08-13 12:15:59 +02:00
Twinaphex
becfff597b
Merge pull request #9286 from jdgleaver/hide-quick-menu
(XMB/Ozone/GLUI) Prevent display of main menu 'Quick Menu' entry when dummy core is loaded
2019-08-13 02:47:18 +02:00
Brad Parker
3432f3b852 cdrom: initialize all buffers used for drive paths, make sure to null-terminate filled paths in all cases 2019-08-12 20:42:40 -04:00
jdgleaver
e75911cee7 (XMB/Ozone/GLUI) Prevent display of main menu 'Quick Menu' entry when dummy core is loaded 2019-08-12 17:50:06 +01:00
twinaphex
7c78e0ad1e menu_event_kb_set no longer needed 2019-08-12 18:14:47 +02:00
twinaphex
6a4207fe55 (Menu setting) 'Quit Press Twice' - set default value 2019-08-12 12:12:16 +02:00
twinaphex
0bc99c8111 Buildfix 2019-08-12 09:06:58 +02:00
twinaphex
35732f9a8c get_default_shader_dir - go automatically to shaders_slang,
shaders_glsl or shader_cg if the current video driver and context
only supports one of the shader types instead of several
2019-08-11 22:50:19 +02:00
twinaphex
09675c26a9 Get rid of unused function menu_display_get_tex_coords 2019-08-11 17:49:49 +02:00
Twinaphex
cfd229d95c
Merge pull request #9269 from Ryunam/ozone-playlistname-truncation
Add toggle to enable / disable playlist name truncation in Ozone Menu driver
2019-08-11 17:35:51 +02:00
twinaphex
bbbc69886f Simplify menu_display_push_quad 2019-08-11 17:29:22 +02:00
twinaphex
24798d7841 (Menu) Get rid of unused SET_PENDING_QUIT/SET_PENDING_SHUTDOWN 2019-08-11 17:08:59 +02:00
twinaphex
d4de1eaf7d (menu_input_dialog) Cleanups 2019-08-11 17:02:42 +02:00
twinaphex
3a7ab9bd40 Pressing Start on 'Load Shader Preset' will reset
all shader passes and apply changes, effectively disabling
the shaders
2019-08-11 16:57:02 +02:00
twinaphex
8647bbc36f Attempt to fix WiiU build 2019-08-11 14:48:32 +02:00
Ryunam
559e68d5a8 Attempt at buildfix and optimization 2019-08-10 15:26:02 +02:00
twinaphex
5c30b0803d Fix some typos in comments 2019-08-10 14:24:30 +02:00
twinaphex
7505251b40 Cleanups 2019-08-10 13:16:15 +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
4600195895 Refactor some menu_driver_alive code 2019-08-09 20:45:54 +02:00
Ryunam
af42417734 Add toggle to enable / disable playlist name truncation in Ozone 2019-08-09 18:01:47 +02:00
twinaphex
759591d5a6 Cleanups 2019-08-09 17:05:50 +02:00
twinaphex
4d860c4d16 Move menu_driver_render to retroarch.c 2019-08-09 12:54:08 +02:00
twinaphex
6482a81ef5 Update menu_driver_render 2019-08-09 12:09:01 +02:00
twinaphex
82168c0925 Start preparing to move menu_driver_render 2019-08-09 11:59:46 +02:00
jdgleaver
6ead35b37c (Menu) Prevent undefined behaviour when failing to load shaders 2019-08-08 17:02:32 +01:00
twinaphex
7977570bc8 Cleanup 2019-08-08 14:32:14 +02:00
Twinaphex
05fecc4e15
Merge pull request #9263 from RobLoach/ozone-tic80-sidebar
ozone: Fix TIC-80 becoming '0' in playlist
2019-08-08 01:56:45 +02:00
Rob Loach
1a34ec14ac
ozone: Fix TIC-80 becoming '0' in playlist
Fixes #9234
2019-08-07 17:34:33 -04:00
jdgleaver
ad11e7cc63 Add history/favourites to 'Playlist Management' menu 2019-08-06 16:53:52 +01:00
jdgleaver
c341a8a019 (Ozone) Fix display of (semi-)transparent thumbnails 2019-08-04 12:11:09 +01:00
jdgleaver
2fc8f5b0bf Add option to save core options per-core 2019-08-02 15:44:51 +01:00
Twinaphex
cf71d50424 Get rid of unused variable 2019-07-31 14:30:06 +02:00
Twinaphex
0297f69e98
Merge pull request #9229 from jdgleaver/favourites-size
Add independent 'favourites' playlist size setting
2019-07-31 12:35:15 +02: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
Twinaphex
7ebee349ad
Merge pull request #9214 from tmtvl/9107-playlist-name-sanitization
9107 playlist name sanitization
2019-07-30 21:48:30 +02:00
jdgleaver
5220dc9084 Add independent 'favourites' playlist size setting 2019-07-30 17:13:04 +01:00
natinusala
863fd55951 menu_animation: don't update deleted tweens 2019-07-30 14:07:06 +02:00
Tim Van den Langenbergh
35e71ad786 Merge branch 'master' into 9107-playlist-name-sanitization 2019-07-30 12:41:19 +02:00
Brad Parker
7935cc80ee media: add function to parse cue and detect system from first data track 2019-07-30 02:37:00 -04:00
Brad Parker
a191112634 cdrom: add PC Engine CD detection 2019-07-29 15:11:28 -04:00
Brad Parker
1977bc9d4a add NEED_GOLD_LINKER Makefile option, cdrom: increment count for extra fields to avoid "no entries" if system is not detected 2019-07-29 13:38:51 -04:00
Tim Van den Langenbergh
d3a98fea79 Make wording of messages for label display mode clearer.
Use strlcpy for safety in sanitization.
Change label sanitization to use the No-Intro conventions.
Remove integer manipulation of enums for hash strings.
Add handler for start button on label display mode.
2019-07-29 19:08:15 +02:00
Tim Van den Langenbergh
771134eb52 More C89 compatibility fixes 2019-07-28 15:52:48 +02:00
Tim Van den Langenbergh
8bbfd52a5e Implement changes for Android, Xcode, C89 & CXX.
Fix bad match in removal of parens and brackets.
Use libretro string comparison features instead of a long char-wise
comparison.
2019-07-28 12:39:00 +02:00
Tim Van den Langenbergh
55f4c04ff2 Add label_display_mode to playlist.
Add label_display_mode to JSON format.
Add label_display_mode to old playlist format.
Add label_display_mode to configuration.
Add label sanitization functions to libretro common.
2019-07-28 01:22:46 +02:00
Tim Van den Langenbergh
fcf5d6bcdd Add sanitization settings to playlist.
Add sanitization functions to libretro-common.
Add sanitization functionality to menu display.
2019-07-28 01:14:40 +02:00
twinaphex
65b4c2595e Update set keyboard mapping code for input driver 2019-07-27 02:21:24 +02:00
Twinaphex
9308b7e426
Merge pull request #9190 from natinusala/master
menu_widgets: fix crash with tasks
2019-07-25 18:02:49 +02:00
jdgleaver
14767265ba Achievements menu fixes 2019-07-25 11:49:49 +01:00
natinusala
73ff5334c5 menu_widgets: fix crash with tasks 2019-07-25 10:00:44 +02:00
Brad Parker
070bc8dc0a only show Disc Information if there is a cdrom drive in the system 2019-07-24 20:27:35 -04:00
Brad Parker
61ab9249fc add "required hw api" to core info files, block content loading if core is incompatible with current graphics API/version 2019-07-23 22:44:45 -04:00
twinaphex
e6816163d1 Fix more header includes 2019-07-24 02:02:57 +02:00
twinaphex
0893d6b7b1 More header include fixes 2019-07-23 16:15:11 +02:00
twinaphex
ba79947e51 This should prevent flushing of stack issues 2019-07-22 22:40:34 +02:00
orbea
371087971d Silence clang warning.
menu/menu_displaylist.c:4974:44: warning: suggest braces around initialization of subobject [-Wmissing-braces]
         media_detect_cd_info_t cd_info = {0};
                                           ^
                                           {}
1 warning generated.
2019-07-22 07:48:19 -07:00
Twinaphex
1661f86ec0
Merge pull request #9154 from LazyBumHorse/shader_paths
simplify video_shader_read_conf_preset() calls
2019-07-22 01:21:47 +02:00
orbea
e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
LazyBumHorse
f8b92770d4 simplify video_shader_read_conf_preset() calls 2019-07-21 18:15:28 +02:00
Twinaphex
bc47daba5e
Merge pull request #9151 from Tatsuya79/master
Show/Hide disc options.
2019-07-21 14:16:12 +02:00
twinaphex
1fe213de8c (Qt/companion UI) Driver check for ui_companion_driver comes too early inside
of menu_setting.c - have to move the check to menu_displaylist.c
instead - this fixes 'User Interface' in Qt desktop menu - was
crashing
2019-07-21 14:10:51 +02:00
Tatsuya79
ab3ea0f3f3 Show/Hide disc options. 2019-07-21 12:16:16 +02:00
Twinaphex
e7ba08a432
Merge pull request #9145 from yoshisuga/playlist_clean_ios_ifdefs
iOS: Clean up #ifdef HAVE_COCOATOUCH blocks related to playlist
2019-07-21 00:35:41 +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
Yoshi Sugawara
81c8aad119 clean up #ifdef HAVE_COCOATOUCH blocks related to playlist and replace with appropriate call to playlist_resolve_path() 2019-07-20 12:16:04 -10:00
Twinaphex
388c4857d3
Merge pull request #9140 from LazyBumHorse/shader_paths
much improved handling of relative shader paths
2019-07-20 21:54:58 +02:00
LazyBumHorse
2245af23e9 much improved handling of relative shader paths
- save texture paths in relative format as well
 - always write portable relative paths on Windows using '/' instead of '\'
 - remove an ancient piece of code that could sometimes fail loading relative paths
 - fix absolute path handling between different drives for Windows
 - integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
Twinaphex
1e38504bf3
Merge pull request #9132 from yoshisuga/ios_fix_path_after_detect_core
[iOS]: more fixes for abbreviated paths when scanning files
2019-07-20 14:48:07 +02:00
twinaphex
d905986a52 Rename functions - change rarch_ prefix to retroarch_ 2019-07-20 12:43:43 +02:00
Yoshi Sugawara
88a4c3e21b Created method playlist_resolve_path() to keep the platform specific ifdef in one location to resolve the path for the playlist. Also fix setting the core path from the default core path. 2019-07-19 16:00:10 -10:00
twinaphex
eebfa11528 Show UI menubar setting 2019-07-19 20:00:31 +02:00
twinaphex
836ce3bfbb Add HAVE_COMPRESSION ifdef 2019-07-19 18:42:20 +02:00
jdgleaver
0b6ced74ac Increase menu sublabel buffer size + fix Ozone sublabel spacing 2019-07-19 16:04:16 +01:00
twinaphex
f9a2a79f5d Rename const variables to macros 2019-07-19 13:30:11 +02:00
twinaphex
433a27b76a (config.def.h) Turn more into macros 2019-07-19 13:20:13 +02:00
twinaphex
fdf28e5259 Turn more default values into macros 2019-07-19 13:14:29 +02:00
jdgleaver
7822a2d611 (XMB) Fix display of long sublabels 2019-07-18 16:58:43 +01:00
twinaphex
0cdfd4c542 Use config_file_new_from_path_to_string entirely 2019-07-18 16:15:02 +02:00
twinaphex
4ba98f2af5 Remove unused variables 2019-07-18 12:16:28 +02:00
twinaphex
c0787accc3 Use config_file_new_from_path_to_string 2019-07-18 12:13:09 +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
22c5cafe6a menu_shader_manager_init - cleanups 2019-07-16 20:29:15 +02:00
twinaphex
85fdd5fbd1 (menu_shader) use config_file_from_string 2019-07-16 19:24:42 +02:00
Twinaphex
986c1bb235
Merge pull request #9109 from yoshisuga/playlist_support_abbreviated_paths
[iOS] Playlist: support abbreviations for application/home directory
2019-07-16 16:07:49 +02:00
twinaphex
60f77cd903 Change core_set_poll_type 2019-07-16 10:10:49 +02:00
Yoshi Sugawara
dba1302360 Playlist (iOS): support abbreviating and expanding application and home directory paths so that playlist entries are valid across installs
iOS: add call to realpath() when setting directory to ensure expanding special chars in paths work; fixed braces style
2019-07-15 16:11:22 -10:00
Brad Parker
cc3b44f7ba cdrom: fix warnings, use dot for frame notation in disc info 2019-07-15 17:16:30 -04:00
Brad Parker
cfc56bbad3 media: add Dreamcast detection, add version/release date to disc info for saturn and dreamcast 2019-07-15 12:24:31 -04:00
Brad Parker
e843354b14 cdrom: use sys/ioctl header instead of stropts 2019-07-15 10:38:54 -04:00
twinaphex
f5dc1b653d More CXX_BUILD buildfixes 2019-07-15 08:24:43 +02:00
twinaphex
8660994765 CXX_BUILD buildfix 2019-07-15 08:03:33 +02:00
Brad Parker
30c3b1ea9d cdrom: add Disc Information details 2019-07-15 00:23:20 -04:00
twinaphex
ad5773a031 Propagate 'label' as path for CDROM info detail list 2019-07-15 02:41:58 +02:00
twinaphex
cfc4183961 menu_displaylist_parse_information now properly returns count 2019-07-14 16:40:12 +02:00
twinaphex
1210ab9383 Add HAVE_CDROM ifdef 2019-07-14 16:36:28 +02: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
jdgleaver
380812f83e Core Options: Add sublabels + localisation support 2019-07-11 16:10:43 +01:00
twinaphex
bddfca940e Add HAVE_GDI switch 2019-07-11 13:18:38 +02:00
twinaphex
b2bf822f13 Add HAVE_AUDIOMIXER switch 2019-07-11 11:51:06 +02:00
twinaphex
cd2b835f8c Fix for getting rid of warnings when compiling without libretrodb 2019-07-11 10:27:50 +02:00
twinaphex
5472f0bcf8 Add detail list for CDROM 2019-07-11 06:34:27 +02:00
twinaphex
cb467c8656 Add titles and sublabels 2019-07-11 06:04:42 +02:00
twinaphex
d9091a7b9e Add listing for disc info 2019-07-11 05:58:33 +02:00
twinaphex
21887aded5 Cut down on some code duplication 2019-07-11 05:53:55 +02:00
twinaphex
25e4af4a24 Start adding Disc Information 2019-07-11 05:45:49 +02:00
Brad Parker
cf12a10ba0 cdrom: add CDROM tag to log prints 2019-07-10 20:56:23 -04:00
twinaphex
84bf51acee Take out HAVE_CDROM include ut of vfs/vfs_implementation.h 2019-07-10 22:53:38 +02:00
Brad Parker
980de11974 cdrom: check if disc is inserted before trying to load or dump 2019-07-10 11:17:28 -04:00
twinaphex
09f5d2c95d Fix compilation when configuring with --disable-overlay 2019-07-10 05:39:50 +02:00
twinaphex
ec1aef2e2c (menu_displaylist) Silence two CXX_BUILD warnings 2019-07-10 03:14:49 +02:00
twinaphex
d734b98b20 Fix warning 2019-07-10 00:26:37 +02:00
Brad Parker
7016d8b51f cdrom: only show load/dump menu options if a drive is present on the system 2019-07-09 12:43:33 -04:00
Brad Parker
307cdad450 fix regression with slashes appearing in some strings 2019-07-09 11:28:27 -04:00
Brad Parker
119245e88b cdrom: add load disc callback 2019-07-09 11:17:17 -04:00
twinaphex
11ad4eb227 Change size of char tmp to 8192 2019-07-09 02:26:18 +02:00
twinaphex
606d3b465f Remove unused action_ok_push_load_disc 2019-07-09 02:22:32 +02:00
Twinaphex
77f9de47a5 (Apple) Fix some unused variable warnings 2019-07-09 02:01:37 +02:00
Brad Parker
cd98fa2745 cdrom: fix drive model string corruption 2019-07-08 16:06:35 -04:00
Brad Parker
15d97dbaf3 cdrom: add disc dump option 2019-07-08 16:06:35 -04:00
jdgleaver
1c4769d96f Fix 'Playlists' menu title 2019-07-08 15:20:48 +01:00
twinaphex
a115b6bd84 Implement deferred list for Load CD 2019-07-05 19:55:04 +02:00
jdgleaver
248432ebcf Add option to remain in menu after saving/loading states 2019-07-05 13:27:16 +01:00
Brad Parker
f0d42a125e C89 buildfix 2019-07-04 23:42:00 -04:00
twinaphex
6c2f65c585 Fix code analysis warnings 2019-07-04 21:54:51 +02:00
twinaphex
3cbb495bd2 Update 2019-07-04 18:42:38 +02:00
jdgleaver
913472ed97 RGUI: Fix strict aliasing violations + improve rendering performance 2019-07-04 14:10:24 +01:00
jdgleaver
fc4b3f4d96 RGUI: Fix ASAN misaligned address runtime error 2019-07-04 11:16:58 +01:00
twinaphex
65bff18cb0 Add callback for dump disc entries 2019-07-03 22:28:12 +02:00
Brad Parker
9a52595ce3 cdrom: add function to get list of available drives (initial linux implementation), show list in "Dump Drive" menu entry 2019-07-03 14:19:32 -04:00
jdgleaver
027324815e Quick Menu: Add 'Set Core Association' option 2019-07-03 16:33:23 +01:00
twinaphex
72eed727d0 Start implementing 'Dump Disc' as deferred list 2019-07-03 03:51:00 +02:00
twinaphex
4fdf33e5f8 (CDROM) Add Load Disc/Dump Disc 2019-07-03 01:08:20 +02:00
jdgleaver
1e17cca64d Playlist Management: Add 'Reset Core Associations' option 2019-07-02 12:00:38 +01:00
Twinaphex
143b45eca7
Merge pull request #9026 from jdgleaver/playlist-default-core
Overhaul default playlist core association
2019-07-02 12:22:30 +02:00
twinaphex
f4bf218f35 (Menu) We need to tell rarch_menu_running_finished whether we want
to exit RetroArch or not - to avoid certain crashes when trying to
access the settings pointer - which should already be freed at this
point
2019-06-30 11:23:18 +02:00
twinaphex
c1fbf1d43b (menu_animation.c) Try to prevent null pointer dereferences 2019-06-27 20:45:53 +02:00
jdgleaver
0be44e57ad Overhaul default playlist core association 2019-06-26 17:42:26 +01:00
twinaphex
0b92573fd1 Avoid some warnings 2019-06-26 14:35:25 +02:00
natinusala
8873b3b787 menu_widgets: have the progression widget always resize 2019-06-26 09:46:04 +02:00
twinaphex
3b634b64fa Merge dirs.c into paths.c 2019-06-26 07:23:32 +02:00
Twinaphex
f23497fd80
Merge pull request #9014 from LazyBumHorse/fix_d3d9
fix d3d9 not rendering xmb and temporarily disable widgets due to segfault
2019-06-24 16:07:03 +02:00
LazyBumHorse
1f69f3960a fix d3d9 not rendering xmb and temporarily disable widgets due to segfault 2019-06-24 15:42:55 +02:00
Twinaphex
d2fd4d48ae (macOS) Less warnings with static code analysis 2019-06-24 15:03:58 +02:00
Twinaphex
c8486a5081 (Cocoa/Metal) Silence bunch of warnings 2019-06-24 14:58:32 +02:00
Twinaphex
84974c7e5c Silence more warnings 2019-06-22 15:09:59 +02:00
Twinaphex
bf1951ae37 Fix plethora of warnings on OSX 2019-06-22 14:52:29 +02:00
Twinaphex
9180cc5ba2 Cleanup some warnings 2019-06-22 13:44:10 +02:00
twinaphex
bc7ba4f5d2 Move menu_input.c into retroarch.c - now all of the input code
should be inside one place - giving us the opportunity to cleanup this
mess
2019-06-21 03:40:48 +02:00
LazyBumHorse
2f96bdfc63 always filter by extensions in shader (preset) file browser 2019-06-20 13:18:55 +02:00
twinaphex
37c04932bf Revert bind/hold behavior for now 2019-06-20 11:45:51 +02:00
twinaphex
2cad59092c (menu_displaylist.c) Fix warning 2019-06-20 08:43:22 +02:00
radius
d865c5e4a6 add some copyright on files I contributed considerably just in case 2019-06-20 05:45:17 +02:00
twinaphex
48eeb15d2c Silence warnings 2019-06-20 01:16:05 +02:00
twinaphex
897a9a7c1a (MSVC 2017 UWP) Silence warnings 2019-06-19 21:20:31 +02:00
twinaphex
3a984fc2e5 (GDI) Use video_info->userdata instead of querying video_driver_get_ptr
(retroarch.c) Simplify video_driver_get_ptr
2019-06-19 05:25:26 +02:00
Twinaphex
dd315ba7bc
Merge pull request #8985 from bparker06/d3d_gpu_select
d3d10/11/12: add GPU selection
2019-06-19 00:19:51 +02:00
twinaphex
eee7430ffa Fix CXX_BUILD 2019-06-19 00:10:03 +02:00
Brad Parker
d01f04c146 d3d10/11/12: add GPU selection 2019-06-18 16:35:50 -04:00
twinaphex
de9f7e521b Make this function static 2019-06-18 22:01:11 +02:00
twinaphex
df8d7bb5aa runloop_msg_queue now local to retroarch.c - remove
functions runloop_msg_queue_lock and runloop_msg_queue_unlock,
turn them into macros instead and only use them inside retroarch.c
2019-06-18 21:33:01 +02:00
twinaphex
10b28e5d60 runloop_msg_queue_{lock|unlock} are only referenced from retroarch.c now 2019-06-18 21:24:42 +02:00
LazyBumHorse
c20c67bd3a proper shader compatibility checks
- move shader flags from the video drivers to the context drivers
 - rework config_load_shader_preset() from configuration.c into retroarch_load_shader_preset() in retroarch.c with proper compatibility check
 - implicitly call retroarch_load_shader_preset() in retroarch_get_shader_preset() once per core/content life cycle
 - use video_shader_is_supported() instead of video_driver_test_all_flags() where appropriate
 - remove GFX_CTX_FLAGS_NONE because it is meaningless
2019-06-18 13:46:41 +02:00
LazyBumHorse
692dc9f6a9 refactor shader checks affected by last commit and more:
- gl.c: refactor backend fallback into more general gl2_get_fallback_shader_type
 - d3d9-12, gl_core, gx2_gfx, gl, vulkan: more consistent shader init and `set_shader` behavior
 - configuration.c: remove check_shader_compatibility
 - shader_glsl.c, shader_gl_cg.c: use `video_shader_get_type_from_ext`
 - shader_gl_cg.c: add shader type check with fallback to stock like in shader_glsl.c
 - menu_shader.c: use `enum rarch_shader_type` instead of `unsigned`
 - video_shader_parse.c: add `video_shader_to_str` for easier logging
 - remove `type` from `struct video_shader`, which was always set to CG and wrongly used in lang_process.cpp's `slang_process()` (has no further consequences because the code is unused)
2019-06-18 13:44:19 +02:00
LazyBumHorse
42e35c825f refactor some video_shader_parse functions
- video_shader_parse_type()'s fallback only worked for NULL paths and was wrongly used, now returns RARCH_SHADER_NONE like video_shader_get_type_from_ext().
 - video_shader_get_type_from_ext() should not be checking video driver flags, this is instead done by video_shader_is_supported()
 - video_driver_get_all_flags() did not actually 'get' flags, changed to video_driver_test_all_flags()

workaround for crash due to glcore not always using at least OpenGL 3.2
2019-06-18 13:12:56 +02:00
twinaphex
3af449a445 Cleanups 2019-06-18 01:23:23 +02:00
twinaphex
f061941456 Integrate record_driver.c into retroarch.c 2019-06-17 16:23:46 +02:00
twinaphex
ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
twinaphex
127bf556c7 Merge audio_driver.c into retroarch.c 2019-06-17 12:49:21 +02:00
twinaphex
eedc6a6092 Integrate location_driver.c into retroarch.c, get rid of
location_driver_ctl
2019-06-17 11:57:46 +02:00
twinaphex
3581786708 Merge camera_driver.c with retroarch.c 2019-06-17 11:18:27 +02:00
LazyBumHorse
6514b80ff2 Revert "allow saving and properly loading 0 pass shader presets"
This reverts commit b54a360ab8.
2019-06-16 23:05:41 +02:00
twinaphex
72a35481ea (XMB) Cleanups 2019-06-15 10:07:55 +02:00
twinaphex
f60306b232 Rename read_conf_cgp/write_conf_cgp to
read_conf_preset/write_conf_preset
2019-06-15 09:00:35 +02:00
twinaphex
d422638c45 Turn more static const variables into macros 2019-06-14 13:01:22 +02:00
twinaphex
408d41b629 Turn a bunch of variables into macros 2019-06-14 11:13:02 +02:00