Commit Graph

637 Commits

Author SHA1 Message Date
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
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 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 ba79947e51 This should prevent flushing of stack issues 2019-07-22 22:40:34 +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 bddfca940e Add HAVE_GDI switch 2019-07-11 13:18:38 +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 ee3208ac39 Integrate video_driver.c into retroarch.c 2019-06-17 15:10:22 +02:00
natinusala 7c17cd9213 menu display: use video_info for scissoring rect clipping 2019-06-11 10:08:00 +02:00
BringerethOfLight 50720f0a92 menu display: don't move scissoring rect
don't just return from the function either, instead set w/h to 0
2019-05-27 20:00:54 +00:00
natinusala d50e326825 menu display: don't cancel scissoring if the rect is empty 2019-05-27 10:10:50 +02:00
twinaphex f88ec1e54e (MSVC 2003) Fixup MSVC 2003 solutions; fixup targets that don't have
HAVE_NETPLAY defined
2019-05-27 04:04:27 +02:00
twinaphex 5dc11fcd31 Reimplement 'fix ozone issues on mali400 gpu. as a bonus, fixes #5378'
by BringerethOfLight
2019-05-24 04:13:55 +02:00
twinaphex eed2ea7a99 string_is_empty check is already being done by path_is_valid/file stat
path cb function
2019-05-22 03:05:31 +02:00
jdgleaver 98889e1652 Ensure that displayed thumbnails are always refreshed correctly after selecting 'Download Thumbnails' from quick menu 2019-05-20 16:09:59 +01:00
jdgleaver 77c2ceeff4 (menu_driver) Prevent spurious navigation events when invoking MENU_NAVIGATION_CTL_CLEAR 2019-05-17 11:44:57 +01:00
jdgleaver 05c8694e1c Add 'Download Thumbnails' option to quick menu 2019-05-16 14:34:01 +01:00
twinaphex 62f3046f0f (localtime) Cleanups 2019-05-12 04:43:57 +02:00
jdgleaver 2e68a634a2 Optimise menu_display_timedate() 2019-05-01 10:58:40 +01:00
jdgleaver 55737ba127 Standardise menu powerstate access + add battery indicator to RGUI 2019-04-30 15:57:38 +01:00
jdgleaver b301e4d444 (RGUI) Performance optimisations 2019-04-05 09:16:29 +01:00
twinaphex d7d260556b Revert "(RGUI) Move menu_display_font_framebuffer to rgui.c"
This reverts commit 1a3ec1c3be.
2019-04-04 17:51:58 +02:00
twinaphex 1a3ec1c3be (RGUI) Move menu_display_font_framebuffer to rgui.c 2019-04-03 23:06:56 +02:00
twinaphex 643cd1923e CXX_BUILD / C89_BUILD buildfixes 2019-03-14 14:14:44 +01:00
Themaister 3029f96511 Add a new "glcore" driver with slang support.
This driver should sunset the old gl2 driver, but that driver will
likely live on to support really ancient and terrible GL stacks.
All the worst legacy cruft has been ripped out, and it's almost a decent
backend now.

Requirements for slang are GL 3.2+ or GLES3.
Some shaders require features which are not directly compatible with
GLES2 or legacy GL.

This driver shares a lot of concepts from the Vulkan driver.
The slang shader stack and SPIRV-Cross are used to implement the shader
spec, and the menu shaders are also shared with Vulkan.
2019-03-09 12:30:49 +01:00
orbea 8bc25472be Stop giant memory leak with --disable-discord and sixel. 2019-03-04 15:23:47 -08:00
Twinaphex 58a71c0ae8
Merge pull request #8394 from fjtrujy/feature/FIOImprovements
[PS2] Files IOS improvements
2019-03-02 16:25:50 +01:00
Francisco Javier Trujillo Mata 6d2bba220f [PS2] Improvements with the device detection and different folder to save config 2019-03-02 16:06:36 +01:00
twinaphex ea68e82b1e Add comment 2019-02-28 23:25:48 +01:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
twinaphex 158a442036 Add further HAVE_OPENGL1 support 2019-02-17 10:42:16 +01:00
jdgleaver 3192bd018a Replace UCN identifiers with UTF-8 byte arrays + provide Apple fallback 2019-02-16 12:50:47 +00:00
natinusala f481c594e8 menu_animation: use milliseconds as a unit 2019-02-14 19:24:31 +01:00
natinusala bfcc32b7be menu_display: don't draw text if alpha is 0 2019-02-14 19:11:36 +01:00
Brad Parker 44c4be1863 add option to track how long content has been running over time 2019-02-12 00:32:01 -05:00
jdgleaver 930bb5d71f (RGUI) Add menu sublabel support 2019-02-11 14:38:10 +00:00
Brad Parker d64933b30d gl1: put behind HAVE_OPENGL1, off by default for now 2019-02-08 16:04:23 -05:00
Brad Parker 74fd184097 initial GL1 video driver, only rgui is working currently 2019-02-08 12:14:55 -05:00
jdgleaver 64e6d073d3 Silence gcc snprintf() warnings in menu_driver.c 2019-02-08 11:37:53 +00:00
twinaphex 59ded50d59 (Menu) Add back get_load_content_animation_data 2019-02-08 08:24:33 +01:00
twinaphex 386657a366 (menu widgets backport) Re-commit task queue changes 2019-02-08 08:00:32 +01:00
twinaphex 7022786f34 Revert parts of menu_widgets that were causing breakage, but leave
all the hooks in so we can add them back piece by piece again
2019-02-08 07:26:43 +01:00
Twinaphex 4ce93b11ee
Merge pull request #8194 from jdgleaver/rgui-subsystem
(RGUI) Add Subsystem support
2019-02-07 14:50:31 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
jdgleaver 6b3e5fa7a0 (RGUI) Add Subsystem support (+ fix memory leak in environ_cb_get_system_info()) 2019-02-06 14:25:25 +00:00
orbea 98f6aecec2 Remove the zarch menu driver. 2019-02-02 22:15:10 -08:00
twinaphex 9aa542b1ae * Get rid of video_shader_driver_use
* Get rid of Nuklear - ozone/menu widgets is probably the replacement
for it - Zarch will go next
2019-02-03 04:37:54 +01:00
Brad Parker 90db5e7e27 Implement in-menu sound effects 2019-01-27 11:22:16 -05:00
twinaphex c98b2e2292 Buildfixes and more static code analysis warning fixes 2019-01-10 22:24:43 +01:00
Twinaphex 6384313279
Merge pull request #7914 from orbea/menu
menu: Display menu drivers in alphabetical order.
2019-01-07 10:03:27 +01:00
orbea d25b632b88 Fix segfault with null menu driver. (#7913) 2019-01-06 23:34:25 -05:00
orbea 161785f588 menu: Display menu drivers in alphabetical order. 2019-01-06 17:38:16 -08:00
twinaphex bb5cd1dfeb Change C++ comments to c 2018-12-31 21:08:25 +01:00
Francisco Javier Trujillo Mata d44ad6abd4 PS2 TODOs 2018-12-31 18:56:22 +01:00
twinaphex 0e5fbbb9e1 Silence some warnings 2018-12-29 02:12:50 +01:00
krzys-h b201d669b5 First iteration of UWP support
Enough to kind of run

Working drivers: xinput, d3d11
Still missing: input driver with keyboard support, audio driver
2018-12-28 22:09:22 +01:00
orbea 4da7092aff menu: Reset position after pushing quick menu.
Fixes:
  https://github.com/libretro/RetroArch/issues/5595
  https://github.com/libretro/RetroArch/issues/2506
2018-12-21 18:43:14 -08:00
orbea 169002ef7f Fix a gcc -Wformat= warning with C89_BUILD.
The posix spec claims "%r" is equivelent to "%I : %M : %S %p".

Source: http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html

menu/menu_driver.c:395:15: warning: ISO C90 does not support the ‘%r’ gnu_strftime format [-Wformat=]
             "%r", localtime(&time_));
               ^
2018-12-16 19:59:47 -08:00
orbea 6e95a62fdf Fix c89 build with clang. 2018-12-16 07:02:14 -08:00
Stuart Carnie c00b6e0750
fix: Fix use of freed memory in menu animations
`menu_animation_update` enumerates `menu_animation.list` to process each
`tween`. It was observed that some tweens execute a callback that
pushes more animations via `menu_animation_push`. During the push, if
the tween `list` does not have enough space, a `realloc` occurs,
potentially invalidating the existing list. The remaining pointer access
in menu_animation_update is therefore invalid. Best case is the memory
is unused and thus does not affect the program. Worst case is memory
corruption.
2018-12-15 14:55:10 -07:00
radius 45228d0307 massive subsystem cleanup & use the proper data in each instance 2018-12-10 23:01:21 -05:00
natinusala c1f3f79119 menu_display: fix glitch in draw_texture_slice 2018-11-14 15:30:09 +01:00
natinusala f493c114b5 ozone: fix visual issues, add fade in/out to messagebox 2018-11-14 14:18:14 +01:00
natinusala 73f6e51892 ozone: improve OSK display 2018-11-13 15:48:16 +01:00
natinusala 5406e19c3e ozone: add missing assets message 2018-11-09 17:00:44 +01:00
natinusala 20a8e1b40f ozone: fancy new cursor 2018-11-09 16:51:34 +01:00
natinusala b5f869bf25 ozone: implement messagebox and OSK 2018-11-08 12:00:06 +01:00
twinaphex a4d75e3dd8 C89 buildfix 2018-10-27 02:57:50 +02:00
natinusala 158ddc0b2a New menu driver : ozone (Nintendo Switch lookalike) 2018-10-26 13:24:32 +02:00
Twinaphex c29654b504
Merge pull request #7332 from grimpunch/master
Date Time setting for AM:PM as an option
2018-10-07 02:31:21 +02:00
twinaphex 7260e52a23 Make improved version of this - 873d60151f 2018-10-06 17:48:12 +02:00
Brad Parker 7366a46bc2 convert AM/PM string from local encoding to utf8 2018-10-05 19:02:50 -04:00
=Christian Murphy 017d1b710e Restore default time mode, replace non-sensical time date formats with more commonly used ones 2018-10-05 23:11:38 +01:00
=Christian Murphy 940a03f552 Linux friendly datetime locale settings, slightly less friendly datetime locale settings for Windows 2018-10-01 23:32:54 +01:00
=Christian Murphy b3cf7150d5 Date Time setting for AM:PM as an option 2018-09-30 18:01:43 +01:00
twinaphex b0dd64c9f3 Change function prototype for scissor_end 2018-09-28 22:52:00 +02:00
twinaphex 60d537fa32 Create menu_driver_list_insert 2018-09-26 14:25:28 +02:00
twinaphex 5d1fff541b Create new functions 2018-09-26 14:22:22 +02:00
twinaphex 7aea66677b Merge menu_input.c and menu_event.c 2018-09-25 16:46:15 +02:00
twinaphex 44a0c70c8a Removed unused RARCH_MENU_CTL_REFRESH 2018-09-25 16:28:36 +02:00
natinusala 7ec2011ccf menu_display_gl: added scissoring support 2018-09-20 14:48:07 +02:00
Twinaphex df5476f0c0
Merge pull request #7210 from fr500/master
WIP: Discord "ask to join"
2018-09-15 06:37:32 +02:00
twinaphex cc8b458ee3 Add menu_display_switch.c 2018-09-12 20:01:56 +02:00
radius 4d0729187f [discord] start getting ready for ask-to-join functionality, cleanup some of the mess 2018-09-12 01:45:27 -05:00
Jesse Bryan a0cf6b6b5e discord: added additional discord events and other improvements 2018-08-18 02:12:51 -05:00
Rob Loach aba179a910
Merge branch 'master' into stripes 2018-07-22 13:30:47 -04:00
twinaphex 600c2c1ca1 Simplify menu_display_font 2018-07-14 00:39:46 +02:00
Brad Parker ab27b7c85f initial SIXEL video driver 2018-07-12 16:55:08 -04:00
Stuart Carnie 411bcf8bdd feat(apple): Metal support for macOS
* includes rgui
* shader support

This is a work-in-progress and there are some bugs and visual artifacts
still to be fixed.
2018-06-20 21:33:45 -07:00
gblues 162d1fbfb5 WIIU: Disable screen-dimming while core is running
== DETAILS
In my extended testing, I found that the HID device inputs don't get factored
into resetting things like the burn-in protection and automatic power down.

The automatic power-down can't be changed in software, but the screen dimming
can!

This patch disables the screen dimming while the core is running, but turns
it back on while the menu is displayed. This way, users who want the screen
dimming functionality to kick in need to simply enter the RA menu.
2018-04-29 16:26:14 -07:00
twinaphex 91fcb49270 (Menu audio) Fix situation where a libretro core is running
in the background and menu audio is playing - we don't want
audio_driver_menu_sample called then
2018-04-29 01:05:04 +02:00
twinaphex b0ef193117 Add 'Enable menu audio' setting 2018-04-29 00:41:53 +02:00
twinaphex bac0d22ce9 Create menu_display_osk_ptr_at_pos 2018-04-23 11:58:18 +02:00
twinaphex 8bc3283bd5 Create menu_display_draw_keyboard 2018-04-23 11:42:55 +02:00
twinaphex 8e52fcff96 Add D3D10 entry 2018-04-21 03:30:34 +02:00