Commit Graph

4006 Commits

Author SHA1 Message Date
Bernhard Schelling 98194ce135
Allow the 8 analog stick directions to be used as keys for core keyboard mappings (#12506) 2021-06-10 17:00:33 +02:00
jdgleaver adfabcb742
Fix '--disable-crtswitchres' configure option (#12500) 2021-06-07 17:39:18 +02:00
Ben 4b2f27eff8 Ver 0.9.2 SR2 (Switchres API) Implimantation
Fixed SR close match refresh bug.
Added menu high resolution option.
Fixed desktop restore bug cuusing endless resolution change requests.
Fixed file conflicts
Added destop restore resolution back in for manu only.
Pulled Switchres fixes.
Added better PI rsolution support.

Ver 0.7 SR2 (Switchres API) Implimantation

Removed HH experimetal check. This is better done via teh switchres.ini at present.
Fixed refresh rate bug. Now new resolution and refesh is added correctly.
Removed SR deinit from menu restore. Meanu now stays at last content resolution.

Ver 0.6.2 SR2 (Switchres API) Implimantation

Fixed super resolution bug casuing abnormal video size and aspect ratio
Fixed logging issue casuing seg falts on RA exit

Ver 0.6 SR2 (Switchres API) Implimantation

Ver 0.2 SR2 (Switchres API) Implimantation

Added forced super resolutions.
Added Multi-monitor/monitor selection support.
Added desktop resolution restore when switching back to menu only.
Added new menu items for 31KHz standard and 120hz monitor profiles.
Added new menu item INI. load monitor profile from switchrss.ini.
Fixed winraw driver. Coordinates new refreshed after a resolution change.
Fixed Menu aspect ratio in super resolutions.
Removed static glabals. These have been added to videocrt_switch struct.

Ver 0.1 SR2 (Switchres API) Implimantation

Removed old CRTSwitchRes method. Added new SR2 API implimantaion.
Resolution swithcing is now done by switchres libs. Both Linux and Windows
working with native and super resolutions. Working multi-monitor support
with monitor index selection. Working 31KHz support with standard and 120Hxz
modes. The monitor index selection is still done via the RA UI. Only choose
native and 15KHz form the CRT options in the RA UI as all options are now set
in the switchres.ini. All other CRT optoins in the RA UI currently do nothing.

Added SR wrapper to fix compile issues. Added back RPi functionality

Fixed windows resize/scaling issues on resolution change

Thanks @Calamity no more need for crt_switch_driver_refresh()

Fix broken case after prevous commit

Monitor preset options 15/31KHz now active. Added new meu option.

Moitor persets can now be choosen fom the RA UI. 15KHz and 31KHz will set
arcade_15 and aracde_31 respectivly. New option INI, if this is chosen your
monitor preset will be selected from your switchres.ini file.

Added 3KHhz, 120Hz. for old RA users. Renamed 31KHz to 31 KHz,  Standard

Fixed winraw input coordinates after switching resolution.

Code cleanup

Fixed menu aspect ratio issue

Added menu resolution restore after closing content

Fixed aspect ratio after menu resolution restore.

code clean up

Fxed menu Resulition Restore Aspect Ratio. When SR uses non integer scalled resolution.

super width bug with restoring menu resolution fix

added super resolution check after setting desktop resolutoion variables

when menu active only sr_deinit() used to restore desktop mode.

Fixed menu sr_deinit bug. now setting sr_active false

Removed static globals, added them to video_switch struct

Fixex compile bug due to comment //

Fixed compile issues doe to c++ comments in teh switchres_wrapper.h

Temporarily removed SR2 logging to fix compile isses for c90

added logging back in. Removed support for winnt and osx

Added define for C89. Disabled SR if defined C89

Removed all RA compile fixes fro C89 C90 etc. Swithing now working again.

Put Switchres behind HAVE_SR2. HAVE_SR2=no by default. --enable-sr2

Ver 0.5 SR2 Implimentation.

Ver 0.4 SR2 Implimantation.

Bake SR inside RA

Removed temporary log files

Disable switchres when C89/C99 builds.

Removed C89 and C90 checks for SR

Fixed switchres_wrapper.h location

Ver 0.3 SR2 Implimenation

Dissable logging for C89 __STDC__

Fix For RPi

fixed missing EOL

fixed RPi function definition

added vidrocrt_switch stuct to RPI funcion

fixed xoffset for RPi

Removed old RPi function call

SR disabled for videocore until VC4 switching ported

Reverted back to state 5c8a56c Bake SR inside RA

Use native win32 api for threads.

Fix static lib linking
LIBERROR would be defined twice otherwise + improper function names prefixed by __imp_

Added lidstc++ to makefile.common for switchres

Fixed RPi switching. Disabled Switchres for videocore unill it is ported.

removed RAA.log. Should not exist

Added check for when SR fails to set mode with an aspect ratio fix.

added video driver re init for RPi

GB, GBA and GBC core check, adjusted reseolutions and scale. Please turn on integer scalling in the RA UI

Added logas back in. Checking STDC verstion >= C11

Fixed c89 for loop declaration.

Code clean up. Added new functions

Fix resolution switching bug introduces with HH code clean up.

Fixed menu restore bug on closw content after code clean up

Moved SR logging to relevant RA logs

Update makefile. Checks for X11 and xrandr

fixed makefile

Use native win32 api for threads.

Fix static lib linking
LIBERROR would be defined twice otherwise + improper function names prefixed by __imp_

Update switchres_wrapper.* header comments

Update year copyright

DRMKMS: build only if libdrm has the required version

XRANDR: build only if xrandr is available

Simplified maklefile

Fixed RPI compile error with unsued functions.

As before

Disable Griffin. No switching support available. Never has been

Removed log file 1

Added Win32 static define

Added SR source

Removed Videocore check on destroy SR

Moved SR deinit to trigger earlier on RA exit.

Fixed compile error after upstream rebase

Fixed aspect ration bug cused by super resolutions. Temporarily disbabled SR logging

Re inabled runtim eSR loggind. Disableed all RARCH logging on retro_deinit_drivers

Removed srdeinit from menu restore. Menu stays in current reolution until a fix can be found

Fixed refresh rate changes when no reolution change is detected.

Forgot to add teh resolution cahge in with the refresh change oops

Fixed endless no detection log.

Removed HH check. This can been better adjusted using the switchres.ini

fixed compile issue

Added better PI crt switching and fixed typo

Pulled Swicthres fixes. Updated desktop restore resolution.

removed unused makefile

Lockec menu refresh to 60hz

fixed missing new line

Fixed file conflicts

Forced 640x480@60 for menu

Added high resolution menu option

Removed item logg checker

Fixed typos

Removed unused functions

Fixed SR close match refesh bug.

Fixed typo
2021-06-04 08:32:56 -07:00
Autechre 140b8f5e0a
Merge pull request #12474 from Jamiras/cheevos_menu
(cheevos) group achievements by category in quick menu
2021-06-03 19:42:09 +02:00
Jamiras cd8f6ede4e support for almost there, active challenge, and recently unlocked categories 2021-06-01 19:38:10 -06:00
Jamiras e76265e1aa group achievements by category 2021-06-01 15:23:18 -06:00
jdgleaver 55c855267e Add API extension for setting 'need_fullpath' based on content file extension and to request persistent frontend content data buffers 2021-06-01 15:28:39 +01:00
Jamiras 2c21e3df8b
(cheevos) upgrade to rcheevos 10.0 (#12442)
* update rcheevos to v10.0.0

* changes for rcheevos 10

* map virtual tracks in cd_open_track_handler

* address travis warnings
2021-05-27 21:01:00 +02:00
twinaphex 0dfb2b57fb use snprintf instead of multiple consecutive strlcpy/strlcats 2021-05-26 05:22:18 +02:00
twinaphex a84c9022af Cleanups 2021-05-25 21:31:39 +02:00
twinaphex 0a5d4288f5 Rollback runloop changes - will require a rethink in how we approach
this
2021-05-25 20:41:39 +02:00
jdgleaver 466bd3be7f Add option to select between 'touched' elements and physical controller inputs when showing inputs on overlays 2021-05-25 18:01:52 +01:00
twinaphex f70b6fbf58 Revert "Go through p_runloop pointer"
This reverts commit 30a90adc47.
2021-05-25 05:27:06 +02:00
twinaphex 30a90adc47 Go through p_runloop pointer 2021-05-25 05:19:43 +02:00
twinaphex 621a0b61f6 Move more state to runloop_state (in preparation of removing path_clear
and path_is_empty)
2021-05-24 20:38:56 +02:00
twinaphex 244a2ad052 Simplify video_thread_get_ptr - get rid of unused p_rarch pointer
in dir_free_shader
2021-05-24 19:22:55 +02:00
twinaphex 2b4f2525d0 move more runloop functions over to runloop.c 2021-05-24 02:57:40 +02:00
twinaphex 75175ddbce move more runloop functiosn to runloop.c 2021-05-24 02:27:55 +02:00
twinaphex b48ab663b0 Move BSV runloop code over to runloop.c 2021-05-23 02:20:01 +02:00
twinaphex 364d518726 More runloop_state changes 2021-05-23 01:54:33 +02:00
twinaphex d1c7d97b10 Split up code to runloop.c 2021-05-22 23:09:00 +02:00
twinaphex 7c483340fc Start creating a distinction between runloop_ and retroarch_ prefix
functions
2021-05-22 16:51:55 +02:00
twinaphex 89e4cac3f1 Small cleanups 2021-05-22 07:33:05 +02:00
twinaphex 29e9027ec0 Cleanup find_driver_* functions - don't pass p_rarch through it 2021-05-22 05:37:14 +02:00
twinaphex 68c377cd55 Move more to runloop_state 2021-05-22 02:57:02 +02:00
twinaphex 706ab17b2c Remove p_rarch passing around where it's no longer needed 2021-05-22 02:14:32 +02:00
twinaphex fede9eee4b Get rid of unused variables 2021-05-22 01:31:29 +02:00
twinaphex d84a2ef700 Move boolean state variables from p_rarch to runloop_state 2021-05-22 01:25:59 +02:00
twinaphex 4ba92b1643 Move more runloop state over to runloop_state 2021-05-22 00:25:01 +02:00
twinaphex 57a728fd41 Rename audio_out_rate to audio_output_sample_rate 2021-05-21 22:36:46 +02:00
twinaphex bc8f98358b Cleanup in audio_driver_init_internal 2021-05-21 22:30:16 +02:00
twinaphex 3887db349e Get rid of unused variable 2021-05-21 22:26:46 +02:00
twinaphex 98448960f5 Move audio_driver_mixer_volume_gain to runloop_state struct 2021-05-21 22:25:36 +02:00
twinaphex 22a2b5ac1c Move more variables to runloop_state 2021-05-21 22:20:26 +02:00
twinaphex 458d636861 Move more runloop state to runloop state struct 2021-05-21 21:23:06 +02:00
twinaphex 64c01e620d Rename retroarch_get_runloop_fastforward_* function 2021-05-21 20:09:50 +02:00
twinaphex 57c4802ab4 Remove unused variable 2021-05-21 20:02:22 +02:00
twinaphex 74f1bf59b9 Refactors - plenty of runloop state functions no longer pass p_rarch
around, so get rid of it
2021-05-21 19:52:09 +02:00
jdgleaver d5f862ee07 Prevent duplicate inputs when using remaps with input overlays 2021-05-21 16:31:11 +01:00
twinaphex f66d4ea33c Remove unused variables 2021-05-21 17:14:13 +02:00
twinaphex 0797fd957a menu_entries_get_core_title - cut down on amount of lines of code 2021-05-21 17:10:20 +02:00
twinaphex 30143f15f2 Simplify menu_entries_get_core_title 2021-05-21 16:54:43 +02:00
twinaphex 3b64752f4f Simplify strlcpy/strlcat combinations to single snprintf 2021-05-18 20:01:51 +02:00
twinaphex 0e7ff6ea4e - Avoid some repeated strlcpy/strlcat calls one after another; replace
it with a single snprintf call under the assumption it will probably
still be faster
- In some instances, the first time the string was manipulated on was
with a strlcat call instead of an strlcpy - change this
2021-05-18 19:27:54 +02:00
twinaphex e784cc1aaf Cleanup some accessibiliyt-related code - pre-initialize strings
normally, don't use weird string_is_equal check which checks if string
is empty, etc.
2021-05-18 19:02:10 +02:00
Autechre a04fe66032
Merge pull request #12380 from stenzek/vulkan-software-fb
(video/vulkan) Avoid caching stale mapped GPU texture as frame data
2021-05-18 18:01:47 +02:00
twinaphex 74cef32c1d Cleanups 2021-05-18 00:57:46 +02:00
Autechre ad5b2d614a
Merge pull request #12401 from davidgfnet/br3
Add brightness restore hook
2021-05-17 13:24:50 +02:00
twinaphex e6adca7679 rarch_init_core_options_path - NULL termination of strings is already
done outside by caller
2021-05-17 00:56:29 +02:00
David Guillen Fandos c378665af5 Add brightness restore hook
This is out of the unix frontend driver on purpose, since settings do
not seem to be available at init() time.
2021-05-15 21:20:37 +02:00
jdgleaver 0a24f5f38a Fix 'Auto-Shader Delay' functionality 2021-05-14 13:47:46 +01:00
jdgleaver 484c4ad51e Add API extension for cores to override frontend fast-forward state 2021-05-13 13:16:37 +01:00
jdgleaver 50d27fada9 (Static Platforms) Ensure 'Always Reload Core on Run Content' setting is applied when loading content via the file browser 2021-05-12 10:59:07 +01:00
Autechre 89391ccf9a
Merge pull request #12287 from LazyFunker/master
Some fixes for UWP/XBox
2021-05-12 09:17:53 +02:00
David Guillen Fandos 9280340fe0 CPU governor/frequency part 2
This adds managed policies and settings to store them and reload them at
startup. Only for Lakka builds!
2021-05-12 02:16:25 +02:00
Stenzek 92e795aa28 (main) Remove null check from video_driver_set_cached_frame_ptr
The only call sites here use NULL as a parameter, and it makes
sense to clear it, since the intent is to remove a potentially
dangling pointer.
2021-05-11 09:49:39 -07:00
jdgleaver c37f540b72 Core Info Cache Improvements
- Core info cache can now be enabled/disabled on all platforms via a new `Settings > Core > Cache Core Info Files` option
- Core info cache file has been renamed from `.cache` to `core_info.cache` (i.e. it is no longer a 'hidden' file on Unix platforms, so can be deleted easily)
- The core info cache file is now compressed (rzip) to further reduce disk IO
- The presence of a `core_info.refresh` file in the core info directory will force a one-time refresh of the info cache. This file is generated automatically when toggling on the `Cache Core Info Files` option, and we will also add it to core info file packaging such that updating info files (either manually or via the online updater) will force a refresh
- The core info cache no longer contains 'core is locked' and 'firmware missing' data fields; these are 'dynamic' properties that must be determined at runtime
- The 'core is locked' status is now determined on core info intialisation by parsing the core directory listing, rather than by performing indivdual 'lock file exists' checks. This minimises file IO, and greatly improves performance on devices with slow storage
- While parsing the core info cache file, we now avoid unnecessary `strdup()`s when adding entries to the resultant cache list
- Memory leaks (potential and real) have been fixed, and safety checks added
- Build errors have been fixed
2021-05-06 15:00:55 +01:00
Jamiras 77d04af845 enforce minimum fastforward_ratio of 1.0 2021-04-28 22:43:48 -06:00
Nathan Strong d7075296e3 Move runloop data to static struct
== DETAILS
As part of a larger project to reduce/eliminate global state, this commit does the following:

1. move all the `runloop_` members of the `rarch_st` struct to a separate structure
2. create a static instance of that struct in retroarch.c
3. switch all references of `p_rarch->runloop_*` to `runloop_state.*`
4. remove the extraneous `runloop_` prefix on the new struct's members
2021-04-26 09:21:01 -07:00
jdgleaver f4511f6fa4 (core_info) Performance optimisations + code clean-ups/refactors 2021-04-26 14:30:31 +01:00
twinaphex d2af1e905c Fix runahead 2021-04-23 13:18:29 +02:00
Autechre d24f808d79
Merge pull request #12294 from ToKe79/lakka_timezone
Lakka: add menu for time zone setting
2021-04-22 18:38:19 +02:00
jdgleaver 80753ac741 Add search filter support to cheats and overlays file browser menus 2021-04-22 16:56:57 +01:00
Tomáš Kelemen (vudiq) 90529c62b2 Lakka: add menu for time zone setting
This adds new entry under Settings -> Services (where all Lakka related
services are currently available, such as switches for services like
SSH, Samba, etc.). By adding this the users do not have to use the
command line / access the file system directly to change their local
time zone to adjust the date/time displayed in RetroArch.
2021-04-21 18:12:42 +02:00
twinaphex ae21979b7c Remove unused variable 2021-04-21 15:58:51 +02:00
twinaphex ba791b7de8 Add better fix that targets all statically linked platforms instead of 2021-04-21 15:58:18 +02:00
twinaphex 220bc434be Get rid of strcpy_alloc 2021-04-21 02:25:51 +02:00
twinaphex e88fad00a5 copy_core_to_temp_file - get rid of a bunch of strcat_alloc calls,
instead just use fill_pathname_join once and have retroarch_tmp_path
be a fixed stack array variable
2021-04-20 21:29:02 +02:00
twinaphex 769fb7cd02 Cleanup 2021-04-20 19:35:59 +02:00
jdgleaver b193fd0ba9 Enhanced 'Load Content' file browser search functionality 2021-04-20 15:49:22 +01:00
LazyFunker c5e5cf28af Force resolution on UWP 2021-04-20 11:47:32 +02:00
Autechre a56fcfb24a
Revert "Screen Resolution option fixes" 2021-04-17 19:33:23 +02:00
twinaphex 46a37b9bd9 Silence some warnings 2021-04-16 17:55:19 +02:00
twinaphex 9812f368e7 Move more of these static variables out of retroarch_data.h 2021-04-15 19:51:40 +02:00
twinaphex 0f4dbcfc53 move arrays over to only function that uses them 2021-04-15 19:51:40 +02:00
twinaphex 67c06d17bb command_event_runtime_log_deinit - put verbosity_is_enabled check around
this
2021-04-15 08:08:08 +02:00
twinaphex 9f902c8bd4 input_joypad_analog_button - only call fabs when input value is not 0 2021-04-15 07:27:43 +02:00
twinaphex 52454591aa Small cleanup to input_joypad_analog_button 2021-04-15 07:22:59 +02:00
twinaphex cfe9d60f51 Get rid of button_is_pressed 2021-04-15 06:55:35 +02:00
twinaphex 4ec8b82388 Cleanups 2021-04-14 03:46:50 +02:00
twinaphex 65c01b35ec Go back to Discord RPC I/O Thread codepath for now - the non-I/O
thread codepath seems to be unreliable for now
2021-04-13 16:44:46 +02:00
twinaphex 2f0f724813 Use more path_basename_nocompression where we don't have to deal with
archive files
2021-04-11 18:46:50 +02:00
twinaphex 637cff628f * Simplify RARCH_CTL_IS_CORE_LOADED
* Create specialized function path_basename_nocompression
2021-04-11 17:27:31 +02:00
twinaphex 3841fecc59 Cleanups 2021-04-11 17:01:13 +02:00
twinaphex bc08e325ce Travis buildfix 2021-04-11 02:22:35 +02:00
twinaphex 59449600ad Cleanup retroarch_menu_running_finished 2021-04-10 21:04:00 +02:00
twinaphex c392a475ee Cleanups 2021-04-10 20:51:19 +02:00
twinaphex d024ff553f Cleanups 2021-04-10 20:47:04 +02:00
twinaphex ca5ce839ce Small cleanups to button input handling code - several parameters
were no longer used
2021-04-10 19:06:56 +02:00
twinaphex 760fc6b3f7 Simplify button_is_pressed 2021-04-10 18:44:10 +02:00
twinaphex 372f939cc9 Simplify input_keys_pressed 2021-04-10 18:25:50 +02:00
twinaphex 5df321fcaa Cleanups 2021-04-10 18:19:20 +02:00
twinaphex 8b197e49bb accessibility_speak_priority - no longer dependent on settings pointer 2021-04-10 14:59:34 +02:00
twinaphex 200983f938 is_narrator_running -don't pass entire settings pointer 2021-04-10 14:24:41 +02:00
twinaphex dd7fe2e7e0 Cleanups 2021-04-10 14:19:52 +02:00
twinaphex 1e94070dca Simplify driver_adjust_system_rates 2021-04-10 13:39:47 +02:00
twinaphex 40ab6f839a Some cleanups to driver_adjust_system_rates 2021-04-10 13:32:27 +02:00
twinaphex 43cb646870 Turn video_driver_monitor_adjust_system_rates into pure function 2021-04-10 13:22:12 +02:00
twinaphex d1d9f96ab3 Turn audio_driver_monitor_adjust_system_rates into pure function 2021-04-10 13:11:01 +02:00
twinaphex d910f520d9 Don't pass entire settings pointer if we just need a few settings variables
to read
2021-04-10 13:03:53 +02:00
twinaphex 5ca666acee Cleanups, don't try to pass settings pointer to functions unless we have to 2021-04-10 03:01:25 +02:00
twinaphex 338c2eb2f0 Settings cleanups 2021-04-10 01:51:28 +02:00
twinaphex deccc4d8c6 Some refactors 2021-04-10 00:54:40 +02:00
twinaphex 204eaf0e76 Don't grab settings pointer inside video_driver_frame 2021-04-08 20:01:59 +02:00
twinaphex 421dbb19c2 Don't pass settings pointer if we just need a couple of variables
that we won't mutate
2021-04-08 19:45:30 +02:00
twinaphex f7a5833cb0 Turn bunch of functions static 2021-04-08 18:33:46 +02:00
twinaphex 42bd709f67 Old MSVC buildfix 2021-04-08 17:31:23 +02:00
twinaphex 2c7226de20 Less pointer grabbing 2021-04-08 17:08:46 +02:00
twinaphex d6c243143d Simplifications to dir_init_shader_internal 2021-04-08 16:49:23 +02:00
Barry Rowe d80833d892 Accessibility speak fix. 2021-04-07 20:39:25 -07:00
twinaphex fb1258b817 Set anim.update_timecb to NULL immediately after menu driver's 'free'
function has been called
2021-04-08 01:37:47 +02:00
twinaphex e5e8e9b5d8 Expand widget init function 2021-04-08 00:51:10 +02:00
twinaphex 95527fb566 Prevent some unnecessary variables being set 2021-04-08 00:22:29 +02:00
twinaphex 412a1885b2 Cleanups 2021-04-07 00:42:38 +02:00
twinaphex 886a692f1a video_driver_init_internal - don't call small one-line functions - set
directly
2021-04-07 00:36:00 +02:00
twinaphex d5ebf9039c Cleanups 2021-04-06 23:05:40 +02:00
twinaphex 789cf29d28 Pass more pointers 2021-04-06 22:35:47 +02:00
twinaphex f8a88fcb94 Cleanups 2021-04-06 20:17:06 +02:00
twinaphex 29a358ee3a Pass settings pointer around to more functions 2021-04-06 20:07:06 +02:00
twinaphex 29513919ca Rewrite retroarch_load_shader_preset_internal - no longer needs
p_rarch
2021-04-06 19:41:46 +02:00
twinaphex 45beb1bcdd Cleanups - pass pointers around instead of grabbing
p_rarch->configuration_settings everywhere; add some verbosity_enabled
checks
2021-04-06 19:31:04 +02:00
twinaphex 529c0f24da Silence some unused variable warnings 2021-04-06 18:29:59 +02:00
twinaphex 4855f371f1 Refactor accessibilty speak priority code - create LUT for
character/string pairs
2021-04-06 18:21:22 +02:00
twinaphex 76f000e4c8 Don't pass p_rarch around to other functions everywhere 2021-04-06 17:49:45 +02:00
twinaphex 2aea7a375d Input - turbocode - button ID is always below the threshold of
RARCH_FIRST_META_KEY, so put it inside the conditional
2021-04-06 15:59:44 +02:00
twinaphex 5cf2a7abd1 input_state_device - don't keep grabbing these pointers over and over 2021-04-06 14:42:30 +02:00
twinaphex d11c7cbbb1 Revert "Simplify input_state_device:"
This reverts commit 0b9bc85ddd.
2021-04-06 14:25:58 +02:00
Jonathan 5c6cd1b48a
Add scaling to pointer input (#12213)
So far, if display is scaled, overlays gets correctly drawn but touch
input is not correctly scaled, resulting in an unusable overlay.

This happens for touches in menu too.

This commit aims to introduce this scaling factor adding it to the
config file, eg:

input_touch_scale = "2"
2021-04-06 13:15:43 +02:00
twinaphex 9910dfbee2 Replace strcpy_literal usage of trivial string setting 2021-04-06 11:21:28 +02:00
twinaphex e2b084b715 Cleanups 2021-04-05 23:54:52 +02:00
twinaphex 5f9197bcc2 Get rid of more manual pointer grabbing 2021-04-05 23:37:42 +02:00
twinaphex 0b9bc85ddd Simplify input_state_device:
* run it within a loop internally for button_mask enabled
* only one function call invocation in codebase
2021-04-05 22:54:13 +02:00
twinaphex 66ad300515 input_state_device - don't have remap_binds_enable ifdefs here 2021-04-05 22:32:06 +02:00
twinaphex 4ce66f0764 Cleanup command_event_init_controllers 2021-04-05 22:26:41 +02:00
twinaphex 48af4fc704 Simplify find_driver functions 2021-04-05 21:06:17 +02:00
twinaphex 8c08b531d6 Simplify hw_render_context_name 2021-04-05 20:13:24 +02:00
David G. F b830b33cf1
Rewrite commands and add new command type (#12233)
* (OSX non-Metal build) Set disable execute page protection

* Rewrite commands and add new command type

This moves commands to a separate file and creates a consistent
interface for them. It is now possible to use multiple command
interfaces simultaneously (stdin, network and UDS).
Implemented a new interface for Lakka, UDS based (so Linux only). This
allow other Lakka servies to send certain commands to Retroarch in a
secure and reliable way.

Co-authored-by: twinaphex <libretro@gmail.com>
2021-04-05 19:55:59 +02:00
twinaphex af00dca08b Get rid of some pointer grabbing for disp_get_ptr by making it
a part of video_frame_info
2021-04-05 14:55:28 +02:00
sonninnos aaf7e1fb0d Block accidental diagonals in menu navigation 2021-04-04 15:44:19 +03:00
jdgleaver 371d0b7395 Add optional menu screensaver 2021-04-01 17:26:43 +01:00
jdgleaver 32bdb49496 Ensure that 'retro_set_controller_port_device' is called when updating 'Max Users' 2021-03-29 15:32:29 +01:00
sonninnos 23d558564f Customizable menu scroll hold delay 2021-03-26 04:23:52 +02:00
twinaphex c26741de70 Rename local variables 2021-03-25 22:48:00 +01:00
twinaphex cd9d6c0511 gfx_display - Get rid of lots of pointer grabbing 2021-03-25 20:12:34 +01:00
jdgleaver 0a08437e0a Add OpenDingux Beta support 2021-03-25 16:19:42 +00:00
twinaphex 0674de54ee (gfx_widgets.c) Get rid of more pointer grabbing to
config_get_ptr/dispwidgets_get_ptr/etc
2021-03-25 15:05:09 +01:00
twinaphex 7505790f32 Cut down on MIDI driver logspam when MIDI just points to null driver 2021-03-25 03:33:42 +01:00
twinaphex be3960e2be (gfx widgets) Add widgets_userdata to video_frame_info 2021-03-24 19:16:46 +01:00
twinaphex d9fa5585a0 Silence static code analysis warings pointed out by cppcheck 2021-03-24 02:23:58 +01:00
twinaphex 8f79e14d0a Silence LGTM static code analysis warnings 2021-03-24 00:25:47 +01:00
twinaphex 0d06927105 Use ARRAY_SIZE where applicable 2021-03-23 17:14:41 +01:00
twinaphex fdc184c60c input_config_parse_key - unroll 2021-03-23 01:10:14 +01:00
twinaphex 49dc7e6c66 * Fix some DISABLE_MENU issues
* Optimizations to read_keybinds_conf / set_autoconfig_binds -
first fill_pathname_join_delim call always produced the same output and
this was called four times in a row in one loop,  hose out of the
caller functions and move it into the loop and call it once
2021-03-23 01:05:01 +01:00
twinaphex 437a49780c Add another HAVE_MENU ifdef 2021-03-22 22:12:58 +01:00
twinaphex fb9d8bad74 Fix DISABLE_MENU 2021-03-22 22:03:16 +01:00
twinaphex 4ff2d85a18 Unsafe to leave input_driver_mapper on heap; plus no real need to
have it on heap when it's already on heap courtesy of rarch_state
2021-03-22 21:43:31 +01:00
twinaphex 882fc9bc2c Simplify config_read_keybinds/save_keybinds 2021-03-22 00:24:00 +01:00
twinaphex a204bcbf81 Simplify input_config_get_prefix 2021-03-21 23:26:06 +01:00
twinaphex e5ca68a518 Simplify video_driver_get_ptr 2021-03-21 17:33:44 +01:00
twinaphex 26ea20905a (retroarch.c) Get rid of two config_get_ptr calls 2021-03-21 17:18:37 +01:00
twinaphex 8b2eb8ed37 Cut down on config_get_ptr calls in menu_displaylist_ctl 2021-03-21 16:36:36 +01:00
twinaphex a83af11754 remove unused variable 2021-03-20 17:47:44 +01:00
twinaphex 94ae0460cc Cut down on calls to gfx_display_get_fb_size 2021-03-20 16:52:53 +01:00
twinaphex f1330f3c98 (video_thread_wrapper) Call video_driver_get_data instead of
video_driver_get_ptr - last parameter passed to video_driver_get_ptr
was hardcoded
2021-03-20 15:15:52 +01:00
twinaphex 76c4f12089 Cleanup some VIDEO_DRIVER_GET_PTR_INTERNAL calls 2021-03-20 15:15:52 +01:00
twinaphex 9fd88744ff Get rid of menu_input_reset 2021-03-20 15:15:52 +01:00
twinaphex 78fcdc1a46 Cleanups - don't go through some small wrapper functions 2021-03-20 13:51:56 +01:00
twinaphex 37a4dfb9db Don't call some one-line wrapper functions 2021-03-20 13:46:57 +01:00
twinaphex b51bb2bc66 Simplify parse_hat function 2021-03-20 13:24:10 +01:00
twinaphex 83a1e9170d Simplify retroarch_load_shader_preset 2021-03-19 12:31:13 +01:00
twinaphex 5ac7a524a2 Further refinement to vrr_runloop_enable checks surrounding
audio_driver_monitor_adjust_system_rates
2021-03-19 10:28:11 +01:00
twinaphex 4806a34920 Cleanups in adjust_system_rates functions 2021-03-18 20:38:26 +01:00
twinaphex 5554e5a842 Small cleanups 2021-03-18 12:51:17 +01:00
sonninnos 4ff2011e02 Duplicate key event blocking additions 2021-03-17 21:22:46 +02:00
Autechre e62aabea95
Merge pull request #12157 from Jamiras/task_http_cleanup
have http tasks clean up after themselves
2021-03-16 09:06:58 +01:00
Jamiras 501fe45a9f have http tasks clean up after themselves 2021-03-15 19:42:25 -06:00
twinaphex b52577aac1 Cleanups 2021-03-15 06:52:16 +01:00
twinaphex 6687920c1d Get rid of some typedefs 2021-03-15 06:37:21 +01:00
Autechre a4836bbb17
Fix analog triggers (#12151)
* Restore RETRO_DEVICE_ANALOG code while making less changes

* * When input_remap_binds_enable is true, input_driver_mapper is always
allocated and initialized - no need to NULL check
* Get rid of input_remote local variable for network gamepad code
2021-03-15 01:32:56 +01:00
twinaphex e3b856dcf2 Avoid two consecutive for loops if block_libretro_input is not
enabled
2021-03-14 06:22:07 +01:00
twinaphex e1b19d2133 Cleanups 2021-03-14 06:15:38 +01:00
twinaphex bb5c168726 Revert "Create specialized versions of input_state_mask"
- will require more work to properly optimize

This reverts commit bca73b0a46.
2021-03-14 06:06:28 +01:00
twinaphex bca73b0a46 Create specialized versions of input_state_mask 2021-03-14 05:47:30 +01:00
twinaphex 4fc1774901 Cleanups 2021-03-14 05:29:40 +01:00
twinaphex dbe620db60 Cleanups 2021-03-14 02:11:36 +01:00
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
HyperspaceMadness abb2d06ce9 Shader_Multi-Level_Referenced_Presets 2020-11-22 19:10:08 -05:00
David Guillen Fandos 1c5099051c Adding savestate garbage collector for autoincrement stavestates
As some issues indicate (#6195 #10471 #11008 #6861) there's an issue with
the autoincrement save slot feature: slot index will increase and very old
saves won't be deleted.

This commit adds support to delete old save states with a user defined
save state limit (global). Instead of wrapping around the slot counter
it will simply delete the oldest save, since it is simpler.

For now there's a limit of one deletion per save, which ensures a user
cannot delete many saves by accident if they set the limit too low.
2020-11-22 13:26:23 +01:00
Autechre 8921d31247
Merge pull request #11595 from libretro/dir_check_defaults_only_once
Only attempt to call dir_check_defaults once per runtime session
2020-11-20 04:32:31 +01:00
twinaphex 3ac75c043e Jdgleaver improvements 2020-11-20 03:55:55 +01:00
Autechre 380e878c66
Merge pull request #11552 from sonninnos/turbo-single-hold
Add hold mode for turbo fire 'Single Button'
2020-11-19 07:21:03 +01:00
twinaphex 9ee1e33e09 Only attempt to call dir_check_defaults once per runtime session
when calling the frontend environment get callback - we want to
look at the 'default' directories, and then if they don't yet exist,
auto-create them so we can store files in them.
2020-11-19 07:10:22 +01:00
twinaphex 02607e6c34 Simplify dir_check_defaults 2020-11-19 05:38:04 +01:00
twinaphex c8f92d2247 Revert "(UWP/Small stack size platforms) UWP is short on stack size, these"
This reverts commit 0a3306a7b4.
2020-11-18 16:48:31 +01:00
Autechre 973c707462
Merge pull request #11585 from Jamiras/cheevos_no_core_support
(cheevos) show unsupported core message when viewing achievement list for unsupported core
2020-11-18 00:57:47 +01:00
twinaphex 0a3306a7b4 (UWP/Small stack size platforms) UWP is short on stack size, these
big local char array variables were causing crashes - put them on
heap
2020-11-17 07:17:32 +01:00
Jamiras 8ed0fcb5ce show unsupported core message when viewing achievement list for unsupported core 2020-11-16 21:38:02 -07:00
twinaphex eb41efa9dd Move more global state code to retroarch_data.h 2020-11-17 01:47:47 +01:00
twinaphex b9b1639759 Cleanups - split up global state to retroarch_data.h 2020-11-17 01:34:20 +01:00
twinaphex 8937794d8a Create separate header file for forward declarations in retroarch.c 2020-11-16 23:59:03 +01:00
twinaphex 451a49f6a1 Create video_driver_restore_cached 2020-11-16 23:49:13 +01:00
twinaphex c9997ce520 Cleanup video_driver_find_driver some more 2020-11-16 23:46:08 +01:00
twinaphex 988515d76d video_driver_find_driver - cleanup 2020-11-16 23:27:17 +01:00
twinaphex b6d88b749b Cleanup bsv_movie_init - use return value 2020-11-16 22:37:04 +01:00
twinaphex a8c7a4fcff Simplify video_driver_find_driver 2020-11-16 22:25:09 +01:00
twinaphex 274d01d0e8 Fix bug in hw_render_context_name 2020-11-16 21:43:01 +01:00
twinaphex 4a2183ee41 (GET_PREFERRED_HW_RENDER) Set callback_type even when it returns false
because video driver switching is disabled, fixes PCSX2 D3D11 issues
2020-11-16 21:38:20 +01:00
twinaphex 58efde6c2e Add more logging for GET_PREFERRED_HW_RENDER and SET_HW_RENDER 2020-11-16 21:04:55 +01:00
Tony Jansson 278ddc64ed Add hold mode for turbo fire 'Single Button' 2020-11-13 15:44:32 +02:00
Autechre f502abf166
Merge pull request #11550 from sonninnos/turbomode-fix
Refresh turbo button selection in 'Single Button'
2020-11-12 01:51:31 +01:00
Autechre a80b40fb8a
Merge pull request #11354 from HyperspaceMadness/Shader_Save_Load
Shader save load
2020-11-11 15:46:42 +01:00
Tony Jansson e5c6032d37 Refresh turbo button selection in 'Single Mode' 2020-11-11 15:08:09 +02:00
twinaphex c3bbc763ff (MSVC) Buildfixes 2020-11-11 00:59:00 +01:00
HyperspaceMadness 5008ac6eb0
Merge branch 'master' into Shader_Save_Load 2020-11-10 17:05:23 -05:00
Tony Jansson c3f3ac3dc1 Keyboard remapping fix 2020-11-09 15:22:41 +02:00
Ryunam f3aaf24219 Add Run-Ahead Toggle hotkey with notifications 2020-11-06 21:39:11 +01:00
Autechre f37d38bcd4
Merge pull request #11181 from dankcushions/gles31_32
GLES 3.1 and 3.2 build parameters, and corresponding context checks.
2020-11-04 04:58:24 +01:00
HyperspaceMadness 70bf90c5d8 Shader_Preset_Simple_Save_Cleaned_2020_11_01 2020-11-01 09:18:40 -05:00
Tony Jansson 58cb0286a8 Mouse grab fixes 2020-10-27 04:59:14 +02:00
barbudreadmon 1de6fc479e allow glcore for every cores using gl 2020-10-26 13:08:43 +01:00
Bernhard Schelling c20b01e9e1 Replace custom JSON parser/writer in translation service with rjson 2020-10-25 21:43:30 +09:00
twinaphex e4ee73bfdf Add HAVE_CHEEVOS ifdefs 2020-10-23 04:44:33 +02:00
Autechre 6b3789513f
Merge pull request #11476 from Jamiras/cheevos_core_options_blacklist
(cheevos) core options blacklist
2020-10-23 02:43:05 +02:00
jdgleaver 3e52f318d5 AI Service fixes 2020-10-22 15:59:26 +01:00
Tony Jansson f98fc6de9e Mouse grab improvements 2020-10-22 00:49:31 +03:00
Tony Jansson 2dd03cc0d2 DISABLE_MENU fix 2020-10-21 23:34:32 +03:00
Autechre 179bc894ec
Merge pull request #11464 from sonninnos/cli-closing
Add option for quitting on close content
2020-10-20 21:53:40 +02:00
Tony Jansson 041b6811f4 Minor command_event nitpicks 2020-10-20 22:02:18 +03:00
Tony Jansson 46d516f066 Add option for quitting on close content 2020-10-20 21:45:03 +03:00
Jamiras f58130bb64 disable achievement hardcore mode when certain core options are enabled 2020-10-20 10:37:05 -06:00
jdgleaver af6c2d6969 Add API extension for overriding frontend audio latency 2020-10-20 15:37:34 +01:00
Tony Jansson 39b194d306 Clean vs reset configuration matching redux 2020-10-17 22:15:49 +03:00
Autechre 4fd92ec667
Revert "Clean vs reset configuration matching" 2020-10-17 19:02:28 +02:00
jdgleaver 4961252a7a Add API extension for cores to monitor frontend audio buffer occupancy 2020-10-17 15:06:03 +01:00
Tony Jansson 1825f52353 Clean vs reset configuration matching 2020-10-17 00:09:06 +03:00
twinaphex f066b944e8 Move rewind manager state variable to p_rarch 2020-10-15 06:04:20 +02:00
twinaphex 44b7234756 Move cheat_manager and state_manager to root folder 2020-10-15 05:29:20 +02:00
Tony Jansson 6918b4b5cb Savestate logging cleanup 2020-10-15 03:54:53 +03:00
Tony Jansson c2e8752395 (DINPUT+WINRAW) Keyboard fixes 2020-10-14 21:23:06 +03:00
twinaphex 8802712ae7 Cleanups 2020-10-14 00:46:38 +02:00
Autechre c030e47f73
Merge pull request #11368 from barbudreadmon/glcore_context_switching
Glcore context switching
2020-10-13 22:13:14 +02:00
twinaphex 564e5f4aff Cleanup 2020-10-13 02:13:23 +02:00
Justin Weiss dc6dea4b84 Add audio_driver_output_samples_buf checks back
It's possible for audio_driver_active to be true after the driver has
been uninitialized and before it has been reinitialized, so these
checks are still necessary.
2020-10-11 11:56:06 -07:00
twinaphex d3dbfba8bc Avoid CXX_BUILD warning 2020-10-09 20:19:34 +02:00
jdgleaver 2dc837850f OpenDingux: Add 'sdl_dingux' input/joypad drivers and use by default 2020-10-08 13:26:45 +01:00
Jamiras 96fc17f43c disable frame advance; delay pause spam in hardcore 2020-10-06 07:52:33 -06:00
twinaphex 2588f51ff2 Fix CXX_BUILD 2020-10-06 00:54:37 +02:00
twinaphex f1b6a0dfb1 Add HAVE_THREADS ifdef 2020-10-05 23:52:39 +02:00
twinaphex a7c54f1848 Move video_driver_thread pointer grabbing to retroarch.c 2020-10-05 18:13:53 +02:00
barbudreadmon 5bb90ecf46 compatibility with targets lacking glcore 2020-10-02 14:28:57 +02:00
twinaphex a38ecbe7de gfx_widgets_iterate - cleanup 2020-10-02 11:32:49 +02:00
Tony Jansson 3b76949699 Key descriptor cleanup 2020-10-01 17:34:49 +03:00
twinaphex 9444117b67 Buildfix 2020-10-01 15:37:21 +02:00
twinaphex 9be7da9665 --disable-menu buildfixes 2020-10-01 12:56:30 +02:00
barbudreadmon 1ed6bfb31f allow context switching from gl to glcore (fix typo) 2020-09-29 15:50:02 +02:00
twinaphex d44ab6facf framebuffer_dirty functions - remove these and set member variables
directly in rgui.c and retroarch.c
2020-09-28 03:49:13 +02:00
twinaphex f38eb84cc7 Move gfx_display_draw_text to retroarch.c and get rid of
video_driver_set_osd_msg
2020-09-28 03:38:16 +02:00
Autechre 3c2280b2b2
Merge pull request #11386 from Jamiras/cheevos_discord
(cheevos) don't update discord rich presence when paused
2020-09-27 23:44:29 +02:00
Jamiras 8bc02e2df2 don't update discord rich presence from retroachievements when paused 2020-09-27 14:45:14 -06:00
twinaphex c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex 14c9ccfda8 Remove gfx_display_{set/get}_driver_id 2020-09-26 19:58:15 +02:00
twinaphex 515e119861 Get rid of gfx_animation_get_delta_time 2020-09-24 06:14:04 +02:00
twinaphex 2ab0300c33 gfx_display.c - can drop dependency now on gfx_animation.h 2020-09-24 06:00:32 +02:00
twinaphex 37237db804 GFX_DISPLAY_GET_UPDATE_PENDING - turn function into macro 2020-09-24 05:59:14 +02:00
twinaphex 1d8bee45e0 Add TODO/FIXME note 2020-09-23 20:40:28 +02:00
barbudreadmon eed47273fb fix crash when using RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT 2020-09-23 12:34:00 +02:00
barbudreadmon 96e6f99f14 allow context switching from gl to glcore 2020-09-23 11:29:44 +02:00
twinaphex 236622ffa6 (Joypad driver) Init function - return void pointer 2020-09-22 02:30:47 +02:00
twinaphex 8eeb612493 Cleanups 2020-09-20 17:50:06 +02:00
twinaphex 0e49f058f3 Use strcpy_literal in more places 2020-09-19 23:59:06 +02:00
twinaphex 1296fc4745 use strlcpy_literal for string literal copies 2020-09-19 23:28:01 +02:00
Ophidon 2f36c94f3f Variable BFI
BFI support added for 180hz / 240hz / etc. Solves issue with image retention from voltage issues at 120hz BFI. Also disabled BFI while in menu, as if set to an incorrect value for the current refresh rate, could cause severe flickering and difficulty reverting to the correct value.
2020-09-18 11:57:32 -04:00
jdgleaver 8a5ebbf24d Add option to scale overlays automatically (with aspect ratio correction) 2020-09-17 17:23:07 +01:00
twinaphex 6234036d5d Get rid of RARCH_DRIVER_CTL_FIND_INDEX 2020-09-16 18:41:45 +02:00
twinaphex 3a37e13a54 Call video_driver_set_viewport directly 2020-09-15 11:05:47 +02:00
jdgleaver 34e08a688f (Sensors API) Android (crash-)fixes/improvements + add option to disable sensor input 2020-09-14 17:52:45 +01:00
twinaphex 5838817bbd Get rid of gfx_widgets_set_status_text 2020-09-14 14:11:44 +02:00
twinaphex 1bf87b1b48 Don't use snprintf if no formatting is required and we just need to
concatenate strings together
2020-09-14 13:53:04 +02:00
twinaphex 2eadf3b175 generic_menu_entry_action - simplify switch 2020-09-14 12:33:09 +02:00
twinaphex 80e4524878 Turn menu_entry_init into macro 2020-09-13 09:03:21 +02:00
twinaphex c83589fa16 Cleanups to menu_entry_get 2020-09-13 08:05:50 +02:00
twinaphex ba9ad1057f Get rid of menu_entry_get_rich_label/menu_entry_get_value 2020-09-12 18:48:22 +02:00
twinaphex ef8f51dbbc Cleanup 2020-09-12 10:08:36 +02:00
jdgleaver 55b6d8ba15 Miscellaneous overlay fixes 2020-09-11 17:00:44 +01:00
Autechre 33a04a794f
Merge pull request #11312 from justinweiss/3ds-enable-threading
[3DS] Enable threading and add a threaded audio driver
2020-09-10 06:50:12 +02:00
Autechre 8f60e63527
Merge pull request #11307 from sonninnos/close-content-hotkey
Hotkey for Close Content / Unload Core
2020-09-09 06:26:49 +02:00
Tony Jansson eb5e5b546c Hotkey for Close Content 2020-09-08 22:12:42 +03:00
jdgleaver b8ea4fd54e Overlay configuration improvements 2020-09-08 13:37:51 +01:00
jdgleaver a39d6240a6 (Salamander/static builds) Move 'libretro_path' value from 'retroarch.cfg' to independent config file 2020-09-05 13:23:20 +01:00
twinaphex 32d075df79 Start decoupling joypad destruction from input driver destruction 2020-09-05 08:56:28 +02:00
twinaphex aa95de57db Cleanups - make sure we are consistent with NULL pointer dereferences 2020-09-05 08:46:28 +02:00
twinaphex d7c6901151 (3DS) Fix crashing issues 2020-09-04 19:38:39 +02:00
twinaphex 812a5b541b Remove input_get_ptr 2020-09-04 07:27:28 +02:00
twinaphex 7af07def7e Make sure values are float 2020-09-04 03:28:27 +02:00
twinaphex 9f306131d2 input_keyboard_line - don't put this on heap 2020-09-04 03:08:02 +02:00
twinaphex e16c3b96af Remove is_input_keyboard_display_on 2020-09-04 02:56:58 +02:00
twinaphex b4b77fd6b0 Refactor out input_keyboard_ctl 2020-09-04 02:37:58 +02:00
twinaphex ba2b5ab7bc Fix game mode focus 2020-09-03 01:59:14 +02:00
twinaphex def2b3ad30 Fix build for targets with no HAVE_MENU 2020-09-03 01:57:08 +02:00
twinaphex 45cb980a3d Check if input_state is implemented first 2020-09-02 17:30:04 +02:00
twinaphex f30bc03969 Only use input_state_wrap for calls where RETRO_DEVICE_JOYPAD will
be used, don't use it for the specialized input state calls for
other devices
2020-09-02 15:53:26 +02:00
twinaphex 76df818c45 Put this behind HAVE_MFI ifdefs 2020-09-02 15:32:15 +02:00
twinaphex 1c5f4e1dee Start cutting down on input_state - move all joypad driver code up to
higher-level retroarch.c
2020-09-02 15:26:03 +02:00
twinaphex f10832b0d3 Create input_state_wrap 2020-09-02 14:39:58 +02:00
twinaphex 2fde8c21a9 Remove set_rumble function from input driver 2020-09-02 00:38:11 +02:00
twinaphex acc0f2143f Change input_key_pressed so we no longer need to pass joypad
to the poll function callback
2020-09-01 21:43:39 +02:00
twinaphex 0eeb0b37b1 Hopefully fix iOS build 2020-09-01 20:30:53 +02:00
jdgleaver b73c60a8fc (dir_init_shader/dir_check_shader) DISABLE_MENU=1 buildfix 2020-09-01 17:26:29 +01:00
twinaphex 1d67ae3c63 Fix Android error 2020-09-01 17:41:05 +02:00
jdgleaver c5072b6477 Use last selected shader preset directory when changing shaders via previous/next hotkeys 2020-09-01 13:41:10 +01:00
twinaphex cb86be9aef Cleanups 2020-09-01 01:26:32 +02:00
twinaphex 1654d0daf5 Cleanup 2020-09-01 01:22:35 +02:00
twinaphex ab6a896c64 Cleanup some hardcoded strings 2020-09-01 01:18:30 +02:00
twinaphex 07f46bad2b Remove unused event loop glue functions for menu entries 2020-09-01 00:42:24 +02:00
Autechre bf7a184331
Merge pull request #11266 from jdgleaver/play-feature-delivery-fix
(Android) Play Store builds: Do not resolve symlinks when handling core paths
2020-08-31 20:05:38 +02:00
jdgleaver 20230ec625 (Android) Play Store builds: Do not resolve symlinks when handling core paths 2020-08-31 12:13:49 +01:00
twinaphex a217ef393f Fix pointer controls 2020-08-31 02:43:48 +02:00
Twinaphex d7559cdb18 Cleanup some unused variable warnings 2020-08-31 02:12:31 +02:00
twinaphex d4d8b6934a Put keyboard_mapping_blocked into p_rarch / rarch struct
instead
2020-08-30 18:47:29 +02:00
twinaphex 5f08605680 Refactor joypad drivers 2020-08-30 05:29:32 +02:00
twinaphex 2b393e2425 move input_key_pressed to retroarch.c 2020-08-29 22:09:29 +02:00
Autechre 6fe1f97fc8
Merge pull request #11255 from jdgleaver/play-feature-delivery
(Android/Play Store) Add frontend support for core installation via Play Feature Delivery
2020-08-29 04:31:20 +02:00
twinaphex 8999d6e4a6 (DInput) Set a userdata struct for the window message loop properly -
get rid of input_get_data - we no longer need it
2020-08-29 03:41:33 +02:00
jdgleaver 4799d2d955 (Android/Play Store) Add frontend support for core installation via Play Feature Delivery 2020-08-28 16:30:54 +01:00
Justin Weiss f53c137459 [3DS] Enable threading 2020-08-27 19:36:39 -07:00
twinaphex 38805da889 Use config_get_entry instead of config_get_array 2020-08-27 16:52:12 +02:00
twinaphex 8d76b3009e Use config_get_entry instead of config_get_string to avoid
heap allocations
2020-08-27 13:53:51 +02:00
twinaphex cfb14dabf3 Revert "Get rid of some early returns"
This reverts commit 1b04b2452c.
2020-08-27 13:30:06 +02:00
twinaphex 309357e5b2 Cleanups 2020-08-27 13:18:29 +02:00
twinaphex 1b04b2452c Get rid of some early returns 2020-08-27 13:06:51 +02:00
twinaphex 3289401b2f Cleanups 2020-08-27 12:52:03 +02:00
Autechre df245d4917
Merge pull request #11239 from jdgleaver/overlay-gamepad-hide
Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android)
2020-08-26 20:23:47 +02:00
twinaphex ad61d8ff92 Simplify config_get_entry 2020-08-26 02:17:37 +02:00
twinaphex 1e5cea48b0 Lower Discord avatar size 2020-08-25 14:10:40 +02:00
twinaphex 6af6d5eb1c (jdgleaver) Initialize string lists properly to prevent memory leaks 2020-08-25 13:25:27 +02:00
jdgleaver cc2e098dab Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android) 2020-08-25 11:12:37 +01:00
twinaphex 85599b27a5 menu_ctx_bind_t - we don't need retcode 2020-08-24 16:57:09 +02:00
twinaphex 4dec373edc Don't put local string list variables on heap by default 2020-08-24 15:32:32 +02:00
jdgleaver 2a58920e4e Improve appearance of 'generic_message' widget 2020-08-24 13:31:51 +01:00
twinaphex 71708f8ddd (libretro-common) Add msg_queue_initialize/msg_queue_deinitialize 2020-08-24 12:04:56 +02:00
Autechre 0b2f19e898
Merge pull request #11226 from Jamiras/rcheevos_globals
(cheevos) eliminate exposed variables for tracking hardcore
2020-08-23 15:05:01 +02:00
Jamiras 2f69d2d4ed eliminate exposed variables for tracking hardcore 2020-08-22 12:18:12 -06:00
twinaphex 1f7645b6e8 Cleanup generic_menu_iterate 2020-08-22 14:05:48 +02:00
twinaphex 4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
jdgleaver dd66988c98 Add option to remember last selected shader preset/shader pass directories 2020-08-21 17:02:32 +01:00
Autechre 637e43f4fd
Merge pull request #11212 from Nargash/master
Automatically sort save files, save states, and screenshots by content dir parent folder name
2020-08-21 14:42:59 +02:00
Nargash b8990d601a Add configuration options to sort save files, save states, and screenshots into folders named after the content directory folder. 2020-08-20 19:29:00 -05:00
twinaphex d545739210 Categorize some members of rarch_state 2020-08-20 17:32:44 +02:00
twinaphex 64e2988957 menu_list_flush_stack - cleanup 2020-08-20 17:29:42 +02:00
twinaphex 5a96f8b63c Small cleanups as recommended by Alcaro 2020-08-20 14:50:22 +02:00
twinaphex 8324a03a5e Don't heap allocate audio_driver_input_dat - already
a part of heap-allocated rarch_state
2020-08-20 09:31:23 +02:00
twinaphex dc3dc574d8 String stack size cleanups 2020-08-19 06:53:09 +02:00
twinaphex a85368f21f Move more strings from heap to stack 2020-08-19 06:27:36 +02:00
twinaphex 5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
Autechre b1d28fd7e0
Merge pull request #11205 from sonninnos/analog_dpad_override
Skip analog input if analog is in digital mode
2020-08-18 16:28:40 +02:00
twinaphex 216190b826 Clean up more string variables on heap - move to stack 2020-08-18 14:26:15 +02:00
twinaphex 0f4470dabb Move more strings from heap to stack 2020-08-18 13:01:56 +02:00
Tony Jansson 8191b44b0b Skip analog input if analog is in digital mode 2020-08-16 10:12:41 +03:00
twinaphex f48dc0ff5b Reorder structs, alignment 2020-08-15 20:38:31 +02:00
twinaphex f09df7c6e3 Reorder structs, alignment 2020-08-15 19:43:17 +02:00
twinaphex 0598c5643a Reorder structs, alignment 2020-08-15 18:30:27 +02:00
twinaphex cbf96ad8fb Reorder structs, alignment 2020-08-15 03:21:54 +02:00
twinaphex 6e1445c658 Reorder structs, alignment 2020-08-15 02:55:29 +02:00
twinaphex 29cb70abb2 Reorder structs/alignment 2020-08-14 22:43:46 +02:00
twinaphex 7bb63a213c Struct reordering/alignment 2020-08-14 21:09:24 +02:00
twinaphex 10b06ce828 More struct reordering/alignment 2020-08-14 21:00:04 +02:00
Autechre 7cf6d1a1cc
Merge pull request #11195 from jdgleaver/core-updater-search
Enhanced core downloader search functionality
2020-08-14 19:48:16 +02:00
twinaphex 37be80b847 Struct reordering 2020-08-14 19:46:06 +02:00
twinaphex 795092e77f Struct reordering 2020-08-14 19:19:37 +02:00
jdgleaver 6d8f3cb182 Enhanced core downloader search functionality 2020-08-14 17:53:44 +01:00
twinaphex c250b94dcf Move p_anim state to rarch_state 2020-08-14 06:29:13 +02:00
Autechre d081c01cc2
Merge pull request #11183 from Jamiras/cheevos_memory
(cheevos) generic memory mapping using rcheevos
2020-08-12 17:37:46 +02:00
Autechre 172de99048
Merge pull request #11154 from sonninnos/master
Game Focus + OS mouse cursor fix
2020-08-12 17:35:06 +02:00
Jamiras b15411dad8 generic memory mapping using rcheevos 2020-08-11 09:26:04 -06:00
twinaphex 6388872a54 Cleanups/style nits 2020-08-11 16:00:25 +02:00
jdgleaver ee8a2f4268 Add API extension for cores to query the number of active inputs provided by the frontend 2020-08-11 14:07:00 +01:00
dankcushions 6aa0680110 GLES 3.1 and 3.2 build parameters, and corresponding context checks. 2020-08-11 13:47:51 +01:00
Autechre 2979018d68
Revert "Don't report unused input ports to cores" 2020-08-09 21:06:45 +02:00
Nikos Chantziaras e534373dee
Don't report unused input ports to cores
RetroArch has the unfortunate behavior of setting unused ports to
RETRO_DEVICE_JOYPAD in the core through
retro_set_controller_port_device(). "Unused" meaning ports higher than
the "maximum users" amount configured in settings/input in RA. This is
unfortunate because some cores (like the dosbox ones) change their
behavior depending on the device type assigned to ports. If all unused
(and thus invisible and unconfigurable through the UI) are set to
RETRO_DEVICE_JOYPAD, the core changes its behavior because from its
point of view there's multiple joypads connected, and there's no way for
users to disconnect these bogus joypads.

Fix this by not calling retro_set_controller_port_device() on ports that
are not used.
2020-08-09 14:54:28 +03:00
Tony Jansson 53340385a6 Game focus updates:
- Prevent mouse cursor visibility in fullscreen when ungrabbed via game focus
- Reformat logging
2020-08-06 14:15:55 +03:00
twinaphex c3d8c8661f Buildfixes for C89_BUILD --disable-menu 2020-08-06 03:04:21 +02:00
twinaphex 3680804217 Undo path_basedir_size 2020-08-04 03:05:20 +02:00
twinaphex 98b594666f Backport d5e2d42008 2020-08-04 02:03:02 +02:00
twinaphex f47b67bb51 Get rid of forward declaration 2020-08-03 22:30:08 +02:00
Bernhard Schelling 5229b255b5 Show system icons in explore view 2020-08-04 02:37:34 +09:00
jdgleaver dc6f0fd0b3 Prevent runahead from being disabled *permanently* when an error occurs 2020-08-03 16:21:21 +01:00
jdgleaver 535d73cf37 Ensure correct directory is used when saving autoconfig profiles 2020-08-03 13:10:00 +01:00
twinaphex 85e5c783af Backport getting rid of video_context_driver_input_driver 2020-08-03 00:47:58 +02:00
twinaphex deee393dfb Backport video_context_driver_free changes 2020-08-03 00:35:07 +02:00
twinaphex 429a6bb9e3 Cleanup 2020-08-03 00:24:14 +02:00
twinaphex 345ea303f4 Backport video_context_driver_destroy_internal 2020-08-03 00:21:34 +02:00
twinaphex 3058e96d94 menu_input_get_dpi - make it go through wrapper function
for accessing get_metrics
2020-08-03 00:10:03 +02:00
twinaphex 81395689e6 Backport set_resize_null alterations 2020-08-03 00:06:13 +02:00
twinaphex 056f85bf45 Change video_context_driver_set_flags 2020-08-03 00:04:27 +02:00
twinaphex 3e41cbc381 Revert "Add get_metrics to poke interface"
This reverts commit 119689c940.
2020-08-02 23:44:28 +02:00
twinaphex 31f570fdf6 Revert "Cleanups"
This reverts commit 529886a3fe.
2020-08-02 23:44:21 +02:00
twinaphex da5806a810 Revert "Cleanups"
This reverts commit a01a2375a1.
2020-08-02 23:43:56 +02:00
twinaphex a77c559505 Revert "Cleanups"
This reverts commit 69e92fa03b.
2020-08-02 23:43:44 +02:00
twinaphex 5fe2f75842 Revert "Cleanups"
This reverts commit 184ce8e9b7.
2020-08-02 23:43:29 +02:00
twinaphex 2efa8ac80e Revert "Get rid of video_context_driver_input_driver"
This reverts commit 75b1a09184.
2020-08-02 23:43:19 +02:00
twinaphex 75b1a09184 Get rid of video_context_driver_input_driver 2020-08-02 20:37:21 +02:00
twinaphex 184ce8e9b7 Cleanups 2020-08-02 20:27:19 +02:00
twinaphex 69e92fa03b Cleanups 2020-08-02 20:23:10 +02:00
twinaphex a01a2375a1 Cleanups 2020-08-02 20:19:42 +02:00
twinaphex 529886a3fe Cleanups 2020-08-02 19:53:44 +02:00
twinaphex 119689c940 Add get_metrics to poke interface 2020-08-02 19:25:45 +02:00
twinaphex 416363e9fd Cleanups 2020-08-02 18:49:31 +02:00
twinaphex 4d17fde5ea None of the drivers that call video_driver_update_viewport
have either a context driver or have a 'fake' context driver
with translate_aspect implemented
2020-08-02 12:19:07 +02:00
twinaphex 035e7641c5 Cleanup video_driver_update_viewport 2020-08-02 12:16:02 +02:00
twinaphex 4ee45304b0 More warning fixes 2020-08-01 18:14:48 +02:00
twinaphex 04e67f1ac9 Make Xbox 360 reuse default xinput_joypad.c driver 2020-07-31 18:32:28 +02:00
jdgleaver 776301883c Enhanced playlist search functionality 2020-07-31 15:14:51 +01:00
twinaphex 4f931f2729 Use UINT32_C / UINT64_C throughout the codebase 2020-07-29 04:48:11 +02:00
alphanu1 e222d62f6c
Merge pull request #7 from libretro/master
upstream
2020-07-28 18:55:54 +01:00
alphanu1 610f9d6c48 Fix missing arg 2020-07-28 18:15:01 +01:00
Autechre 8cb861798e
Merge pull request #11075 from francescotintori/francesco/playlist_autofix
Playlist base content directory paths
2020-07-28 16:10:20 +02:00
alphanu1 55e3bd3d2d Added ability to adjust porch values
Porches can now be manipulated from the CRTSwitchRes menu
2020-07-28 14:25:38 +01:00
twinaphex 395de4bae5 (Menu explore) jdgleaver's memory leak fixes 2020-07-28 14:32:46 +02:00
Twinaphex 59549d9f62 Remove unused variable 2020-07-28 12:17:16 +02:00
Bernhard Schelling 667e8a558e Explore view - WIP1
A top content view that combines all playlists with database entries to browse by year, developer, system, etc.
Depends on the quality of the available metadata in the database (RDB) files.
2020-07-28 04:44:31 +02:00
francescotintori 9744fcb76a Adds base content directory support in playlists. If playlist base content directory does not match configuration parameter 'rgui_browser_directory', all entries paths are automatically fixed to match parameter 'rgui_browser_directory'.
Functionality is enabled if new parameter 'playlist_autofix_paths' is enabled.
2020-07-27 20:59:56 +02:00
twinaphex 7f1cd52d65 Remove video_driver_context_get_size 2020-07-27 14:33:21 +02:00
twinaphex d6465a1348 Refactor 'focus' function callback 2020-07-27 13:46:55 +02:00
twinaphex 74345f08d6 Refactor video_driver_has_windowed 2020-07-27 13:39:02 +02:00
twinaphex 61b798b789 Get rid of video_context_driver_set_video_mode 2020-07-27 11:08:34 +02:00
twinaphex 197465c1ea make_current is only ever used for GL, so move it out of
video_driver_load/unload_texture and into the inner GL
drivers
2020-07-27 10:26:13 +02:00
twinaphex 3d893b7602 Add extra parameter to unload_texture 2020-07-27 10:15:28 +02:00
twinaphex 1204ae6edb Just call the poke function call here 2020-07-27 09:46:06 +02:00
twinaphex dc94356505 Cleanup context driver video output functions 2020-07-27 09:38:20 +02:00
twinaphex 3e04b158ab Get rid of video_context_driver_write_to_image_buffer 2020-07-27 08:25:11 +02:00
twinaphex 8dc7524e43 Get rid of video_context_driver_translate_aspect wrapper function 2020-07-27 08:15:35 +02:00
twinaphex 9db00e4143 Start using video_driver_get_flags_wrapper again 2020-07-27 06:40:30 +02:00
twinaphex b9e471d22a Revert "Video context driver cleanups - less functions to go through with"
This reverts commit cd1d760a38.
2020-07-26 23:12:05 +02:00
twinaphex 4e5037d7e1 Revert "Get rid of these context driver higher level functions"
This reverts commit 27b09229b3.
2020-07-26 23:11:24 +02:00
twinaphex b96ec6b8a8 Revert "Cleanup"
This reverts commit 3108df009e.
2020-07-26 23:11:16 +02:00
twinaphex 3108df009e Cleanup 2020-07-26 12:04:55 +02:00
twinaphex 27b09229b3 Get rid of these context driver higher level functions 2020-07-26 11:58:38 +02:00
twinaphex cd1d760a38 Video context driver cleanups - less functions to go through with
public scope
2020-07-26 08:00:49 +02:00
twinaphex f94b5864b2 Cleanup 2020-07-25 19:58:14 +02:00
jdgleaver 013ec3ebb2 Core Options: Detect 'enable'/'disable' as boolean-type value labels 2020-07-24 17:15:47 +01:00
jdgleaver 9a19a7ae31 Core option improvements 2020-07-24 15:31:50 +01:00
jdgleaver 60407a84e6 Add input remap drop-down lists 2020-07-23 17:20:41 +01:00
Autechre 6c7143d02d
Merge pull request #10981 from yoshisuga/yoshisuga/ios-metal
iOS/tvOS Metal Renderer
2020-07-21 20:41:07 +02:00
jdgleaver 83f9817041 Fix 'content launched from command line' detection 2020-07-21 14:26:40 +01:00
Yoshi Sugawara 2187cf67c9 Support the ApplePlatform delegate for all iOS builds (the OpenGL one) so that the view initialization happens in the same way; remove the companion UI for iOS; four finger swipe down now shows RA menu on iOS 2020-07-20 15:38:24 -10:00
Yoshi Sugawara 271ac7f925 support the OpenGL driver in the metal build by delegating the view initialization to the ApplePlatform delegate (metal build only for now) 2020-07-20 14:00:28 -10:00
twinaphex f06af20a4a Cleanups 2020-07-19 23:48:18 +02:00
Hugo Hromic 1e3fb9505c (Menu/OSD) Implement configurable update interval for memory usage display
Obtaining system memory metrics is generally an expensive operation.
2020-07-19 19:57:50 +01:00
Hugo Hromic c3bf17d3f5 (Menu/OSD) Refactor "fps_text" into "status_text" internally
"fps_text" is used for several status parameters, not just FPS.
2020-07-19 16:58:58 +01:00
Yoshi Sugawara fd9ac64d55 Merge branch 'master' into yoshisuga/ios-metal 2020-07-19 00:33:54 -10:00
Yoshi Sugawara a19f1451cd removed debug logging statements; enable multi touch on metal view to support touchscreen controls; fixed setting the metal view drawable size based on the view bounds size in pixels 2020-07-19 00:11:15 -10:00