Commit Graph

633 Commits

Author SHA1 Message Date
twinaphex e886e908d5 Create consistent naming conventions - use retroarch_ instead
of rarch_ for some functions for all functions coming from retroarch.h
2021-09-28 12:56:10 +02:00
twinaphex 83ce4259a0 Have only one getter for runloop_state 2021-09-21 19:08:26 +02:00
twinaphex f21641d898 Get rid of another 'getter' function 2021-09-21 18:30:56 +02:00
twinaphex 7c8c53fb2d Get rid of menu_driver_get_ptr - we are going to be using only one
getter for each component state instead of several getters
2021-09-21 07:14:27 +02: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
twinaphex 24389bbcd5 Small cleanups to task_content.c 2021-05-21 16:30:02 +02:00
jdgleaver 334a43a7c5 Prevent unnecessary extraction (to disk) of compressed content files + task_content.c clean-ups 2021-05-20 17:08:51 +01:00
twinaphex 8291b18771 Small cleanup to cheevos content loading part 2021-05-19 16:05:42 +02:00
twinaphex 181824eb00 (Tasks/content) Split up CDROM code into tasks/task_content_disc.c 2021-05-19 15:53:38 +02: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 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
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
twinaphex e16dd186b7 Cleanups 2020-10-10 17:58:32 +02:00
twinaphex 400df12c1e Start using error_enum 2020-09-03 04:10:37 +02:00
twinaphex e09f1d65b5 Cleanups 2020-09-03 00:44:22 +02:00
twinaphex e2bd3d75bc Cleanup 2020-09-03 00:38:19 +02:00
twinaphex cd6e1cf3fa (libretro-common) string_list - add string_list_initialize
and string_list_deinitialize - takes a pointer to initialize
and deinitialize a string list, but importantly does not
implicitly allocate and deallocate the string list pointer
itself. This way, string lists can be put on the stack instead
of always implicitly being put on heap - the struct itself is
small enough to fit on stack
2020-08-24 00:43:55 +02:00
Jamiras 2f69d2d4ed eliminate exposed variables for tracking hardcore 2020-08-22 12:18:12 -06:00
twinaphex 216190b826 Clean up more string variables on heap - move to stack 2020-08-18 14:26:15 +02:00
twinaphex d29e0a9969 (Task content) Don't put string variables on heap 2020-08-18 10:56:54 +02:00
twinaphex 8a3ef513a3 Struct reordering 2020-08-14 18:43:11 +02:00
twinaphex 6be4adffdf Silence warning with --disable-menu 2020-07-20 02:04:43 +02:00
twinaphex 324eb4f098 (UWP) Buildfix 2020-07-16 11:49:15 +02:00
twinaphex 5cdda30d5a Do away with HAVE_MENU ifdef 2020-07-12 15:48:21 +02:00
twinaphex 6248b1f30a (task_content.c) Cut down on some code duplication 2020-07-12 15:45:44 +02:00
twinaphex 2f8f783d5c Small cleanup in content_load 2020-07-11 16:35:12 +02:00
twinaphex 2dd5ea66a1 Simplify content_file_init_subsystem 2020-07-11 16:24:10 +02:00
twinaphex 40cf0e13e7 (Load content) Don't try to log every single argument by default 2020-07-11 16:11:52 +02:00
twinaphex 8436b7fc6a Cleanup command_evnt_cmd_exec 2020-07-11 16:00:42 +02:00
jdgleaver 506aa0a36c Add optional widget-based 'load content' launch feedback animation 2020-07-09 13:05:28 +01:00
twinaphex 2bdec2d0b3 Move content_state global state to rarch_state 2020-07-08 11:48:33 +02:00
jdgleaver e87b8311c8 (Static Platforms) Add option to not restart RetroArch when launching content with the currently loaded core 2020-07-03 17:12:23 +01:00
twinaphex b77dd9cfe4 Add HAVE_PATCH ifdef; add patch switch support to qb 2020-06-30 15:54:31 +02:00
jdgleaver 0fcfb3deda Refactor playlist struct configuration 2020-06-26 15:40:19 +01:00
twinaphex 1c5276749a Turn calloc into malloc 2020-06-24 19:35:07 +02:00
jdgleaver 42537a67e1 Fix display of core-generated messages when load content fails 2020-06-19 12:22:37 +01:00
twinaphex b74b8b6a6c Move launched_from_cli to global state 2020-06-13 08:19:49 +02:00
twinaphex f64da5cb1e Update more log messages 2020-06-08 19:11:43 +02:00
twinaphex aed8b7943d Cleanup log messages 2020-06-08 18:58:18 +02:00
jdgleaver 445921ac5d Core info search optimisations + improved core selection logic + clean-ups 2020-06-06 13:59:28 +01:00
twinaphex 9fda2bdebd Add TODO/FIXME comments 2020-06-04 14:09:45 +02:00
twinaphex a50fd86f3e Add global state warnings 2020-05-29 06:11:07 +02:00
twinaphex 3af84d73e9 Move menu_content_environment_get to retroarch.c 2020-05-29 05:28:29 +02:00
twinaphex 6dc758a080 Move cheevos-new to cheevos/ 2020-05-21 23:23:01 +02:00
twinaphex 03ea12d334 Move discord files to network/ 2020-05-20 15:27:27 +02:00
Jamiras 6946f878ef disable hardcore when cheats are enabled 2020-05-16 08:01:24 -06:00
jdgleaver fa9290cf1e Add optional playlist compression 2020-04-21 16:44:26 +01:00
twinaphex 7fb7d4e74c Buildfix 2020-03-12 08:05:44 +01:00
twinaphex 649aee49ba (task_content.c) Cleanups 2020-03-12 07:29:04 +01:00
twinaphex 67ea016c09 (task_content.c) cleanups 2020-03-12 07:14:44 +01:00
twinaphex f13a4b10ee (task_content.c) Move global variables to struct 2020-03-12 06:45:17 +01:00
jdgleaver 7873b5f044 (QT) Populate 'db_name' and 'crc32' fields when adding entries to content history 2020-03-06 14:00:04 +00:00
twinaphex 0ef1b342e4 settings Cleanups 2020-03-02 20:10:24 +01:00
twinaphex cc50cefd30 Cleanups 2020-03-01 21:58:09 +01:00
twinaphex 7c7d0f596a HAVE_MENU_WIDGETS now decoupled from HAVE_MENU 2020-02-17 21:28:42 +01:00
twinaphex b00bf17153 Move menu_widgets to gfx/ and call it gfx_widgets 2020-02-17 01:54:07 +01:00
twinaphex 5bb084c32b Cleanups 2020-02-02 03:00:51 +01:00
twinaphex 8eca1a0459 Refactor this 2020-02-02 02:16:19 +01:00
twinaphex d4a1f2ef85 Cleanups 2020-01-20 05:06:51 +01:00
twinaphex 481f31fe8f Turn task_patch.c into separately compiled file 2020-01-20 04:31:32 +01:00
twinaphex 9c6c10da22 (Playlist) Get rid of settings_t dependency 2020-01-04 12:04:00 +01:00
Jamiras 1f97d31f2a pause hardcore if core doesn't support achievements 2019-11-27 07:38:41 -07:00
Rinnegatamante eed65a64b2 Removing no more required video context capabilities check at content_load time. 2019-10-04 19:25:05 +02:00
twinaphex c69c972942 (Menu) Cleanups 2019-08-16 15:17:33 +02:00
Brad Parker 3432f3b852 cdrom: initialize all buffers used for drive paths, make sure to null-terminate filled paths in all cases 2019-08-12 20:42:40 -04:00
Brad Parker 7479245875 opengl: loop through highest available versions to find a working one, only do hwapi check on glx/wgl for now 2019-08-05 10:46:17 -04:00
jdgleaver 9617856c5c Remove favourites init/deinit from command event, and replace with seperate functions in retroarch.h/.c 2019-07-31 11:32:19 +01:00
jdgleaver 5220dc9084 Add independent 'favourites' playlist size setting 2019-07-30 17:13:04 +01:00
Twinaphex 52ef1af14e
Merge pull request #9137 from LazyBumHorse/realpath
replace realpath() by custom code which does not resolve symlinks
2019-07-24 22:20:38 +02:00
Brad Parker 61ab9249fc add "required hw api" to core info files, block content loading if core is incompatible with current graphics API/version 2019-07-23 22:44:45 -04:00
twinaphex ba79947e51 This should prevent flushing of stack issues 2019-07-22 22:40:34 +02:00
twinaphex e30a0631d9 Change to C comment 2019-07-22 22:07:22 +02:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
Brad Parker 41b3adc8a4 cdrom: always request one sector at a time 2019-07-21 12:06:10 -04:00
orbea 2aa9c3e72e Correctly fixes --disable-menu.
Broken in d2893d991c
2019-07-21 00:05:59 -07:00
twinaphex cd90760b7b Buildfix for non-HAVE_MENU targets 2019-07-21 01:13:24 +02:00
twinaphex b6b22a9a32 More shader refactors - make sure we can compile entirely
without shader support if HAVE_CG, HAVE_GLSL, HAVE_SLANG
and HAVE_HLSL are all not defined
2019-07-21 00:34:07 +02:00
twinaphex d905986a52 Rename functions - change rarch_ prefix to retroarch_ 2019-07-20 12:43:43 +02:00
Yoshi Sugawara 8862e8de9f [iOS] show quickmenu after loading content from playlist (#9118) 2019-07-17 17:08:23 -10:00
twinaphex d80b85b158 Cleanups 2019-07-14 18:52:51 +02:00
twinaphex 9cc055bf93 Not necessary for content_ctx to be passed either 2019-07-14 18:26:18 +02:00
twinaphex 58417e56b7 Update task_push_to_history_list 2019-07-14 18:23:46 +02:00
twinaphex 484b2bc944 Split up task_load_content into two - one does the actual file
loading, the other simply pushes an entry to the history playlist
2019-07-14 18:21:46 +02:00
twinaphex 8a70f3f4cb Cleanup 2019-07-14 15:35:49 +02:00
Brad Parker cf12a10ba0 cdrom: add CDROM tag to log prints 2019-07-10 20:56:23 -04:00
twinaphex 84bf51acee Take out HAVE_CDROM include ut of vfs/vfs_implementation.h 2019-07-10 22:53:38 +02:00
Brad Parker 119245e88b cdrom: add load disc callback 2019-07-09 11:17:17 -04:00
Brad Parker 15d97dbaf3 cdrom: add disc dump option 2019-07-08 16:06:35 -04:00
LazyBumHorse f5497a4249 fix some bugs found through Clang Static Analyzer:
- task_content.c, load_content_from_compressed_archive: fix use after free
 - platform_win32/uwp: fix frontend_..._get_powerstate never returning FRONTEND_POWERSTATE_NONE
 - platform_win32/uwp: fix whitespace
 - cheevos.c: fix potential use after free in a loop, just to be save
2019-07-04 21:15:19 +02:00
twinaphex f4bf218f35 (Menu) We need to tell rarch_menu_running_finished whether we want
to exit RetroArch or not - to avoid certain crashes when trying to
access the settings pointer - which should already be freed at this
point
2019-06-30 11:23:18 +02:00
twinaphex 3b634b64fa Merge dirs.c into paths.c 2019-06-26 07:23:32 +02:00
Twinaphex 8a8b690f85 Possible misuse of comma operator here 2019-06-22 14:25:32 +02:00
Twinaphex 9180cc5ba2 Cleanup some warnings 2019-06-22 13:44:10 +02:00
radius d865c5e4a6 add some copyright on files I contributed considerably just in case 2019-06-20 05:45:17 +02:00
twinaphex 280cec702b video_driver_supports_viewport_read should only check if
taking screenshots with the GPU backbuffer is supported,
move outside settings check to callee
2019-06-06 15:06:27 +02:00
twinaphex 717c5c1e2f Delayed CRC calculation for need_fullpath ROM loading (unpatched) -
we can get rid of the GEKKO ifdef for Gamecube/Wii since CRC
calculation for these kind of games will now be delayed until
content_get_rom_crc is called the first time, which typically only
happens during netplay
2019-06-03 18:51:04 +02:00
twinaphex 16f830e080 (task content) Cleanups 2019-05-31 09:20:37 +02:00
meleu 694bac565f do not use old cheevos implementation 2019-05-29 14:26:22 -03:00
twinaphex 6c5d08d893 content_file_init_extract - cleanup 2019-05-29 16:35:51 +02:00
radius 25c99fd83e remove log spam 2019-05-27 01:41:09 +02:00
radius 86960cf9dd preset refinement 2019-05-26 22:39:46 +02:00
twinaphex 2db271d954 Remove TODO 2019-05-23 12:43:56 +02:00
twinaphex 96cfe3396c (task_content.c) Cleanups 2019-05-23 11:48:32 +02:00
twinaphex 8d54a56371 (task_content.c) Cleanups 2019-05-22 10:37:55 +02:00
twinaphex bae877a465 (task_content.c) Cleanups 2019-05-22 10:27:46 +02:00
twinaphex ab8f0e73b7 Cleanups 2019-05-22 10:23:34 +02:00
twinaphex 138a070ceb (task_content.c) Cleanups - extraction error message was not being
printed
2019-05-22 04:24:44 +02:00
twinaphex 57c5b629a6 Simplify this 2019-05-21 04:55:29 +02:00
twinaphex 0302a8812a content_file_load - play it safe now - only use strdup directly
for strings that don't require formatting
2019-05-12 19:28:51 +02:00
twinaphex b1a3efdfac (task_content.c) Fixup function signature 2019-05-12 19:18:37 +02:00
twinaphex 1b7b9e66b0 Revert "task_content.c - some cleanups - save up on some memory allocations"
This reverts commit df9192e30e.
2019-05-12 19:17:44 +02:00
twinaphex bafc938198 content_load - get rid of error goto label 2019-05-12 19:14:39 +02:00
twinaphex df9192e30e task_content.c - some cleanups - save up on some memory allocations
for strings
2019-05-12 19:06:07 +02:00
meleu 22a956f663 replace 'cheevos_rcheevos_enable' by 'cheevos_old_enable' 2019-05-04 12:52:49 -03:00
twinaphex 5bd0fdcc13 Cleanups 2019-04-30 13:51:32 +02:00
twinaphex b43b3e2bb0 (UWP/WinRT)
- Disable VFS for now - seems to be very problematic right now
- Move uwp_is_path_accessible_using_standard_io to file_path.c
since it seems to have no VFS dependencies, and rename it to
is_path_accessible_using_standard_io so it could possibly be later
used for other platforms as well that also have sandboxed filesystems
2019-04-27 09:20:19 +02:00
twinaphex 7372bafb44 Remove RARCH_CTL_SET_LIBRETRO_PATH 2019-04-21 06:03:02 +02:00
twinaphex 81d22c63de (task_content) Some simplifications 2019-04-21 05:33:41 +02:00
meleu c2364096f3
Merge branch 'master' into runtime_rcheevos_switch 2019-04-19 21:50:00 -03:00
bparker06 15c0191f08
Update task_content.c 2019-04-12 13:04:59 -04:00
Brad Parker f7b0c0947c add subsystem_name (friendly name) to history playlist, make playlist_entry struct public to simplify function parameters 2019-04-12 12:50:27 -04:00
radius d08779adf0 [subsystem] add a function to get the friendly name 2019-04-11 18:51:27 -05:00
Brad Parker 230c64ba4b add subsystem support for playlists, only missing the content load portion 2019-04-11 00:09:13 -04:00
jdgleaver 2c65068be0 More 'Log to File' Additions:
- Add optional timestamped log files

- Handle errors if log file cannot be opened

- Android: flush log file immediately

- 3DS: log to file tested and fully working

- Default log paths added for all platforms
2019-03-25 17:22:59 +00:00
meleu a5acd559d6 namespace both cheevos implementations & add a runtime setting to allow debugging 2019-03-19 21:13:10 -03:00
jdgleaver dc8ef72323 Populate crc32 and db_name fields when adding history/favourites playlist entries
playlist.c: Fix silly range check error
2019-03-09 13:58:53 +00:00
jdgleaver 8a2cd64889 Always use core display name when populating playlists 2019-03-07 16:54:46 +00:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
twinaphex 7022786f34 Revert parts of menu_widgets that were causing breakage, but leave
all the hooks in so we can add them back piece by piece again
2019-02-08 07:26:43 +01:00
Twinaphex f62e44c3e8
Merge pull request #7971 from Wiimpathy/WiiSkipCrc
Wii: Skip CRC. Avoid an unnecessary delay.
2019-02-07 18:42:13 +01:00
twinaphex affd507151 Warning fix 2019-02-07 08:05:43 +01:00
radius 671e90a415 [discord] party & ask to join refinements 2019-02-06 22:45:05 -05:00
Wiimpathy 79b5a05aeb
Merge branch 'master' into WiiSkipCrc 2019-02-06 21:51:27 +01:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex 987a91a1ae Silence some warnings 2019-01-31 21:24:13 +01:00
Twinaphex 556b7b19de
Merge pull request #8025 from krzys-h/uwp-storagefile
(UWP) StorageFile implementation
2019-01-27 08:33:17 +01:00
radius b0b39a1610 this should fix errors with --disable-menu 2019-01-20 17:20:17 -05:00
twinaphex b13777e9fc Header cleanups 2019-01-20 03:16:58 +01:00
krzys-h 4461d32900 (UWP) Fallback to a file copy when core doesn't support VFS 2019-01-17 11:48:09 +01:00
krzys-h c8510378dc (UWP) Error if trying to use VFS on cores that don't support it 2019-01-17 11:08:05 +01:00
Brad Parker e2df9b52ce Fix issue that was causing old name labels to appear in content history 2019-01-16 16:48:20 -05:00
radius dad3fe42db [netplay] load subsystem content
cleanup

cleanup
2019-01-14 18:58:57 -05:00
CozmoP 2052e15a08 pass content label when loading content from Qt (#7982) 2019-01-11 18:51:44 -05:00
benoa 9fec6d4a18 Wii: Skip CRC. Avoid an unnecessary delay. 2019-01-10 20:16:36 +01:00
orbea 7eead5c59f Fix crashes with '--disable-menu' and the Qt frontend.
When failing to load content in the companion ui when HAVE_MENU is not
defined RetroArch will crash in just about every input and video driver.
Even if several sanity checks are added the dummy core will immediately
exit.

Now it will print that it failed to load the core in the companion ui
and reinit the dummy core to match the behavior with the null menu
driver.
2019-01-09 10:02:32 -08:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
Brad Parker 5bedd981ec allow shaders when menu is disabled 2019-01-06 23:03:28 -05:00
orbea 80ed61f257 cli: Fix the --no-patch argument.
Fixes https://github.com/libretro/RetroArch/issues/5885

First bad commit:
  d28c138d09
2018-12-25 13:12:59 -08:00
orbea 4da7092aff menu: Reset position after pushing quick menu.
Fixes:
  https://github.com/libretro/RetroArch/issues/5595
  https://github.com/libretro/RetroArch/issues/2506
2018-12-21 18:43:14 -08:00