Commit Graph

12511 Commits

Author SHA1 Message Date
sonninnos 4ce384b42d (RGUI) Fix savestate thumbnail fullscreen cancel action 2023-05-05 14:41:47 +02:00
sonninnos 19a417434a (RGUI) Fix and add toggle for playlist thumbnails 2023-05-05 14:41:47 +02:00
sonninnos c8fb30ebe5 (Ozone) Return to sidebar from playlist manage quick access 2023-05-03 20:57:43 +02:00
sonninnos 33c4873b5b
(Ozone) Add quick access to playlist manager from sidebar (#15246) 2023-05-02 14:50:02 +02:00
libretroadmin d64f11a0f7 menu_update_fullscreen_thumbnail_label - some refinements 2023-05-02 00:21:37 +02:00
libretroadmin e61f495b0a Replace some snprintf calls 2023-05-02 00:12:04 +02:00
libretroadmin 6b93152253 * Add some TODO/FIXME localize notes
* some snprintf refactors
2023-05-01 20:49:32 +02:00
libretroadmin b951a010fd Move strftime_am_pm to libretro-common and get rid of duplicated
function
2023-05-01 19:03:11 +02:00
sonninnos b2ff445531
(Ozone) Sidebar multiline scrolling (#15242) 2023-05-01 05:26:31 +02:00
libretroadmin c087b044c2 * Add TODO/FIXME localize notes
* More snprintf optimizations
2023-04-30 19:30:07 +02:00
libretroadmin 254773339b Silence some unused variable warnings 2023-04-30 17:43:46 +02:00
libretroadmin 3871ac4455 * Add FIXME LOCALIZE notes
* Some snprintf optimizations
2023-04-30 17:26:57 +02:00
libretroadmin 04833f54b5 settings - remove unused ST_HEX 2023-04-29 16:20:08 +02:00
libretroadmin 246af45939 (menu_displaylist) Cleanups 2023-04-29 15:25:55 +02:00
libretroadmin 53a1ff446d Turn another function static 2023-04-29 14:38:31 +02:00
libretroadmin dfd0d6b14a Turn another function static 2023-04-29 14:38:31 +02:00
libretroadmin 138784a32d Turn another function static 2023-04-29 14:38:31 +02:00
libretroadmin 1a91aabd08 (menu_driver) Turn more functions static 2023-04-29 14:38:31 +02:00
libretroadmin 661f315aa8 (Menu) Turn some functions static 2023-04-29 14:38:31 +02:00
libretroadmin 47e5fa59ca (menu_displaylist) Cleanups 2023-04-28 17:37:17 +02:00
libretroadmin 242bdf9e1c (menu_displaylist) Cleanups 2023-04-28 17:05:32 +02:00
libretroadmin 1db2f20665 Clean warnings 2023-04-28 02:11:52 +02:00
libretroadmin bce958780d Remove unused ui_companion_notify_list_loaded - and menu_list member
from menu_displaylist_info
2023-04-26 20:21:07 +02:00
sonninnos fae7ac8241
Change network port menu options to 'allow_input' mode (#15227) 2023-04-26 09:09:58 +02:00
libretroadmin a385ff4444 (menu_displaylist) menu_displaylist_info - remove need of 'count'
member variable
2023-04-26 01:57:08 +02:00
libretroadmin 7a0e8788e0 (Menu) menu_displaylist refactors pt. 2 2023-04-26 01:57:08 +02:00
libretroadmin c35fddad86 (menu_displaylist) Refactors 2023-04-25 15:06:56 +02:00
libretroadmin 8a6584d0df (menu) menu_displaylist_build_list - cleanups 2023-04-25 14:19:58 +02:00
libretroadmin cff5ea2a9b (video_driver/HDR) Remove unused helper functiosn 2023-04-24 10:54:46 +02:00
libretroadmin ba9e78fe99 (menu_displaylist) Cleanups 2023-04-24 10:54:46 +02:00
libretroadmin 4d2a7f4dd0 (Menu) menu_displaylist_build_list - simplifications, less LOC 2023-04-23 17:30:55 +02:00
libretroadmin 07eddd7229 Cleanups 2023-04-23 16:09:24 +02:00
libretroadmin 238f887931 Get rid of initial for loop C89 noncompliance
* uwp_main.c - code style cleanups
2023-04-23 10:47:09 +02:00
libretroadmin 182ab1a82e Small misc cleanups - some C89 compliance fixes 2023-04-23 09:11:26 +02:00
libretroadmin 258ac6de4a Expand menu_displaylist_build_list 2023-04-23 09:01:52 +02:00
libretroadmin 11cab12d59 Cleanups 2023-04-23 08:29:33 +02:00
libretroadmin 3b8791f0ad Remove unused functions in menu_setting.c 2023-04-23 08:08:00 +02:00
Felipe Tavares ea81928e39
Fast-Forward Audio Resampling (#15173)
* 🎵 Fast forward audio resampling. Solves #15160.

Previously, we avoided doing any resampling while fastforwarding based
on the assumption it was impossible to make the audio not crackle due to
both flush-to-flush timing fluctuations and timer accuracy.

However, turns out this is not the case. The audio doesn't "crackle" per
se when the timing fluctuates! It's just that the sounds don't make
sense since the time compression and decompression caused by the flush
time fluctuations mess with the audio consistency.

To work around that, we introduce a running average flush delta time
that makes sure the audio is both resampled to approximately the correct
rate and consistent.

This was tested in two settings:

- Limited rate fastforwarding (2x-4x)
- Unlimited fastforwarding

In both cases it seems to work well, but with unlimited fastforwarding
it's just high pitched and annoying, so this is probably the most useful
in the 2x to 4x range.

* Move declartion to support C89

* resampling ratio upper and lower bounds

* Add toggle for speeding up audio
2023-04-20 17:14:47 +02:00
libretroadmin 52ba0fce34 Cleanups/variable cleanups/less snprintf calls 2023-04-17 15:26:30 +02:00
libretroadmin 0849a51ecc Small cleanups 2023-04-17 15:04:46 +02:00
sonninnos a8994860fc
Reinit audio on audio sync toggle (#15204) 2023-04-17 04:24:00 +02:00
Jamiras 8ea9651d09
(cheevos) expand leaderboard visibility settings (#15201)
* migrate cheevos_leaderboard_enabled setting to cheevos_visibility_lboard_X

* provide translatable strings for leaderboard messages
2023-04-16 19:44:46 +02:00
sonninnos 3c37da6bd1
Start directory browsing from current value (#15199) 2023-04-15 20:01:04 +02:00
sonninnos 5722d90a38
Show version in System Information + help/log version reformat (#15195) 2023-04-14 21:28:09 +01:00
sonninnos e2a264700a
Audio output menu item reinit fix (#15190) 2023-04-14 07:18:21 +02:00
sonninnos 07c371533f
WASAPI Frame Delay fix + cleanups (#15187) 2023-04-13 20:20:47 +02:00
Subs f24893bcb1
[CRT] Add KMS modeswitch (#15131)
* Prepare to update deps/switchres

* Squashed 'deps/switchres/' content from commit ca72648b32

git-subtree-dir: deps/switchres
git-subtree-split: ca72648b3253eca8c5addf64d1e4aa1c43f5db94

* Add CRT modeswitching to KMS
Display the real refresh rate
Enable the CRT SwitchRes menu
Add another switchres.ini path for Lakka
2023-03-25 11:57:10 +01:00
sonninnos a0c7f11499
(XMB) Horizontal icon animation fix (#15093) 2023-03-14 00:36:39 +01:00
sonninnos da076faa47
Notification font + statistics adjustments (#15089) 2023-03-13 20:10:10 +01:00
Joe Osborn 81b3e128ac
Add checkpointing feature for replay recordings. (#15072)
If cores are not deterministic, or if they only have bounded
determinism, we can obtain less drift if replay files also contain
periodic checkpoint states.  These are configured by the new retroarch
stting replay_checkpoint_interval (measured in seconds).  States are
inserted into the replay file in between frames.

This patch also fixes the settings display for the replay
autoincrement max keep setting.
2023-03-09 23:14:02 +01:00
zoltanvb ed2ffb5393
Minor menu opacity fixes. (#15069)
Remove "Framebuffer opacity" from XMB as it does not use it.
Also, rename the corresponding menu title, since "framebuffer"
is not that intuitive.
2023-03-08 00:10:27 +01:00
Joe Osborn 2125770236
Replay UI support (#15048)
* Add bsv replay controls (not yet fully implemented), remove toggle

see notes in task_movie.c, make sure command.c calls the right
functions, check retroarch.c and other todos.

bsv files are also now stored with states, not saves.

* Compilation fixes

* Added command impls for play and record replay, and some code in load state to do the right thing there

* Guard some parts of the new code with HAVE_BSV_MOVIE

* wip, menu fixes

* more menu fixes, osd for movie errors, halt recording properly

* Menu and label fixes

* move bsvs to own file suffix series under savestates, fix recording and playback command validity checks

* Fix replay autoincrement

* fix endif placement, whoops

---------

Co-authored-by: Joseph C. Osborn <jcoa2018@pomona.edu>
2023-03-03 00:52:22 +01:00
libretroadmin 51d238875e Get rid of obsolete HAVE_VIDEO_LAYOUT - obsolete spec, was only
ever implemented for OpenGL2 driver, lots of code debt, best to
instead just keep improving the overlay system instead which is
already available for most video drivers
2023-02-23 21:03:41 +01:00
libretroadmin 7ebab640d7 Cleanups/style nits 2023-02-23 13:15:14 +01:00
libretroadmin 3f3262fba3 (PS3) Cleanups - don't assume GLSL is the default shader for PSL1GHT 2023-02-23 10:43:33 +01:00
libretroadmin 22c760af41 Silence warning: missing braces around initializer [-Wmissing-braces] 2023-02-20 17:15:25 +01:00
libretroadmin a4dda41739 (PSL1GHT) Buildfixes/warning fixes 2023-02-20 15:33:54 +01:00
libretroadmin b872de4fb1 (PSL1GHT) Fix some warnings 2023-02-20 14:50:54 +01:00
sonninnos d7f2bd6ce7
Network information cleanup (#14987) 2023-02-17 20:19:58 +01:00
sonninnos ee2b6997f1
(XMB) Layout corrections (#14986) 2023-02-16 16:08:57 +01:00
sonninnos 54b28f941d
(XMB+Ozone) Thumbnail behavior adjustments (#14980) 2023-02-14 20:35:56 +01:00
sonninnos df05efe068
User Interface menu reordering (#14974) 2023-02-13 20:34:59 +01:00
sonninnos 7765319417
(RGUI) Fix disabled menu item color (#14973) 2023-02-13 16:41:23 +01:00
zoltanvb 1ec036fb91
Music files should also obey builtin_mediaplayer_enable (#14967)
Disabling the built in media player should be possible for music files
as well. Without this, sound files can not be opened from file browser
with cores that support them.
2023-02-11 00:47:03 +01:00
OsirizX 0549223677
(PSL1GHT) Add improvements to the RSX driver (#14965)
* remove var error in psl1ght input

* (psl1ght) add modern_alpha_blend and modern_opaque rsx shaders

* (psl1ght) add perf improvements to the rsx driver

* add rsx gfx for psl1ght

* (psl1ght) set rsx as a compatible video driver

* Do xmb menu scaling for psl1ght

* (psl1ght) update Makefile to use latest shaders and more UI menu options
2023-02-10 08:29:45 +01:00
zoltanvb 1134b895a2
Ozone footer enhancement: Scan button (#14949)
Display Scan button in footer when it is applicable.
2023-02-04 17:18:21 +01:00
zoltanvb 39e5dde973
Add Clear button to Ozone footer (#14947)
Add indication of Clear button when it is applicable (currently: keybinds).
2023-02-04 14:25:59 +01:00
warmenhoven ac2cceb905
Fix a few mac windowed mode settings (#14942)
* Use "Remember window position and size" setting (fixes #14806)
* Implement window opacity
* Enable "Show window decorations" toggle
* Hide "Disable composition" option (osx does not support disabling composition)
2023-02-03 07:32:30 +01:00
LibretroAdmin e7fe79e8ed
Revert "Ignore system subdir replacement if subdir has subdirs (#14887)" (#14940)
This reverts commit f46550bd7c.
2023-02-03 04:04:14 +01:00
zoltanvb f2ee255698
Ozone footer enhancements (#14934)
Add Help button (Select) and Reset to Default (Start) to footer where applicable.
Display Help footer only if there is actual info to be displayed, either
actual help, or sublabel if it is not visible otherwise.
2023-02-02 01:47:02 +01:00
LibretroAdmin d2e3dd136c
Revert "Ozone footer enhancements (#14926)" (#14927)
This reverts commit f7f700318a.
2023-01-29 23:31:22 +01:00
reallibretroadmin 27ee23cfd8 Remove unused variable 2023-01-29 23:27:30 +01:00
zoltanvb f7f700318a
Ozone footer enhancements (#14926)
Add Help button (Select) and Reset to Default (Start) to footer where applicable.
2023-01-29 21:55:16 +01:00
sonninnos b1b7fb56a9
(Ozone) Refresh thumbnail on close content hotkey (#14924) 2023-01-29 14:52:53 +01:00
sonninnos 6378d8e0f8
Override config + appendconfig fixes (#14920) 2023-01-29 00:12:08 +01:00
sonninnos 482c8ccf35
Add dropdown menu for audio device (#14914) 2023-01-28 02:22:08 +01:00
Tatsuya79 940ad64d41
Allow bypassing savestate info files filtering (#14906) 2023-01-26 15:56:33 +01:00
reallibretroadmin 64bee66ba9 Remove unused variable 2023-01-24 04:52:31 +01:00
sonninnos c6dc92fc07
Override bind save + menu manager overhaul (#14895)
* Input bind override conf saving

* Override menu overhaul
2023-01-24 01:42:50 +01:00
libretroadmin e798f99fea Several RARCH_CTL switches don't belong to retroarch state but
runloop state, hence remove
2023-01-22 20:16:14 +01:00
libretroadmin 9fbd62d7b8 Reduce dependence on strcpy_literal (just a macro for strcpy) - prefer
going through safer strlcpy
2023-01-22 17:13:38 +01:00
libretroadmin 378e90e745 retroarch.h functions should be namespaced 'retroarch_' instead
of 'rarch_'
2023-01-22 16:58:22 +01:00
sonninnos f46550bd7c
Ignore system subdir replacement if subdir has subdirs (#14887) 2023-01-22 13:03:10 +01:00
sonninnos becf623bf0
(XMB+Ozone) Fix search terms in title header (#14883) 2023-01-21 17:16:25 +01:00
sonninnos 70c4fbeb93
(XMB) Fix MENU_ACTION_CANCEL when search is active (#14882) 2023-01-21 13:47:21 +01:00
sonninnos ddcea16634
Show Frame Delay without VSync (#14857) 2023-01-16 20:27:48 +01:00
sonninnos 4191e0a9d7
Add unified back action to all menu drivers (#14856) 2023-01-16 08:51:07 +01:00
sonninnos f8e94861b2
Core option setting type checks (#14852) 2023-01-15 16:06:56 +01:00
sonninnos 2f1a03523b
Hotkey blocking correction (#14831) 2023-01-13 04:56:14 +01:00
Bobby Smith 06c3cd80aa
Fix subsystems sublabels (#14843) 2023-01-13 04:48:02 +01:00
libretroadmin f0c8008bda Split up runahead into its own file(s) - runahead.c/runahead.h -
by Dwedit's request
2023-01-11 10:19:56 +01:00
neil4 7213aada8d
Add Preemptive Frames to Latency Settings (#14832) 2023-01-10 07:22:14 +01:00
sonninnos 55aeba2f57
Savestate thumbnail aspect ratio fallback (#14828) 2023-01-09 04:13:11 +01:00
libretroadmin daa9e352cc Remove asserts 2023-01-09 00:51:05 +01:00
zoltanvb 6412a1d1a1
msg_hash_us.c to Crowdin, phase 2 (with Android fix) (#14825)
* msg_hash_us.c contents to Crowdin, phase 2

Remaining part of the fixed strings moved to msg_hash_us.h, and some other changes:
- added help text for individual menu drivers
- prepared help labels for video drivers
- prepared help labels for input drivers
- old entries from the now defunct help menu are hidden from compilation
  (may be added back later, when the menu is again visible)
- moved notification color/bgcolor items to sublabels
- language fixes from phase 1 comments

* c89 compilation fixes

* Compilation fix for Android builds
2023-01-08 19:33:04 +01:00
libretroadmin ccfad9dc9d Revert "msg_hash_us.c contents to Crowdin, phase 2 (#14821)"
This reverts commit f550576147.
2023-01-08 17:47:11 +01:00
zoltanvb f550576147
msg_hash_us.c contents to Crowdin, phase 2 (#14821)
* msg_hash_us.c contents to Crowdin, phase 2

Remaining part of the fixed strings moved to msg_hash_us.h, and some other changes:
- added help text for individual menu drivers
- prepared help labels for video drivers
- prepared help labels for input drivers
- old entries from the now defunct help menu are hidden from compilation
  (may be added back later, when the menu is again visible)
- moved notification color/bgcolor items to sublabels
- language fixes from phase 1 comments
2023-01-08 10:58:26 +01:00
libretroadmin 8a3686df58 Revert "Header cleanups - don't include retroarch.h everywhere"
This reverts commit 0e3b478f8c.
2023-01-08 09:05:46 +01:00
libretroadmin 0e3b478f8c Header cleanups - don't include retroarch.h everywhere 2023-01-08 08:56:57 +01:00
Skirlez f2c16bd8d6 Scroll sound fixes
correctly get list size in xmb.c for playing scrolling sound when switching categories, play the scrolling sound when pressing cancel in ozone, play the sound when scrolling with ZL and ZR, play the correct sound when scrolling with L
2023-01-07 20:08:21 +01:00
Skirlez 9e668e1673 really fix build errors 2023-01-07 12:09:11 +01:00
Skirlez e1930a0051 hopefully fix build error 2023-01-07 12:09:11 +01:00
Skirlez 8a127eff02 Better scrolling sound implementation, add new 'notice back' sound
The closing info box sound (NOTICE_BACK) plays if you have the regular notice sound on, implemented generally.

audio_driver_mixer_play_menu_sound(i) will now stop sound i before playing it, so when you for example, cancel in rapid succession, it will properly play all canceling sound effects instead of not doing anything if the sound is already playing.

This scrolling implementation is a lot more general than the first one, to the point where RGUI plays all the correct sounds without any special additions. However, the Ozone sidebar scrolling or category switching in XMB or MaterialUI are still handled inside their driver .c files.
This implementation also fixes an issue where if wraparound was disabled the sound would still play if you held on a direction. I've also fixed it manually for XMB category switching, since it's still handled there individually (turns out, Ozone sidebar and MaterialUI categories just don't respect the no wraparound option, so there's no need to implement a fix there as well)
2023-01-07 12:09:11 +01:00
reallibretroadmin adee2dbe72 * Use strlcat instead of strcat
* Silence implicit conversion warnings detected in Xcode
2023-01-07 07:12:25 +01:00
sonninnos 837ae65523 Fix crash when viewing history item information 2023-01-05 21:14:22 +01:00
retroNUC 31addc0a61 Achievement Visibility Submenu - Additional changes
- 'Unlocks/Mastery' split into two options
- 'Account/Login Messages' split off from 'Verbose', gated all login success/error messages
- menu_cbs_sublabel.c - Now in same order as menu options
- menu_setting.c - VISIBILITY_UNLOCK default value now uses define
- All suggested text/cleanup changes from Jamiras
2023-01-05 19:51:55 +01:00
retroNUC 1bf31d84db Include build fix for gcc/mingw 2023-01-05 19:51:55 +01:00
retroNUC 6e81098132 Add Achievements Visibility submenu options
- Startup Summary split off from Verbose Mode, added option to hide for games with zero core cheevos
- Some existing options moved into this submenu
- Leaderboard-related options coming in future PR
2023-01-05 19:51:55 +01:00
Gonzalo Peche 9efc1f500d In Android builds, add input_android_physical_keyboard configuration option and its corresponding menu entry to force a device to act as a physical keyboard.
When running on Android, RetroArch considers most devices that emit dpad events as gamepads, even if they also emit other keyboard events; this is usually the right thing to do, but it has the side effect of not letting some actual keyboards (e.g.: Logitech K480) act as such inside RetroArch. This configuration option allows users to manually select a specific input device to act as a physical keyboard instead of a gamepad, which is handy when emulating computers as opposed to consoles.
2023-01-05 04:50:37 +01:00
Skirlez 48d3cca8b2 move curly brackets that start on the same line as the statement down a line
oops.
2023-01-03 19:34:35 +01:00
Skirlez 710625e0e6 put the if statement that leads to playing the sound inside the HAVE_AUDIOMIXER ifdef in menu_cbs_left and menu_cbs_right 2023-01-03 19:34:35 +01:00
Skirlez ae5612ce91 remove comment which wasn't in the correct format
or needed really
2023-01-03 19:34:35 +01:00
Skirlez aba01c87e3 add scrolling sounds for rgui, xmb, and glui and fix the ozone implementation + hebrew translation for menu sounds submenu
also adds audio_driver_mixer_play_scroll_sound to menu_cbs_left and menu_cbs_right which are (seemingly) responsible for the large scroll on some menus (and also bumper scrolling on glui's playlist menu?).
2023-01-03 19:34:35 +01:00
Skirlez f84093496f implement scrolling sounds for ozone
using roughly the same implementation for the ok/notice/cancel sounds, but i've made an exclusive function for scrolling since it's going to be called a lot more than those sounds
2023-01-03 19:34:35 +01:00
zoltanvb 8b536ec35d
Modify translation completeness labels in order for them to appear in Crowdin. (#14785) 2022-12-31 02:34:45 +01:00
retroNUC d24cdbfb15
Allow repositioning of RetroAchievement notifications (#14777)
* Allow repositioning of achievement notifications

* PS4/ORBIS build fix

Would have thought cheevos-related notification code was wrapped in HAVE_CHEEVOS, but guess not.
2022-12-30 16:55:38 +01:00
sonninnos e0e21b3386
Fix system info autoconf device list (#14783) 2022-12-30 16:53:47 +01:00
sonninnos 0be1aa0420
Add config + input related sublabels (#14781) 2022-12-30 00:48:04 +01:00
zoltanvb 76b3c09ea9
Translation completeness display. (#14779)
Display translation completeness categories in the language selection options.
Generate the progress report for RetroArch menu file instead of all files.
2022-12-29 22:21:23 +01:00
sonninnos 7d81be1d4c
Handle content info label differently (#14776) 2022-12-29 09:16:31 +01:00
sonninnos 2cbb7953d4
Fix visible core info version (#14775) 2022-12-28 03:00:21 +01:00
sonninnos 3092fda58b
Fix menu switch icon correction crash (#14774) 2022-12-27 21:41:49 +01:00
sonninnos 86742b5563
(XMB) Stop showing bogus previous icon on CLI launch (#14773) 2022-12-27 21:41:36 +01:00
sonninnos d5f58fd435
Menu switch icon corrections (#14766) 2022-12-25 18:17:16 +01:00
Thiago Kenji Okada 894c44c5ea
Add more flags to `./configure` (#14756)
* Allow disabling "Update Core Info" from Online Updater

* Add ASSETS_DIR as an alternative to DEFAULT_DIR_ASSETS

* Add FILTERS_DIR configuration option

* Fix other platform_unix.c platforms

* Conditionally use ASSETS_DIR/FILTERS_DIR
2022-12-23 01:28:57 +01:00
libretroadmin e82b75c769 Fix more C89_BUILD issues 2022-12-22 23:10:15 +01:00
LibretroAdmin f836328c56
Append Preset (#14737) (#14757)
WIP version of Append and Prepend preset, Includes UI for Standard Retroarch, but not the QT UI companion

Co-authored-by: HyperspaceMadness <remimcgill@hotmail.com>
2022-12-22 21:36:32 +01:00
sonninnos 05c3c0a552
Automatic Frame Delay improvements (#14754) 2022-12-22 18:58:26 +01:00
zoltanvb 1334bd0408
Localization improvements. (#14753)
- enable localization of audio mixer sublabel
- resolve 2 localization FIXME items
- enable better localization of controller connect/disconnect/config messages
2022-12-22 16:54:14 +01:00
zoltanvb 8de16f3323
Localization improvements. (#14748)
Added translatable labels for recording, streaming, logging, turbo options.
2022-12-20 23:54:49 +01:00
zoltanvb 02ba825c88
Enable localization of video rotation, orientation, aspect ratio options. (#14744) 2022-12-19 21:36:06 +01:00
sonninnos 883e88fa73
Keyboard event blocking corrections (#14728) 2022-12-18 18:36:24 +01:00
sonninnos 16ca87c327
Rename Standalone Cores to Contentless Cores (#14738) 2022-12-16 19:02:24 +01:00
sonninnos 51c92c7e3a
Fix icons in playlist manager (#14735) 2022-12-16 17:59:18 +01:00
zoltanvb e6421f6f8b
Use sublabel as help text if there is no suitable definition. (#14714)
* Use sublabel as help text if there is no suitable definition.

* code style update
2022-12-10 18:06:45 +01:00
sonninnos 5024809c85
Device Index menu refactor (#14691) 2022-12-02 17:47:53 +01:00
sonninnos 8e937ddd6a
MIDI driver cleanups (#14686) 2022-11-29 11:29:39 +01:00
LibretroAdmin c75af6194b
Extended IME and Korean OSK (#14676) 2022-11-29 04:45:55 +01:00
sonninnos 68773becc6
Extend OFF menu value colors (#14685) 2022-11-28 21:14:47 +01:00
sonninnos 02ab636d00
Explore thumbnail fixes (#14682) 2022-11-28 19:01:02 +01:00
libretroadmin 8af051076c Another buildfix - circular dependencies can tend to be a drag 2022-11-27 23:14:30 +01:00
libretroadmin d26c1b7ca8 Buildfixes 2022-11-27 23:10:46 +01:00
libretroadmin cc37b7037f Move enum screensavers to menu_defines.h 2022-11-27 23:08:14 +01:00
libretroadmin 019ebce8c7 (RGUI) Buildfix 2022-11-27 23:00:43 +01:00
libretroadmin 694b84937f (RGUI) Properly namespace some functions 2022-11-27 22:25:58 +01:00
libretroadmin f90ea7b065 Get rid of unused variable 2022-11-27 22:16:23 +01:00
LibretroAdmin fcd4dce445
Use only macros from now on in config.def.h (#14681) 2022-11-27 22:15:59 +01:00
sonninnos 7873378a98
Turn menu related config defaults from bools to defines (#14680) 2022-11-27 21:01:53 +01:00
libretroadmin 77f509ab3c (MaterialUI) Fix home screen on first startup - no more stray entries 2022-11-27 20:23:59 +01:00
sonninnos d03b77d4cf
Menu icon improvements (#14679) 2022-11-27 19:19:55 +01:00
libretroadmin 8ed246be86 (sinc resampler) Silence warning
(MaterialUI) Style nits
2022-11-23 18:03:44 +01:00
sonninnos 9297ff44b7
(Ozone+XMB) Fix overlays behind menu without core running (#14663) 2022-11-23 16:48:58 +01:00
libretroadmin 736a3034bb (materialUI) Silence signedness warnings 2022-11-23 05:20:17 +01:00
libretroadmin aa0ae2cd3e Silence warnings 2022-11-22 18:34:04 +01:00
neil4 3b0db75782
Overlay cleanups; replace bools with flags (#14661) 2022-11-22 18:29:11 +01:00
libretroadmin 92e0403aeb general_push - add exception to populating setting 2022-11-22 17:44:34 +01:00
libretroadmin dd2d9d2f22 Simplify general_push 2022-11-22 17:40:21 +01:00
sonninnos e0e6810cf0
Allow toggling info off with the same button (#14660) 2022-11-22 17:23:19 +01:00
sonninnos 9bc7bebf51
More hotkey cleanups (#14657) 2022-11-22 14:45:30 +01:00
libretroadmin e3f5d32401 general_push - simplifications 2022-11-21 23:11:34 +01:00
libretroadmin 1c9d3ad0bf Silence some warnings 2022-11-21 20:56:28 +01:00
libretroadmin 6b71214ed7 Silence some signed/unsigned mismatch warnings 2022-11-21 19:34:43 +01:00
libretroadmin 59cce09186 Menu cleanups:
* Some control flow improvements in callback functions, less return
paths
* Remove menu_cbs_exit(), which was a stub function that always returned
-1
2022-11-20 18:55:07 +01:00
sonninnos e52b633e5a
Allow menu wallpaper/background reset (#14650) 2022-11-20 18:12:18 +01:00
sonninnos 7275b82614
System Information cleanups (#14647) 2022-11-20 13:39:02 +01:00
sonninnos 3377fd55ab
Driver + hotkey list reorder (#14646)
* Reorder driver menu and lists

* Reorder hotkey list
2022-11-20 07:26:34 +01:00
Richard c0926ad1a1
feat(iOS13): Pointer Movement Accuracy (#14641)
Co-authored-by: Richard <rf2222222@github.com>
2022-11-18 19:45:36 +01:00
libretroadmin a50f9bae85 Turn scroll.mode into enum 2022-11-17 19:44:42 +01:00
libretroadmin 5402b781fe (menu_cbs_ok.c) Cleanups 2022-11-17 19:08:21 +01:00
sonninnos 706d79f535
Consistent left-right scrolling for Quick Menu items (#14631) 2022-11-16 10:37:26 +01:00
sonninnos b080b39d2b
Remove useless sublabel from System Information (#14632) 2022-11-16 10:36:54 +01:00
sonninnos 3e8ff57e2c
(Ozone) Show metadata helper in footer only with second thumbnail (#14630) 2022-11-16 00:20:36 +01:00
sonninnos 3b921ffbfa
Fix shader toggle and add hotkey + sublabel (#14628) 2022-11-15 22:14:09 +01:00
sonninnos cd2392c559
(XMB) Improve background image selector (#14623) 2022-11-14 11:48:40 +01:00
Jamiras e46e03094f
upgrade to rcheevos 10.5 (#14622) 2022-11-13 23:24:42 +01:00
Ryunam 49b973ac89
(Ozone+XMB) Add option to customize cursor memory (#14605) 2022-11-10 15:46:44 +01:00
Ryunam eb5b4197f8
(Ozone+XMB) Further extend texture support for Core Option categories (#14607) 2022-11-10 09:27:49 +01:00
sonninnos 68401205f2
Add option for pause on controller disconnect (#14601) 2022-11-08 12:46:09 +01:00
sonninnos da6e560e72
(Ozone) Fixes, nits and cleanups (#14598) 2022-11-07 05:48:32 +01:00
Michael Burgardt b89692c532
Add Hungarian language option (#14585) 2022-11-04 19:52:39 +01:00
LibretroAdmin 0ffdf0790c (Ozone) Turn more booleans into flags 2022-11-02 03:19:31 +01:00
LibretroAdmin 01649d7955 (Ozone) Turn more booleans into flags 2022-11-02 01:45:43 +01:00
sonninnos 1c7855acc8
Add option for swapping menu scrolling buttons (#14577) 2022-11-01 19:48:28 +01:00
LibretroAdmin e4e776abf7 (Ozone) Partial conversion of booleans to flags 2022-11-01 08:27:10 +01:00
LibretroAdmin bfd9419d6a (MaterialUI) Turn booleans into flags 2022-11-01 06:51:53 +01:00
LibretroAdmin ea4b815117 (RGUI) Turn booleans into flags 2022-11-01 05:33:58 +01:00
LibretroAdmin 250a0b9542 Implicitly use floats in float arrays 2022-10-30 20:16:16 +01:00
neil4 2de52baf74
Overlays: Add eightway area types (#14565)
- New descriptors: 'dpad_area' and 'abxy_area'
- Each has a diagonal sensitivity setting, 100% being 8-way symmetry
- Buttons can be redefined in the cfg file

E.g. This would create a d-pad area, then redefine it to use analog directions:
overlay0_desc0 = "dpad_area,0.85,0.57,rect,0.166228,0.295516"
overlay0_desc0_up = "r_y_minus"
overlay0_desc0_down = "r_y_plus"
overlay0_desc0_left = "r_x_minus"
overlay0_desc0_right = "r_x_plus"
2022-10-30 06:31:27 +01:00
sonninnos 194be57da1
(XMB) Add truncate playlist name option (#14553) 2022-10-27 05:42:46 +02:00
LibretroAdmin d0b3c1742d (Video) use flags for FBO passes, GL2 renderchain, etc 2022-10-26 21:21:21 +02:00
LibretroAdmin 94a3eba9ef Turn checked into flag for menu_entry_t 2022-10-26 00:28:57 +02:00
LibretroAdmin 0d16eb6e10 (Menu) menu_entries - get rid of boolean variables and
turn them into flags
2022-10-25 17:22:35 +02:00
LibretroAdmin d30f16dc79 Remove cursor directory/cursor manager list - Views obsoleted
this
2022-10-25 15:21:47 +02:00
LibretroAdmin 11c96ce2d3 (MaterialUI)
* Remove unused variables
* Turn loop counter variable into int
2022-10-24 16:49:01 +02:00
LibretroAdmin 3c7e4b032e (Menu drivers) Remove warnings about missing assets 2022-10-24 16:45:17 +02:00
reallibretroadmin f389c08109 (Menu) Remove unused variables 2022-10-24 16:41:37 +02:00
Dyllan Kobal 55ce774527 Fixed the way devices were previously indexed 2022-10-19 18:52:21 +02:00
sonninnos 6c0be28b98
(Ozone) Footer improvements (#14534) 2022-10-19 03:32:21 +02:00
LibretroAdmin 07ae7ff7f1 Turn more static const variables in config.def.h into define macros 2022-10-18 13:39:21 +02:00
LibretroAdmin 57d5b8749e (Android) Enable 'Vibrate On Key Press' by default
(config.def.h) Turn some const variables into define macros
2022-10-18 12:13:47 +02:00
sonninnos 0597aa6939
Thumbnail fullscreen toggle behavior correction (#14527) 2022-10-18 10:05:01 +02:00
LibretroAdmin 320886f9fa Fix some function declarations 2022-10-17 19:56:32 +02:00
reallibretroadmin c594abb10d Cleanups; fixes of warnings 2022-10-17 19:29:33 +02:00
sonninnos 0cebebbfdc
(Ozone) Remember selection per main tabs (#14526) 2022-10-17 16:04:54 +02:00
sonninnos feea90d877
(XMB) Vertical Fade fix (#14525) 2022-10-17 00:06:14 +02:00
sonninnos ababfcc0c8
(XMB) Playlist entry index fixes (#14523) 2022-10-16 23:46:27 +02:00
sonninnos 3c61126578
(XMB) Remember selection per main tabs (#14519) 2022-10-16 18:15:50 +02:00
neil4 b98c53ddb7
Improve haptic feedback for input overlays (#14517)
Repurpose vibrate_on_keypress to enable device's standard keypress feedback on overlay key/button state changes

- Add keypress_vibrate function ptr to input_driver_t (only implemented on Android for now)
- (Android) Remove APP_CMD_VIBRATE_KEYPRESS
- (Android) Add doHapticFeedback, called directly to avoid latency
2022-10-16 09:58:09 +02:00
Michael Burgardt 254ac65549
Add British English language option (#14504) 2022-10-12 23:26:00 +02:00
LibretroAdmin 41de5ec80b Cleanups for runloop_state grabbing 2022-10-10 20:32:46 +02:00
LibretroAdmin d100e73780 Use more runloop flags 2022-10-10 08:59:27 +02:00
Bernhard Schelling c9bbe7683f
Add View feature (#14467)
* Add View feature
Add saving of a filter set in the Explore menu into a so called "View" file which then gets listed alongside playlists.
This also adds the ability to filter a category by range in the Explore menu and not just filter on exact matches.

* Menu improvements for explore and views

* Collapse ozone sidebar in view

* Fix problems with the sidebar in explore/view

* Ignore view files in the Qt playlists menu

* Add missing semicolon

* Support downloading thumbnails in views
2022-10-10 06:36:02 +02:00
LibretroAdmin d506210fbe
(menu_driver.c) Use flags instead of bools (#14500)
* (menu_driver.c) Use flags instead of bools
2022-10-08 22:52:18 +02:00
LibretroAdmin fcbd72dbf3
Use flags pt4 (#14497)
* * Use flags for rarch_state
* Get rid of ^M linebreaks in retroarch_types.h

* Buildfixes for consoles

* (audio driver) use flags instead of bools

* (video) Use flags instead of bools

* Rewrite input driver state bools into flags
2022-10-08 10:39:15 +02:00
LibretroAdmin 91119d038f
(gfx_display/gfx_animation) Use flags instead of bools (#14488)
* (gfx_display/gfx_animation) Use flags instead of bools
* (task_save) Use flags instead of bools
2022-10-07 00:10:32 +02:00
LibretroAdmin f8a9b0a197 Combine bit setting 2022-10-05 20:42:30 +02:00
LibretroAdmin d0c6dfee0b Cleanup bitmask setting 2022-10-05 18:43:58 +02:00
LibretroAdmin b2521c53ae Filebrowser - fix regression #14425 2022-10-05 17:31:21 +02:00
LibretroAdmin 7d956b611c rarch_setting - we can downgrade flags and free_flags to 32bit
since the flags don't come anywhere near close to 64 unique flags
2022-10-05 04:34:47 +02:00
LibretroAdmin ffa1ae4143 setting_list.c - implement cmd_trigger_event_triggered as flag 2022-10-05 04:23:02 +02:00
LibretroAdmin ab1f21ef78 (Ozone/MaterialUI) sublabel lines will not ever go beyond uint8_t
max value, so change variable types from 32bit to 8bit
2022-10-04 23:58:04 +02:00
LibretroAdmin fa40754585 (MIST/STEAM/STEAMDECK) Don't expose Black Frame Insertion if we are
running RetroArch on a Steam Deck
2022-10-04 22:59:57 +02:00
LibretroAdmin 185e1af39b (MaterialUI) Prevent pointless self-assignment with tertiary operators 2022-10-03 21:41:39 +02:00
LibretroAdmin 2429c472b6 Buildfix for previous commit 2022-10-03 19:18:52 +02:00
LibretroAdmin e5897caa8f Cut down on menu_displaylist_info_t size - use flags instead of all
these boolean members
2022-10-03 18:13:32 +02:00
LibretroAdmin 8c49eed56c rarch_setting - remove dont_use_enum_idx_representation value -
set it as a flag instead
2022-10-03 15:42:36 +02:00
LibretroAdmin 0a8ff5d15d (menu_setting) enforce_minrange and enforce_maxrange become flags,
and make remainder of minrange/maxrange local variables of type
float
2022-10-03 02:28:12 +02:00
LibretroAdmin 13cc6b7f46 Use float values now that setting min/max are float instead of double 2022-10-03 01:53:58 +02:00
reallibretroadmin 0033224c25 Fix some implicit conversion signedness warnings 2022-10-02 03:22:34 +02:00
sonninnos 25f5d9ae2a
Fix DEFAULT_FILL_TITLE_MACRO (#14456) 2022-10-01 23:51:25 +02:00
sonninnos e902df3b0d
(XMB) Add options for hiding header and horizontal title margin (#14439) 2022-09-26 12:57:20 +02:00
Bobby Smith cd93bdc058
Fix "Windowed Scale" dropdown menu (#14433) 2022-09-22 12:58:56 +02:00
sonninnos b014a9ef98
Move PLAYLIST_SHOW_HISTORY_ICONS upwards (#14427) 2022-09-18 01:15:33 +02:00
sonninnos 8842603165
Online Updater menu reorganizing (#14414) 2022-09-15 09:24:35 +02:00
LibretroAdmin ce8389d4a6 (menu_setting.c) Remove code duplicated functions 2022-09-13 11:06:37 +02:00
LibretroAdmin 045fd38f19 Reduce tertiary operators 2022-09-13 10:28:03 +02:00
tr12345 8cc866b051
New Menu Items for disabling Info & Search buttons in the menu (#14259)
* New Menu Items Disable Info & Search

Add menu options for disabling Info and   Search buttons

* Update msg_hash_us.h

Update Sublabels

* Update menu_setting.c

Set Advanced flag for new settings
2022-09-12 23:17:24 +02:00
LibretroAdmin 36d60f6bf4 (Ozone/MaterialUI/RGUI/XMB) Get rid of some tertiary operators - was basically reassigning the same
value
2022-09-12 22:20:03 +02:00
LibretroAdmin da094eeb2f Remove unused XMB_DEBUG 2022-09-11 19:53:44 +02:00
LibretroAdmin 98ee07eaa0 (MaterialUI) Silence warning 2022-09-06 01:57:08 +02:00
Jamiras 43f5812a18
show achievement badge icons in glui driver (#14390) 2022-09-06 01:53:22 +02:00
sonninnos 87457eb678
Hide 'Notification Visibility' when notifications are disabled (#14386) 2022-09-05 19:11:39 +02:00
LibretroAdmin 84868ab21f (Setting) Windowed scale should be an integer instead of float 2022-09-05 04:03:04 +02:00
sonninnos c4c55077a1
Allow On-Demand Thumbnails in Explore menu (#14385) 2022-09-05 00:01:38 +02:00
LibretroAdmin 1e035b9385 (file_list) Get rid of superfluous small functions 2022-09-04 17:52:06 +02:00
LibretroAdmin dfb4b603e4 Get rid of superfluous wrapper function file_list_get_at_offset 2022-09-04 07:30:21 +02:00
LibretroAdmin 1a24bfe60c (file_list) Get rid of useless wrapper functions 2022-09-04 05:39:16 +02:00
LibretroAdmin 866ce4c50d (Menu drivers) Get rid of verbosity.h include 2022-09-04 04:58:22 +02:00
LibretroAdmin 0ffdd14940 Change msg_len of font driver to size_t - avoids all the type
casting/conversion
2022-09-02 01:10:28 +02:00
LibretroAdmin 6f84af2efa * Simplify menu_entries_get_title
* Add TODO/FIXME - localize strings to hardcoded strings
* Some more simplifications in for loops
2022-09-01 15:42:25 +02:00
LibretroAdmin 003cea5d42 Fix some 'implicit conversion loses precision' warnings 2022-09-01 15:15:48 +02:00
LibretroAdmin 793370aa97
Reduce snprintf (#14371)
* Don't do snprintf calls in loops that can be done once outside
* Try to prevent some msg_hash_to_str calls in loops
* Add FIXME/TODO localize notes to hardcoded strings
* Reduce some snprintf calls by moving them out of if/else blocks
* Simplify early return path for one function
2022-09-01 14:54:07 +02:00
LibretroAdmin 60030e373e
Reduce snprintfs + assorted cleanups (#14369)
* Reduce snprintf and/or use them only for concatenating the
string formatting of numbers/values
* Reduce snprintfs
* Use snprintf for concatenation at parts
* * We don't need to NULL-terminate strings that get passed to strlcpy/strlcat
and friends
* Use snprintf for concatenation in certain instances
* Do away with some string intermediary copies where we can avoid it
* Fix warning unused variable
* * Reduce snprintf calls
* Rewrite snprintf calls into strlcpy where possible
* Use snprintf for concatenation when necessary
* Do away with some string intermediary copies in task_translation.c
* run_translation_service - make switch slightly smaller
2022-09-01 04:17:07 +02:00
sonninnos 9b60e6c993 Menu paging navigation adjustments 2022-08-31 21:34:47 +03:00
sonninnos a96c5f77c8
(Ozone/XMB/RGUI) Explore menu thumbnails (#14365) 2022-08-31 14:42:10 +02:00
LibretroAdmin ef0e9ccc38 (MaterialUI/RGUI/XMB) Less snprintf calls
(menu_displaylist.c) Do away with one less strlen by using
the return value of snprintf here instead
2022-08-29 14:38:26 +02:00
LibretroAdmin 8b3e5b66bc Silence warning 2022-08-27 18:18:43 +02:00
LibretroAdmin 86c22742b3 (libnx/lakka switch) Another buildfix 2022-08-27 18:13:53 +02:00
LibretroAdmin ee672bf785 Buildfixes for libnx/lakka switch 2022-08-27 17:56:10 +02:00
LibretroAdmin b4f0b2827f Remove another unused variable warning 2022-08-27 17:53:43 +02:00
LibretroAdmin fabccce437 Silence some unused variable warnings 2022-08-27 17:52:19 +02:00
LibretroAdmin f1ff92c881 * menu_entries_append and menu_entries_append_enum are now combined into
one - if you set the last parameter to a valid 'rarch_setting_t' pointer
and enum_msg to MSG_UNKNOWN, you will get the previous menu_entries_append
behavior
* Renamed remaining function to menu_entries_append so that we have one
consistent way of adding menu entries instead of two
Reduces some code duplication significantly
2022-08-27 17:40:52 +02:00
LibretroAdmin 25b76fdb54 input_keyboard_osk_event_append and others: don't call strlen
implicitly, always leave it up to caller
font_driver_get_message_width - try to avoid scenario where 'len'
is 0
2022-08-27 15:13:56 +02:00
LibretroAdmin 19c72a413f (gfx_thumbnail_path.c) Cache localized string
(menu_displaylist.c) Some optimizations:
* Make sure val_d is never bigger than 16, it should just
contain a number. 16 is more than plenty (and probably too big even)
* Hose val_d out of loops if its value never changes inside the loop
* Attempt to avoid calling msg_hash_to_str inside loops unnecessarily
2022-08-27 13:20:29 +02:00
LibretroAdmin b200ab6f8f Simplify code, and no longer have to deal with GCC suppression of warnings 2022-08-27 09:07:55 +02:00
LibretroAdmin 388183d971 (menu_displaylist)
* Don't attempt to call msg_hash_to_str in a loop, cache it once outside
inside a local variable
* Do away with some spurious snprintf usage for RGUI (truncation does not matter
as pointed out by jdgleaver, so we needn't be concerned)
2022-08-27 09:02:43 +02:00
LibretroAdmin 61e24132bf (task_save.c) Simplification in control flow
(snprintf) Try to reduce or simplify snprintf calls, only tend to
use it for processing integers/numbers and avoid it for regular
string concatenation (NOTE: we try to be a bit safer about it to
address earlier cited criticism, although we don't consider concatenating
3 or 4 characters at the end to be insecure)
(msg_hash_to_str) Try to avoid duplicate calls to the same localized
string when we can just cache the results once instead locally
2022-08-27 07:55:02 +02:00
LibretroAdmin c3a1c578b6 Prefer to use string_starts_with_size/string_ends_with_size (less strlen
calls)
2022-08-26 17:27:55 +02:00
sonninnos 1f048dd358
(XMB+Ozone) Core option category icon refinements (#14354) 2022-08-26 16:11:36 +02:00
sonninnos de67f174bf
(XMB) Fix icons in 'Load Content' Favorites (#14353) 2022-08-26 08:35:12 +02:00
LibretroAdmin 9535c5c0ad Optimize menu_displaylist_parse_core_options_dropdown_list:
* Hose val_d snprintf outside of loop
* Make it smaller
2022-08-26 00:02:04 +02:00
LibretroAdmin d67cb22c7f (menu_setting.c) Replace trivial usage of snprintf with strlcpy (where it only printed a
string and nothing else, or similar simple usage)
2022-08-25 19:56:44 +02:00
LibretroAdmin 625e63c3cc Simplify DEFAULT_FILL_TITLE_MACRO 2022-08-25 16:42:46 +02:00
LibretroAdmin 575e331fd1 If we already know the length of the string, use strldup instead.
Avoids the internal strlen call inside strdup, and strdup is a deprecated
function starting from MSVC2005 anyways.

NOTE: Do NOT pass STRLEN_CONST as n parameter to strldup, it needs to
be at least +1 character higher than the strlen return value of the same
string
2022-08-25 16:31:54 +02:00
LibretroAdmin 15fe258c1b Reduce snprintf calls 2022-08-25 13:03:08 +02:00
sonninnos 8fd0961c9a
Show playlist entry as 'Quick Menu' header title (#14350) 2022-08-25 04:41:14 +02:00
LibretroAdmin 72cc98e9bd Remove unused variables 2022-08-24 17:42:01 +02:00
LibretroAdmin 2bc723bb4b (Menu) Move duplicate code is_running_quickmenu to menu_driver.c 2022-08-24 13:28:53 +02:00
LibretroAdmin a147cb09d9 Get rid of duplicate code - move function to menu_driver.c and have
both XMB and Ozone use it
2022-08-24 13:14:55 +02:00
sonninnos 5f7d14966c
(Ozone+XMB) Fullscreen thumbnail browsing (#14342) 2022-08-24 12:35:54 +02:00
LibretroAdmin e769436876 (word wrap functions in stdstring.c) Avoid implicit strlens, caller
should pass the 'length' to the function instead
2022-08-23 17:06:01 +02:00
LibretroAdmin 6f738d4fbd Gradually get rid of strcpy_literal
Reasons:
1 - Just a macro for strcpy
1.2 - doesn't have a return type unlike strlcpy, can't be used
for string concatenation
1.3 - unsafe compared to strlcpy

Do either manual string assignment per character or strlcpy, no
inbetween by resorting to strcpy
2022-08-23 15:04:47 +02:00
Cthulhu-throwaway 1a1db6177d
(Netplay) Fix lobby sublabel CRC display on some platforms (#14338) 2022-08-22 23:05:13 +02:00
sonninnos c818024bc6
(RGUI) Savestate thumbnails (#14326) 2022-08-18 02:12:50 +02:00
MrHuu 46bafd6e46
(3DS) Add bottom menu options (#14323) 2022-08-17 08:23:07 +02:00
Cthulhu-throwaway c180560165
(Netplay) Improve check frames menu entry (#14320) 2022-08-13 22:28:43 +02:00
Cthulhu-throwaway 908667d97a
(Netplay) Removal of older unused code (#14312) 2022-08-11 23:17:33 +02:00
LibretroAdmin a6e210e9db Get rid of some strlcats 2022-08-08 22:41:32 +02:00
Cthulhu-throwaway c030e1c5dc
(Netplay) Support for customizing chat colors (#14305) 2022-08-08 20:09:06 +02:00
LibretroAdmin a9157f975e
String cleanups (#14304)
(retroarch.c) retroarch_get_capabilities - get rid of strlcat
party in RARCH_CAPABILITIES_CPU, do simple manual assignment for
concatenation instead and NULL terminate at the end
(menu_displaylist.c) Do something about some of the unnecessarily huge
local strings of PATH_MAX_LENGTH size (can be as large as 8192)
(menu_displaylist.c) Replace some trivial strlcats / snprintfs
(D3D10/D3D11/D3D12) Strings don't need to be initialized -
strlcpy already null-terminates - get rid of some constants
2022-08-08 19:11:15 +02:00
LibretroAdmin 0edbe945b4 (MaterialUI/XMB) Optimize refreshing of playlists 2022-08-06 20:32:19 +02:00
LibretroAdmin 1b43e60c7c (Ozone) Use less path_remove_extension and work more with return values
from file_path.c functions
(menu_cbs_title) Small optimization to string concatenation
2022-08-06 19:51:00 +02:00
LibretroAdmin c7786a45e1 Create path_get_extension_mutable and use it in menu_explore function
for trivial extension replacement in string
2022-08-06 19:06:31 +02:00
LibretroAdmin 94ed25be56
Cleanups (#14296)
- (database_info.c) Optimizations for database_info_build_query_enum() -
 it would call strlcat at the very least 3 times, normally more than that.
 Every strlcat call is at least one or more strlens. Reduce it all down
 to manual string concatenation and one strlcat
- (database_info_build_query_enum) - always NULL terminates string so no need for NULL termination done by callee
* (menu_displaylist) use smaller strings for basename paths, remove one unnecessary string
in menu_displaylist.c function
- (disk_index_file.c) Avoid another trivial string concatenation by doing
it manually after fill_pathname_join_special
- (fill_pathname_join_delim) since fill_pathname_join_delim() now has a return value, use it for 
string concatenation
- (platform_unix) - Use BUFSIZ as size for a buffer in system_property_get
- some other trivial strlcat usage replacements
2022-08-06 18:04:40 +02:00
LibretroAdmin 5739c537a2 Some CXX_BUILD fixes 2022-08-05 17:40:06 +02:00
TheRhysWyrill 9d939a35d6
Add Daite XMB Icon Theme (#14263) 2022-08-05 04:27:34 +02:00
LibretroAdmin 67c23aec0e (Wayland) Stub out unused variables for now
(menu_contentless_cores) Fix mistake - needed to set len to return
value of fill_pathname_join_special
(configuration.c) Fix some unused variable warnings on Linux
2022-08-04 16:19:50 +02:00
LibretroAdmin 6ad88b080e Turn these two fill_pathname_join_delim() calls into plain strlcat() 2022-08-04 15:15:27 +02:00
LibretroAdmin b2634ea588 * Create fill_pathname_join_special - and specify fill_pathname_join
as deprecated.
* Use fill_pathname_join_special in the vast majority of cases where
we can ensure out_path is a new empty string
* Get rid of some extension concatenation with strlcat where encountered
* Some general cleanups with NULL termination of strings that get immediately
passed to strlcpy/strlcpy-adjacent functions
2022-08-04 14:19:38 +02:00
LibretroAdmin 88bc26da4e Replace some more trivial strlcat calls 2022-08-04 04:05:27 +02:00
LibretroAdmin e7f3432e48 Replace some trivial strlcat usage - use return value of preceding
strlcpy then simply append the extension to it at this location
2022-08-04 03:45:09 +02:00
LibretroAdmin 02df727cb2 Avoid strtof() since it's C99/POSIX. Go for strtod followed by float
cast since it should be almost identical
2022-08-03 14:07:32 +02:00
LibretroAdmin 6dd52d9bb1 Get rid of more boilerplate code in file_path_special.c 2022-08-02 18:05:51 +02:00
LibretroAdmin 556e6702ef Start downscaling on file_path_special.c 2022-08-02 17:54:38 +02:00
LibretroAdmin 70ca20fbf9 (MaterialUI) Fix earlier mistakes made (cd04f770b9) -
we need two separate icon paths cached - one for MaterialUI and one for Ozone (the system
icons)x
2022-08-02 17:25:52 +02:00
Cthulhu-throwaway 8105688a99
(Netplay) Show client slowdown information (#14272) 2022-08-02 13:31:55 +02:00
Cthulhu-throwaway 20c4407928
Add HAVE_IFINFO macro (#14265) 2022-08-01 07:51:02 +02:00
LibretroAdmin f472e4d0de (gfx_widgets) Call fill_pathname_application_special outside of hot functions
(gfx widgets) Pre-assemble and store paths that are not subject to change
2022-08-01 02:07:36 +02:00
LibretroAdmin cd04f770b9 (MaterialUI) Don't keep assembling MaterialUI icons path - store it once
in materialui_init
2022-08-01 01:17:39 +02:00
LibretroAdmin e9a6252fc7 (Ozone) Some simplifications - less string concatenation 2022-08-01 01:06:38 +02:00
LibretroAdmin 83a2ec1da8 (Ozone/XMB) Move some fill_pathname_join operations out of the loops since
the output string is not subject to change during iterations
2022-08-01 00:49:33 +02:00
GABO1423 3d69321c70
(msg_hash_us.h) Small touch up (#14246)
* Update msg_hash_us.h

* Update menu_displaylist.c

* Update msg_hash_us.h

* Update menu_displaylist.c
2022-07-29 17:41:26 +02:00
sonninnos 349ef1add2
(XMB) Dynamic wallpaper fixes: (#14247)
- 'Load Content' playlists
- Period in the playlist name
2022-07-29 17:40:11 +02:00
sonninnos 0c4bf5f2e3
(Ozone) Fix playlist thumbnail mouse hover after returning from QM (#14244) 2022-07-29 15:01:44 +02:00
LibretroAdmin 22bef5dc6b (Ozone) Remove unused arrays 2022-07-29 13:07:16 +02:00
LibretroAdmin 592f9384b0 Silence code analysis warnings by Xcode - unused variables - nothing
done with value set - etc
2022-07-29 08:29:43 +02:00
sonninnos 052cdce29b
(Ozone+XMB) Add playlist icons under 'Load Content' (#14243) 2022-07-29 07:12:01 +02:00
sonninnos 6c38efb0ee
Prevent playlist thumbnail cycle from showing duplicate images (#14238) 2022-07-28 23:55:47 +02:00
sonninnos 6c1de85add
(Ozone+XMB) Thumbnail fixes (#14210) 2022-07-28 19:21:59 +02:00
LibretroAdmin ba752b6364 Fix regression #14229 - NULL termination for strings still necessary
when passed to string_list_join_concat
2022-07-27 15:15:33 +02:00
Cthulhu-throwaway 29f0ba2e71
(Network/Vita) Add net_ifinfo support (#14225) 2022-07-26 16:10:23 +01:00
libretroadmin eb4440fafa Fix previous mistake in menu_action_sublabel_contentless_core 2022-07-26 13:45:41 +02:00
libretroadmin 88c2ae9ddf No null termination for strings passed to strlcpy/srlcat 2022-07-26 13:23:28 +02:00
Cthulhu-throwaway 8d4a64ab96
(Netplay) Disallow netplay start when content is not loaded for static core platforms (#14220) 2022-07-26 07:21:57 +02:00
libretroadmin a6a4b845a4 Some string simplifications - don't NULL terminate if we pass
string to strlcpy and/or a file_path function using strlcpy under
the hood - don't do strlcpy for trivial setting of 2/3 char strings
2022-07-25 04:39:08 +02:00
TheRhysWyrill 54d0d84696
Fixed Purple Rain Theme (#14214)
* Add Purple Rain Theme
2022-07-25 00:44:31 +02:00
TheRhysWyrill 522d1ed16d
Add Purple Rain Theme (#14212)
* Add Purple Rain Theme

* Revert "Add Purple Rain Theme"

This reverts commit ceb896785b.

* Add Purple Rain Theme
2022-07-24 21:26:16 +02:00
libretroadmin 5c98caa7fd Don't NULL-terminate string if we pass it to strlcpy and/or a
file_path function that calls strlcpy under the hood
2022-07-24 06:22:35 +02:00
libretroadmin 34a18f64e8 Don't do NULL termination on string when we pass the string to
strlcpy and/or a file_path function that does strlcpy under the hood
2022-07-23 10:46:05 +02:00
libretroadmin d2aeba0a92 Cleanup - remove NULL-termination since we pass fullname now to
strlcpy always at first
2022-07-22 02:25:49 +02:00
libretroadmin 6cfcd749e4 (menu_driver.c)
* Fix issue 14190
* Simplify code by removing unneeded code
2022-07-22 02:13:18 +02:00
sonninnos 1f244aac01
(Ozone+XMB) Thumbnail improvements (#14188) 2022-07-21 15:25:12 +02:00
libretroadmin 4b5c7856e6 Remove some more explicit NULL-termination when we're calling a
string function that calls strlcpy under the hood
2022-07-19 20:43:12 +02:00
LibretroAdmin 29774f5b7a
Small opts (#14186)
* (joypad_connection) Small optimizations -
* Turn functions static where possible
* Hose strlen call out of loop

* (input_driver.c) General cleanups:
* Some small code/style nits

task_screenshot.c:
* Move widget callback function for screenshots to task_screenshot.c

(file_path.c):
* Turn get_pathname_num_slashes into static function
* path_linked_list_free - always returns true, so get rid of return value
* path_linked_list_new - fix function signature
* path_get_archive_delim - do not NULL-terminate string, already done by strlcpy later on

General:
* Slight optimizations - use int/size_t for loop counter variable instead of unsigned
* Take advantage of fact that strlcpy already NULL-terminates, so don't do this explicitly
outside if we're just going to end up calling strlcpy/fill_pathname_join on it anyway
2022-07-19 10:01:33 +02:00
LibretroAdmin 87240556ea
Should fix Android strtol regression (when converting from sscanf) (#14183) 2022-07-18 04:38:52 +02:00
libretroadmin fbd765f167 Change menu_setting.c back 2022-07-18 03:11:38 +02:00
libretroadmin de6c077e4d (menu_cbs_get_value.c) Small nits 2022-07-17 19:23:46 +02:00
libretroadmin 66ea402de8 We already check if descriptor is empty beforehand 2022-07-17 19:15:37 +02:00
libretroadmin a39532f19d (menu_cbs_get_value) Try to prevent assignments to string buffer if not needed 2022-07-17 18:59:21 +02:00
libretroadmin 08cccc811c Some slight optimizations of menu callback functions - better variable
scoping
2022-07-17 18:09:28 +02:00
libretroadmin c3483654c9 Revert back to sscanf for versions of MSVC prior to MSVC2013 - prior
to MSVC2013, MSVC did not yet support strtof
2022-07-17 17:37:22 +02:00
libretroadmin 3ebfcbc7c7 setting_set_with_string_representation - avoid sscanf for trivial
operations when we can use strtol/strtoul/strtof
2022-07-17 09:46:27 +02:00
libretroadmin e4b33fd0e6 (formats/json/rjson.c) Get rid of some implicit strlens and pass
size parameter to the functions instead˜
2022-07-17 06:58:22 +02:00
libretroadmin b56b447f08 Fix these two memory errors that popped up with ASAN -
* Argument base for qsort cannot be NULL
* When system_count is 0 or less, early return out of explore_load_icons
2022-07-15 19:16:21 +02:00
libretroadmin 4b1766cf61 Silence more -Wdocumentation warnings 2022-07-15 01:12:04 +02:00
Cthulhu-throwaway f5d46681c2
(UWP) Enable core downloader/updater (#14173) 2022-07-14 15:21:49 +02:00
libretroadmin c4fb055fdb Cleanups:
* Combine early return and assignment lines
* use path_basename_nocompression when possible
* Move variables to proper scope
2022-07-12 20:44:00 +02:00
libretroadmin f7194e167f use path_basename_nocompression where it is safe to do so 2022-07-12 19:14:12 +02:00
libretroadmin 69ddf03c91 Remove unused return variables 2022-07-12 18:00:33 +02:00
libretroadmin 83655420f6 file_list_prepend just a thin wrapper around file_list_insert - get
rid of it and just pass 0 as the last argument instead
2022-07-12 16:56:44 +02:00