Commit Graph

12893 Commits

Author SHA1 Message Date
pstef e523a6c0be Relocate Switch CPU profile definitions
Move SWITCH_CPU_* array definitions from header to platform_switch.c.
Use extern declarations in the header. Add NULL/0 terminators to the
arrays and update size calculation and loops to use the terminators
where the number of elements can't be calculated.

The motivation for this change is to remove code duplication and silence
warnings about unused arrays in translation units that only used a
subset of them.
2025-04-08 17:12:03 +00:00
zoltanvb 000c5dcd76 Enable core options reset before starting a core.
Add "Reset core options" menu to two more places:
- Manage Cores, where it can delete the options for the selected core
- Configuration, where it can delete the options for the loaded core

Current reset function is updated to delete the core options file if
reset is wanted for a specific core, or core was loaded but not yet
started. Meant as a recovery method for possibly fatal core option
changes.
2025-04-06 21:53:01 +02:00
pstef 70aaa0a55c Fix non-griffin build for 3DS and make it the default
While here:
* remove input_overlay and task_overlay from linking blacklist
* move -Werror to CC invocation since C++ refuses to use it
* copy the quiet build mode from the main Makefile and make it the
  default
* temporarily define DEPRECATED for gpu_old.h to allow succesful build
* replace the call to command_event() with one to retroarch_main_quit()
  in a failure case
* add missing uncompr.o in Makefile.common for HAVE_BUILTINZLIB
2025-04-06 18:35:41 +00:00
pstef 9c4efa9af0 Restore cheevos_badges_enable for HAVE_GFX_WIDGETS builds
This change reduces stuttering when starting a game with
retroachievements enabled. I assume the stuttering is just postponed
until the badges are downloaded on demand, but it lets users pick their
poison.

This change helps but doesn't fix
https://github.com/libretro/RetroArch/issues/16470
https://github.com/libretro/RetroArch/issues/17027
https://github.com/libretro/RetroArch/issues/17758
2025-04-05 10:32:22 +00:00
LibretroAdmin 1b3973edbc
Merge pull request #17747 from pstef/video-frame-delay-setting-rewrite 2025-03-30 01:11:13 -07:00
MrHuu 736e1b30f3 Static core loading 2025-03-29 11:26:58 +01:00
pstef bf1ff07fd0 Rewrite setting_get_string_representation_video_frame_delay()
Reduce indentation, squash a warning, simplify code.
2025-03-28 17:30:53 +00:00
pstef 80a74cca68 Remove unused variable
sonninnos says it might have been a copy and paste leftover.
2025-03-28 17:09:14 +00:00
pstef 83e974077f Guarantee space for string characters after strlcpy
to silence a couple of stringop-overflow warnings (3DS).
2025-03-28 11:11:09 +00:00
pstef 59a0665a20 Remove unused variable
unused since b5e01422e1
2025-03-28 10:57:53 +00:00
pstef df6e3dbda8 Silence warnings about sign mismatch 2025-03-28 10:57:53 +00:00
pstef b59b038a3e Silence an unreferenced local variable warning
Not used here since 106dc5d8b7
2025-03-28 09:48:21 +00:00
pstef 2daad9f89f Remove unused variables
They were never used and seem to have been copied from
action_ok_push_dropdown_item_input_device_type().
2025-03-28 09:48:21 +00:00
pstef aa94f571e2 Silence an unused variable warning
This is not used since 73abaddd9c
2025-03-27 23:21:19 +00:00
pstef 5ef2b5a442 Silence a defined-but-not-used-function warning
Enclose the static function definitions in an ifdef like the one used
where they are called.
2025-03-27 19:06:28 +00:00
LibretroAdmin 999de04ace
Merge pull request #17733 from pstef/ozone-footer-label 2025-03-25 21:45:08 -07:00
pstef eb8819867b Partially revert 0033224c25
font_driver_get_message_width() can return -1 if it fails,
ozone_cache_footer_label() has a fallback for this case
2025-03-25 21:02:29 +00:00
pstef 870d57445a Move INLINE earlier in function declarations
to silence a warning.
2025-03-25 20:20:37 +00:00
pstef d14801d65b File extension list generation rewrite
Only limit extensions under the condition that the valid_extensions list
is not empty and the user wishes to limit the extensions. Otherwise
present files of all recognized extensions.

Part of this logic was implemented in 8f32801292 where the
point was to show supported files when core info file is missing. The
other part is the filter_by_current_core option.
2025-03-22 20:37:05 +00:00
pstef ce6cd0000c Don't free members of struct before init 2025-03-20 16:12:12 +00:00
LibretroAdmin bf3752ed61
Merge pull request #17702 from pstef/silence-warnings-ctr 2025-03-15 18:08:22 -07:00
LibretroAdmin 98b1601fcb
Merge pull request #17701 from zoltanvb/reserved_device_multiple_instance 2025-03-15 18:07:03 -07:00
LibretroAdmin c2ffa044f9
Merge pull request #17700 from pstef/realloc-ext-list 2025-03-15 18:06:35 -07:00
pstef fc9f0b04be CTR: Silence a couple of GCC 14 warnings 2025-03-16 01:01:04 +00:00
zoltanvb ba5489128f Fix reserved device selection when multiple controller instances are present
If multiple instances of the same controller type are present, they will be
postfixed by (#2), (#3) etc. This made menu selection ineffective.
2025-03-15 18:40:33 +01:00
pstef 62ccd05e36 Try to avoid overflowing the stack
PATH_MAX_LENGTH is pretty short on CTR and not really adequate here
since this buffer is not storing a path.

Allocate and possibly reallocate from heap instead of using the
stack here.
2025-03-15 16:43:38 +00:00
LibretroAdmin ea592051c7
Merge pull request #17696 from sonninnos/content-load-archive
Show load before open in archives
2025-03-14 13:46:28 -07:00
sonninnos e64d52740b Suggest cores only when core is not loaded 2025-03-14 12:50:15 +02:00
sonninnos ee2cf436d4 Show load before open in archives 2025-03-14 12:47:58 +02:00
sonninnos ee8a641275 Core load+unload fixes 2025-03-13 15:09:38 +02:00
zoltanvb 675909333d Remove discord avatar references
These additions were never enabled in current builds, discord
avatar stuff was disabled in #7964.
2025-03-09 09:00:25 +01:00
sonninnos 23170b82ec
Add MIDI device menu item dropdowns (#17645) 2025-03-01 17:33:46 -08:00
sonninnos 5c92055aef Fix cloud sync driver menu item refresh 2025-03-01 11:47:53 +02:00
sonninnos aaa7b272aa XMB: Gray theme color correction 2025-02-28 08:44:37 +02:00
zoltanvb 31de40b32a
Align GDI feature reporting with actual status (#17635)
Value of HAVE_GDI is always 1 unless explicitly disabled, however
it only takes effect on Windows platforms. Actual functionality
is behind multiple #ifdef's, but the feature indication was showing
up even on platforms like Linux.
2025-02-27 20:15:43 -08:00
sonninnos b62cc87e84
Turbo Fire overhaul (#17633) 2025-02-27 20:15:22 -08:00
zoltanvb 9970d45367
Make autoconfig failure notifications optional. (#17636)
Introduce a new setting that controls autoconfiguration messages
when the config fails, either with fallback or without.
2025-02-27 20:15:06 -08:00
zoltanvb 8396d8e626
Fix bluetooth option ifdef (#17639) 2025-02-27 20:14:49 -08:00
刘皓 b3376716f2
Add declaration for `libnx_apply_overclock()` in menu/menu_driver.c (#17620) 2025-02-23 04:25:49 -08:00
sonninnos 4de34208ed Ozone: Messagebox font fix 2025-02-22 22:31:47 +02:00
Eric Warmenhoven f7d235f2d6
update core info list after updating core info files (#17613) 2025-02-21 12:34:06 -08:00
Eric Warmenhoven 273eb7bd7b
fix sublabel on "add to playlist" in quick menu (#17616) 2025-02-21 12:33:18 -08:00
sonninnos b5756a1b20
Prevent crash when Main Menu is empty (#17604) 2025-02-20 14:09:47 +02:00
sonninnos 6c08bf003b
XMB: Title replace '/' with '-' instead of ' ' (#17603) 2025-02-19 21:49:55 +02:00
sonninnos 8f3347d9ab
GLUI: Limit save state thumbnail size (#17600) 2025-02-19 17:06:01 +02:00
sonninnos b5e01422e1
XMB: Trigger bg-image load on theme change (#17599) 2025-02-19 17:05:34 +02:00
Eric Warmenhoven 0ed66a79f1
glui: fix add to playlist icon in quick menu (#17596) 2025-02-18 22:55:04 +01:00
sonninnos e4fe551924
Gray Dark+Light theme adjustments (#17597) 2025-02-18 20:47:10 +02:00
sonninnos 73abaddd9c
GLUI: Add save state thumbnails (#17592) 2025-02-18 17:11:46 +01:00
sonninnos 01a2da47a6
Ozone: Messagebox background asset fix (#17566) 2025-02-13 09:28:59 +01:00
LibretroAdmin 8a22b87101 Revert rich_label changes 2025-02-12 17:46:32 +01:00
sonninnos 106dc5d8b7
GLUI: Allow fullscreen thumbnail browsing (#17562) 2025-02-12 16:50:17 +01:00
LibretroAdmin 135a228ac1 menu_entry - rich_label gets merged into label - make struct smaller 2025-02-12 15:17:58 +01:00
LibretroAdmin c864c50c9f (Menu) Cleanups 2025-02-12 14:52:17 +01:00
LibretroAdmin ebd9abb5f6 Get rid of sublabel_cache 2025-02-12 14:25:12 +01:00
LibretroAdmin 824209178c setting_list - remove unused original_value 2025-02-12 13:56:21 +01:00
LibretroAdmin 8e2e2cdbac Style nits 2025-02-12 13:06:40 +01:00
LibretroAdmin a167fb1c2f Unused variables cleanup 2025-02-12 11:59:22 +01:00
LibretroAdmin d2d0e7a17d Style nits 2025-02-12 10:35:04 +01:00
LibretroAdmin f6006ae6ca Style nits 2025-02-12 10:17:35 +01:00
sonninnos bdf2e9407d
Label rewording and deprecation removal (#17560) 2025-02-12 09:52:12 +01:00
LibretroAdmin 0d57b59cd3 Another fix 2025-02-12 01:43:16 +01:00
LibretroAdmin 6556edd18e Fix remap screens 2025-02-12 01:32:26 +01:00
LibretroAdmin 366612fb82 Revert "Fix some string appending"
This reverts commit 65b9ea4e76.
2025-02-11 23:48:12 +01:00
sonninnos 2073b8abfc
XMB: Icon thumbnail improvements (#17558) 2025-02-11 23:09:47 +01:00
LibretroAdmin 65b9ea4e76 Fix some string appending 2025-02-11 23:08:55 +01:00
LibretroAdmin c62de90430 Cleanups 2025-02-11 22:45:16 +01:00
LibretroAdmin 064372d787 Get rid of action_title_cache 2025-02-11 21:21:14 +01:00
Eric Warmenhoven 422a4310f3
Add To Playlist from quickmenu can't rely on the current playlist (#17556) 2025-02-11 21:01:42 +01:00
LibretroAdmin 5372f3fe84 Change signature of get_representation callbacks 2025-02-11 21:01:04 +01:00
LibretroAdmin 76233f8959 on/off labels no longer cached - language switches now immediately
change the on/off labels as well - and binary size is smaller
2025-02-11 12:44:03 +01:00
LibretroAdmin 653c6ed1e6 Cleanup 2025-02-11 11:58:57 +01:00
LibretroAdmin 98681ace4a Cleanups - less settings pointer grabbing 2025-02-11 10:12:12 +01:00
LibretroAdmin 9489dd05bc Cleanups 2025-02-10 18:45:23 +01:00
LibretroAdmin ef7b9830db (cheat_manager) No more dependency on configuration.h 2025-02-10 16:48:56 +01:00
sonninnos afd290e289
XMB: Appearance menu cleanup (#17549) 2025-02-10 16:16:56 +01:00
LibretroAdmin ddd7ff2d33 get rid of some settings_t pointer passing 2025-02-10 15:47:18 +01:00
LibretroAdmin 50a0e17539 (Menu/XMB/Ozone) Less settings_t pointer grabbing 2025-02-10 15:13:59 +01:00
LibretroAdmin c57c4fbd1a Style nits 2025-02-10 13:59:25 +01:00
sonninnos 87b3032139
XMB: Color tuning (#17547) 2025-02-10 11:52:08 +01:00
sonninnos c1077a5ef5
RGUI: Thumbnail fixes (#17546) 2025-02-10 11:51:56 +01:00
sonninnos 372396d5b6
Add separate visibility toggle for playlist tabs (#17545) 2025-02-10 00:45:50 +01:00
LibretroAdmin d34cfcdfef iSilence warnings 2025-02-09 22:26:36 +01:00
LibretroAdmin afd73998e6 Silence warnings 2025-02-09 20:33:04 +01:00
LibretroAdmin 4faed7a84f Less passing around of settings_t pointer 2025-02-09 18:56:50 +01:00
LibretroAdmin 0be8fe8e3f Style nits 2025-02-09 16:07:15 +01:00
LibretroAdmin 376e4b307c Style nits 2025-02-09 15:40:45 +01:00
sonninnos 0d46073bb9
Add mute on rewind option (#17541) 2025-02-09 14:24:14 +01:00
sonninnos 81df9b0491
GLUI: Also set navigation with long press (#17537) 2025-02-09 06:11:28 +01:00
sonninnos 3bf04c6034
GLUI: Fix null label icon (#17538) 2025-02-09 06:11:21 +01:00
sonninnos 677e627278
GLUI: Touch related fixes (#17536) 2025-02-08 21:19:24 +01:00
Eric Warmenhoven 5471a9ebfe
ios: jump back to selected item after closing content (#17534) 2025-02-08 20:32:41 +01:00
sonninnos 4cbfa3ad47
GLUI: Use tab selection remember option (#17532) 2025-02-08 11:56:40 +01:00
sonninnos 4232700de5
GLUI: Fix menu back to switch tabs like other drivers (#17529) 2025-02-07 11:43:45 +01:00
Eric Warmenhoven 4c8da979a5
fix a couple minor warnings (#17526) 2025-02-06 20:22:36 +01:00
sonninnos 998200793d
File Browser settings + Directory list cleanup (#17519) 2025-02-05 07:19:50 +01:00
sonninnos 94d5223880
Random selector Explore View fix (#17518) 2025-02-04 20:29:20 +01:00
sonninnos ea22c7c16c
Main Menu unifications between drivers (#17517) 2025-02-04 16:32:37 +01:00
Eric Warmenhoven 212ae55cfe
glui: extremely minor refactor. (#17501) 2025-02-01 04:57:46 +01:00
BinBashBanana ed1810de86
Emscripten improvements (#17422) 2025-01-29 05:29:16 +01:00
Eric Warmenhoven 72df261ed0
Fix opening file inside archive with core detection (#17461) 2025-01-23 18:56:11 +01:00
Mathieu Poliquin 66e23fca79
New feature: Override player input with machine learning models (#17407)
* Add dummy game ai subsystem

* First working prototype of a machine learning model that can override player input

* Update README.md

* Update README.md

* Fix loading path on Windows

* Change ai override to player 2

* Added quick menu show game ai option

* Implemented Quick Menu entry for Game AI options

* Redirect debug logs to retroarch log system + properly support player override

* Added support to use framebuffer as input to the AI

* Added pixel format parameter to API

* Fix game name

* code clean-up of game_ai.cpp

* Update README.md - Windows Build

* Update README.md

* Update README.md

* Update README.md

* Update config.params.sh

turn off GAME_AI feature by default

* Fix compile error in menu_displaylist.c

* Add missing #define in menu_cbs_title.c

* Added new game_ai entry in griffin_cpp

* Remove GAME_AI entry in  msg_hash_us.c

* Fix compile error in menu_displaylist.h

* Removed GAME AI references from README.md

* Fixes coding style + add GameAI lib API header

* Convert comment to legacy + remove unused code

* Additional coding style fixes to game_ai.cpp

* Fix identation issues in game_ai.cpp

* Removed some debug code in game_ai.cpp

* Add game_ai_lib in deps

* Replace assert with retro_assert

* Update Makefile.common

* Converting game_ai from cpp to c. First step.

* Convert game_ai from CPP to C. STEP 2: add C function calls

* Convert game_ai from CPP to C. Final Step

* Added shutdown function for game ai lib

* Update game_ai_lib README

* Fix crash when loading/unloading multiple games
2025-01-21 13:05:43 +01:00
LibretroAdmin a49196ee30 (menu_cbs_get_value.c) Put protective guards around strlcpy copies
into s2
2025-01-21 03:57:08 +01:00
LibretroAdmin e9afd53351 Fix crash that can happen in menu_action_setting_disp_set_label_entry 2025-01-21 03:50:46 +01:00
sonninnos 1c724f5355
RGUI: 'Use This Directory' cleanup (#17450) 2025-01-21 02:02:55 +01:00
sonninnos 66921e8549
RGUI: Entry value cleanup (#17443) 2025-01-20 20:38:40 +01:00
sonninnos 391ba55b81
Add playlist random selector (#17441)
* Add playlist random selector

* Buildfix attempt

* ORBIS buildfix attempt
2025-01-20 18:25:41 +01:00
LibretroAdmin cde82f532c * Naming convention changes for variable names/function arguments
* Try to fit lines within ANSI 80-char limit
2025-01-19 20:19:14 +01:00
LibretroAdmin 48d903e811 print_buf_lines - cast to unsigned to avoid warnings 2025-01-17 21:52:50 +01:00
Eric Warmenhoven 8aa445dfe2
tvos build fix (#17426) 2025-01-17 21:45:01 +01:00
LibretroAdmin b211adaaca Function argument name standardization 2025-01-17 19:55:32 +01:00
Eric Warmenhoven 2471082ced
macos: fix some sandbox handling for app store (#17424)
* minor safety check

* macos: fix some sandbox handling for app store
2025-01-17 19:54:54 +01:00
LibretroAdmin e2c8e98be0 Buildfixes and warning fixes 2025-01-17 12:03:30 +01:00
LibretroAdmin 31b7812720 Function argument name standardization 2025-01-17 04:16:12 +01:00
LibretroAdmin 0b329018ee Less string buffers and less string copies 2025-01-16 23:59:22 +01:00
LibretroAdmin 86c9a43b08 Use path_get_extension_mutable 2025-01-16 21:09:19 +01:00
LibretroAdmin a5c9d9520f * Use fill_pathname_basedir where possible
* Move static variable to only function where it's used
* Change signature of file_path.c function
2025-01-15 22:17:59 +01:00
LibretroAdmin 47d888364d Standardize len variables - argument should always be named 'len',
while local len variables should have '_' prefix
2025-01-13 21:53:49 +01:00
LibretroAdmin e84ea6082c Fix 'Remove Preset' 2025-01-12 19:05:44 +01:00
LibretroAdmin 203c6218e4 Re-enable BFI menu setting for mobile 2025-01-12 17:35:50 +01:00
Rob Loach 941806698e
Add SSL Support to the information list (#17370) 2025-01-09 00:09:56 +01:00
Tatsuya79 43a2e1003e
allow exact sync with shader subframes (#17355)
* allow exact sync with shader subframes

* Update menu_setting.c
2025-01-06 21:36:57 +01:00
neil4 6412f4feef
Overlay: Add Analog Recentering Zone (#17339) 2025-01-04 03:19:02 +01:00
Eric Warmenhoven 53d9452439
Change config_get_path/array return back to bool (#17333) 2025-01-02 14:35:33 +01:00
Eric Warmenhoven 9dd6e85d2f
fix writing before string when substring is not found (#17330) 2025-01-02 06:17:00 +01:00
LibretroAdmin 4e5df036f9 action_get_Title_generic - fix warning 2024-12-31 11:40:00 +01:00
LibretroAdmin 20ec0c605a (courtesy of Psyraven) Fix crashes with Explore view 2024-12-31 11:22:43 +01:00
LibretroAdmin 30b3760959 (menu_explore.c) Don't use fill_pathname here, go back to old code 2024-12-31 05:40:30 +01:00
LibretroAdmin 1e656261b0 Local len variables need to have '_' prefix 2024-12-30 14:03:58 +01:00
LibretroAdmin 8ebedcb6bd (menu_explore) Simplification of explore_load_icons
fill_pathname_application_special - return size_t
2024-12-30 10:07:58 +01:00
LibretroAdmin 28f6ee9c26 Use return value of fill_pathname_basedir 2024-12-30 09:56:02 +01:00
LibretroAdmin 9d15900979 Small cleanups: * Prevent some unneccessary strlcpy calls and intermediary string copies * Name local length variables for strings '_len', parameter/argument 'len' 2024-12-28 22:22:07 +01:00
LibretroAdmin 4951201b6b disp_set_label_menu_file_core - set *w to implicit 0 2024-12-28 00:38:04 +01:00
LibretroAdmin 1a751ef9a2 Remove core value label 2024-12-28 00:30:00 +01:00
sonninnos da05947b41
GLUI: Restore core list icons (#17293) 2024-12-27 15:50:55 +01:00
LibretroAdmin 0d4eeb647a Warning cleanups/unused variables removal 2024-12-27 15:39:32 +01:00
LibretroAdmin 18c85b5ccd Cleanups -
* Less string copies
* Some general cleanups
* Add extra param to runloop_message_queue_push so we can pass size_t
of the message
* Consistent conventions for local variable usage for certain things
2024-12-27 15:13:45 +01:00
LibretroAdmin ed58e4a8d8 Conventionalize len variables:
* In function arguments, use 'size_t len'
* Inside the function, use '_len'
* If you need a seciondary len variable inside the function, use '__len'
2024-12-27 05:51:33 +01:00
hizzlekizzle bc819bb412
change increment on max Fast-Forward speed (#17290)
closes https://github.com/libretro/RetroArch/issues/15540

we can still tick through to higher values quite fast, but there's not much reason for someone to exceed, say, 3x without just setting it to 0 anyway, so I don't think there's any real usability loss.
2024-12-27 04:26:54 +01:00
libretroadmin 5749a2179d Use members from path_data directly and bypass functions
in gfx_thumbnail_path
2024-12-26 02:48:05 +01:00
libretroadmin 1450cc04de Reduce local string sizes 2024-12-25 22:36:13 +01:00
libretroadmin 700b13654c Some string cleanups 2024-12-25 19:18:45 +01:00
libretroadmin 51e706007b String handling cleanups 2024-12-25 19:06:04 +01:00
libretroadmin 44238e909f Consistent viewport naming conventions 2024-12-24 22:50:51 +01:00
libretroadmin 8074a833aa Cleanups/less string copies and indirection 2024-12-24 21:07:31 +01:00
libretroadmin 2cfdccc085 Less string intermediary copies 2024-12-24 18:46:22 +01:00
libretroadmin 279270ae5f string_list_join_concat_special - specialized version without bounds
check
2024-12-24 06:14:26 +01:00
libretroadmin 67b0147a59 Cleanups - menu_entries_get_title returns results of strlcpy 2024-12-24 05:35:36 +01:00
libretroadmin de8f979cb7 less string copies 2024-12-24 05:10:09 +01:00
libretroadmin 55c457e548 menu_displaylist - cleanups 2024-12-23 22:44:18 +01:00