Commit Graph

274 Commits

Author SHA1 Message Date
twinaphex ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
jdgleaver a0fd9d21d2 Enable customisation of runtime 'last played' display format 2019-09-10 16:14:38 +01:00
jdgleaver 1e3c5acf0d Fix 3DS build 2019-08-27 17:10:35 +01:00
jdgleaver 3da96deec3 Enable per-playlist thumbnail selection 2019-08-15 18:05:31 +01:00
Twinaphex 0297f69e98
Merge pull request #9229 from jdgleaver/favourites-size
Add independent 'favourites' playlist size setting
2019-07-31 12:35:15 +02:00
jdgleaver 5220dc9084 Add independent 'favourites' playlist size setting 2019-07-30 17:13:04 +01:00
Tim Van den Langenbergh 771134eb52 More C89 compatibility fixes 2019-07-28 15:52:48 +02:00
Tim Van den Langenbergh 6bd79acc5d Fix C89 support. 2019-07-28 14:55:21 +02:00
Tim Van den Langenbergh c69c3f4c47 Fix build for ISO C 90. 2019-07-28 13:42:07 +02:00
Tim Van den Langenbergh 8bbfd52a5e Implement changes for Android, Xcode, C89 & CXX.
Fix bad match in removal of parens and brackets.
Use libretro string comparison features instead of a long char-wise
comparison.
2019-07-28 12:39:00 +02:00
Tim Van den Langenbergh 55f4c04ff2 Add label_display_mode to playlist.
Add label_display_mode to JSON format.
Add label_display_mode to old playlist format.
Add label_display_mode to configuration.
Add label sanitization functions to libretro common.
2019-07-28 01:22:46 +02:00
Tim Van den Langenbergh fcf5d6bcdd Add sanitization settings to playlist.
Add sanitization functions to libretro-common.
Add sanitization functionality to menu display.
2019-07-28 01:14:40 +02:00
Yoshi Sugawara 73ce349682 iOS: call pathname expand before abbreviating to ensure playlist saving works when saving an entry from a playlist to another playlist. 2019-07-27 09:26:36 -10: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
jdgleaver 1a2eeea2bd Fix memory leak when JSON playlist fails to load 2019-07-22 14:44:35 +01:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
twinaphex 7b7ac06653 (playlist.c) Cleanups 2019-07-20 15:07:09 +02:00
Twinaphex 1e38504bf3
Merge pull request #9132 from yoshisuga/ios_fix_path_after_detect_core
[iOS]: more fixes for abbreviated paths when scanning files
2019-07-20 14:48:07 +02:00
Yoshi Sugawara 88a4c3e21b Created method playlist_resolve_path() to keep the platform specific ifdef in one location to resolve the path for the playlist. Also fix setting the core path from the default core path. 2019-07-19 16:00:10 -10:00
LazyBumHorse 43a1e2b6d8 fix use of filestream_getc in playlist_read_file 2019-07-18 11:00:59 +02:00
Yoshi Sugawara dba1302360 Playlist (iOS): support abbreviating and expanding application and home directory paths so that playlist entries are valid across installs
iOS: add call to realpath() when setting directory to ensure expanding special chars in paths work; fixed braces style
2019-07-15 16:11:22 -10:00
twinaphex 339e043ff2 Fix 'declaration hides parameter' 2019-07-14 13:17:51 +02:00
twinaphex 37a6a205e3 Buildfix 2019-07-09 02:03:20 +02:00
Twinaphex 77f9de47a5 (Apple) Fix some unused variable warnings 2019-07-09 02:01:37 +02:00
jdgleaver 678636934d Fix playlist format detection 2019-07-04 16:46:00 +01:00
jdgleaver ab7d5cbeb8 Fix build error 2019-06-27 13:05:46 +01:00
jdgleaver 5b097cfc7d Fix default core association for old format playlists 2019-06-27 12:36:58 +01:00
jdgleaver 0be44e57ad Overhaul default playlist core association 2019-06-26 17:42:26 +01:00
Twinaphex 9180cc5ba2 Cleanup some warnings 2019-06-22 13:44:10 +02:00
twinaphex 1a1418ccfb (Samples) tasks/database - should work again 2019-05-21 22:38:50 +02:00
jdgleaver 10ef7dd561 Load content runtime data 'on demand' (#8717)
* Load content runtime data 'on demand'

* Fix LGTM warning
2019-05-09 08:24:06 -05:00
jdgleaver 79e8adb90e (playlist) Don't resolve real path when core path is DETECT 2019-05-05 12:49:07 +01:00
twinaphex 23abe5025b Fix for playlist items that have been scanned and don't have an
associated core - we don't want to resolve the path if core_path
is set to "DETECT"
2019-05-05 01:17:51 +02:00
jdgleaver 05e0a6c8d2 Prevent duplicate content history entries (+ general sanitisation of playlist searching) 2019-05-02 09:58:37 +01:00
twinaphex 4c3e0d44b8 Revert "Start using string_is_equal_memcmp and"
This reverts commit 26d6aee1eb.
2019-04-29 04:04:33 +02:00
twinaphex 26d6aee1eb Start using string_is_equal_memcmp and
string_is_equal_memcmp_fast
2019-04-28 17:23:11 +02:00
twinaphex 636e1bef50 (playlist.c) Cleanups 2019-04-27 05:35:16 +02:00
twinaphex 3e72c502a8 strlen optimizations :
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
twinaphex e35cd80a14 (MSVC 2010) Buildfix 2019-04-20 05:53:17 +02:00
twinaphex cee285bcd5 (playlist.c) Code style cleanups 2019-04-13 18:57:02 +02: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
Brad Parker 230c64ba4b add subsystem support for playlists, only missing the content load portion 2019-04-11 00:09:13 -04:00
Twinaphex 076a0d2f56 (OSX) Code analysis cleanups 2019-04-08 23:13:39 +02:00
twinaphex 34f4d5ed0e Cleanups 2019-03-11 18:33:24 +01: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 822edd4487 Fix sorting of playlists with blank labels 2019-03-05 15:37:50 +00:00
jdgleaver 33c27606d3 Finalise integration of per-content runtime logs (runtime sublabels on all playlists, 'last played' timestamp added to playlist sublablels,
content_runtime.lpl retired)
2019-03-01 14:06:40 +00:00
Brad Parker 44c4be1863 add option to track how long content has been running over time 2019-02-12 00:32:01 -05:00
twinaphex 9bb7132b97 Move command_playlist_ functions to playlist.c
(RGUI) Header buildfix
2019-01-20 01:57:24 +01:00
Brad Parker e81ad553ad playlist: free filestream before early returning 2019-01-18 19:03:25 -05:00
orbea bc09245dee Fix -Wmissing-braces warning with clang. 2019-01-16 13:14:48 -08:00
orbea e503f9e922 Silence errors for empty playlist files.
Fixes https://github.com/libretro/RetroArch/issues/8015
2019-01-16 09:40:21 -08:00
Brad Parker 88750850dc move playlist entries into "items" array to allow for top-level metadata 2019-01-12 13:46:28 -05:00
Brad Parker a331b7420e update copyrights 2019-01-09 17:19:19 -05:00
Brad Parker c7041260d7 add JSON playlist format 2019-01-09 17:13:13 -05:00
Brad Parker 0c634382f9 fix heap overflow with playlists 2019-01-08 23:08:58 -05: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
twinaphex bce7742745 Create playlist_cached functions inside playlist.c 2018-04-10 17:40:29 +02:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
twinaphex c4d8a8c800 Free after intfstream_close 2017-12-11 20:24:00 +01:00
twinaphex 54ce2ec5e9 playlist.c - use intfstream 2017-12-11 12:57:53 +01:00
twinaphex 61d3f90cae Add hint defines to libretro.h 2017-12-11 12:53:47 +01:00
twinaphex 318f17c4cb Start using VFS API constant defines 2017-12-11 12:15:00 +01:00
twinaphex 2e979ec537 Replace function signatures of file_stream file functions 2017-12-10 22:25:38 +01:00
twinaphex 95cc8e12d2 Get rid of RFILE_MODE_READ_TEXT dependency for config file/playlist 2017-12-10 21:28:13 +01:00
Alcaro e07ed18105 Fix text mode dependency 2017-12-10 21:00:24 +01:00
David Walters deb017e17f On Windows builds, don't use case sensitive path comparisons when pushing to a playlist. 2017-12-08 23:50:00 +00:00
Alcaro 2b3cc8898a
Fix this one for non-stdio backends
Why does filestream_get_fp exist
2017-12-04 13:41:04 +01:00
twinaphex cda840683b playlist.c - some optimizations 2017-11-26 00:02:28 +01:00
twinaphex df7513be27 Cleanups 2017-11-25 23:39:31 +01:00
Brad Parker 68a8198e4a convert more file IO functions to use filestream, fixes encoding issues on Windows 2017-10-29 12:08:24 -04:00
twinaphex c68db61188 Silence more Clang warnings 2017-10-11 22:49:13 +02:00
twinaphex 9fc063cd43 playlist.c - use malloc instead of calloc 2017-09-29 05:13:10 +02:00
Higor Eurípedes ab50eca024 (playlist.c) Fix clear/free loop conditionals 2017-08-19 08:40:09 -03:00
twinaphex 147374c9c1 You can now rename playlist entries 2017-08-14 20:07:43 +02:00
twinaphex 60296c0b7d Improve logs some more 2017-07-01 04:37:32 +02:00
twinaphex e9f9702a2d (playlist.c) Don't expose struct details to outside 2017-07-01 03:38:36 +02:00
twinaphex 5636b0fdd6 playlist.c - cleanup 2017-06-30 20:17:34 +02:00
twinaphex 0bd74c923f (playlist.c) Turn this code more robust 2017-05-29 20:36:18 +02:00
twinaphex e192d4eaa6 (Playlist) Prevent us writing the playlist file another time
after we have already saved it once
2017-04-23 12:54:13 +02:00
twinaphex 7e3cce9397 Only write to playlists if they are modified 2017-04-23 12:25:54 +02:00
twinaphex 8c89ec158c Update copyrights 2017-03-22 03:09:18 +01:00
twinaphex d297899234 Cleanups; header includes 2017-01-09 02:00:27 +01:00
twinaphex f6ebcebfea playlist.c - cleanup 2017-01-07 18:52:57 +01:00
twinaphex 2156bb43a1 Be more careful with allocation and assignment 2016-12-25 01:46:32 +01:00
twinaphex cf6d6c584e Get rid of playlist_entry_get_label 2016-12-15 12:02:01 +01:00
Alcaro fd9e721f97 Merge pull request #4183 from markwkidd/patch-3
accept playlists with Unix and Windows style line endings
2016-12-14 21:48:20 +01:00
markwkidd 35437057b9 correct comment for accuracy 2016-12-14 15:32:47 -05:00
twinaphex 48e60d075c playlist_free_entry - use string_is_empty 2016-12-11 23:00:26 +01:00
markwkidd c6bc316e04 Update playlist.c 2016-12-10 11:03:28 -05:00
markwkidd edf58d9e29 Update playlist.c 2016-12-07 16:08:09 -05:00
markwkidd e65b4d8c1c Update playlist.c 2016-12-07 16:07:45 -05:00
markwkidd 72d31c6fbe Update playlist.c 2016-12-07 15:52:14 -05:00
markwkidd f710129f32 cleaner to use strpbrk 2016-12-07 15:51:09 -05:00
markwkidd a49912c863 accept playlists with Unix and Windows style line endings 2016-12-07 15:35:49 -05:00
twinaphex f017593501 Reduce size of some char variables and get rid of some implicit memsets 2016-10-27 09:44:20 +02:00
twinaphex cb772047ff Prevent some more memsets 2016-10-21 19:32:44 +02:00
twinaphex 8578e19903 playlist_read_file - prevent implicit slow memsets 2016-10-09 09:07:53 +02:00
twinaphex d7a90dd9bb playlist.c - cleanups 2016-09-29 10:16:48 +02:00
twinaphex ac416b4494 Try to be more safe here 2016-09-29 09:36:24 +02:00
Jean-André Santoni f06e76301e (Menu) Get Remove from Playlist to work on history playlists 2016-08-29 02:22:05 +02:00
Jean-André Santoni a5fc3b01ba (Menu) Implement playlist_delete_index 2016-08-29 01:38:46 +02:00
Jean-André Santoni f387e627f3 (Menu) Start adding Remove from Playlist action 2016-08-29 01:17:02 +02:00
twinaphex cd9e10b3d1 (playlist.c) Cleanups 2016-08-28 18:47:34 +02:00
twinaphex 04c9db254e Start preparing playlist code 2016-07-30 21:27:40 +02:00
twinaphex 2a883caf17 Buildfix 2016-07-23 02:53:48 +02:00
twinaphex 1ebeeeb725 (PS3) Playlists and history lists should save now again;
(HAVE_DYNAMIC not defined) libretro_path should get read from config file
to prevent instance where settings->path.libretro is empty, which lead to
history not being able to be pushed to
(History/Playlists) If we don't have core info files and core_name
is therefore blank, we should attempt
a fallback path so that it infers the name from the core basename instead
2016-07-23 00:15:37 +02:00
twinaphex 6918a4d48e Add some more logging to playlist.c 2016-07-22 10:15:33 +02:00
Sebastien Ronsse 2b3718a86c playlist: Fix memory leak due to unallocated playlist entry strings 2016-06-21 10:53:33 +10:00
twinaphex 2b33c731d0 Create RFILE_MODE_READ_TEXT 2016-06-03 03:14:42 +02:00
twinaphex ac6a319a9d playlist.c - use filestream 2016-06-03 00:12:58 +02:00
twinaphex 43f06aecd9 (playlist.c) Prevent warnings 2016-06-01 05:34:15 +02:00
Twinaphex b81b5b0dfe Revert "playlist.c - prevent logically dead code -a nd also try to prevent memleak"
This reverts commit a1034716e1.
2016-05-26 22:22:30 +02:00
twinaphex bd5c0effa4 Revert "playlist_free_entry - cleanups"
This reverts commit 9624406438.
2016-05-26 22:17:42 +02:00
Twinaphex 5a7ab3a394 Revert "Free before doing strdup"
This reverts commit 189f8d58ec.
2016-05-26 22:07:03 +02:00
twinaphex 189f8d58ec Free before doing strdup 2016-05-26 22:03:37 +02:00
twinaphex a1034716e1 playlist.c - prevent logically dead code -a nd also try to prevent memleak 2016-05-26 18:12:27 +02:00
twinaphex 9624406438 playlist_free_entry - cleanups 2016-05-26 16:37:39 +02:00
twinaphex aae721a9d0 Remove logically dead code 2016-05-24 04:26:24 +02:00
twinaphex 449c7483cd Rename content_playlist_ to playlist_ 2016-05-16 09:07:44 +02:00
Alcaro eae911bcd2 No need to remove function names, they don't slow anything down and they're invaluable for crash debugging. 2016-05-06 20:20:21 +02:00
twinaphex d5a0819aba Nit 2016-03-21 19:53:48 +01:00
twinaphex 3d7bc4f7fe (playlist.c) Style nits 2016-03-21 19:52:33 +01:00
radius 4165c89385 only check for identical paths, not CRC too 2016-01-26 22:10:42 -05:00
radius 2af0708047 do not push entries that are already on the database 2016-01-26 15:22:16 -05:00
twinaphex 2d6142a01e N/A 2016-01-23 19:39:18 +01:00
twinaphex 454abdee48 stdstring - create string_is_equal 2016-01-20 04:07:24 +01:00
twinaphex 7a55ae3765 Start updating headers for 2016 2016-01-10 04:06:50 +01:00
twinaphex 6c4b6310aa (playlist.c) Go through wrapper functions 2015-11-29 00:46:47 +01:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
twinaphex ac1b292cfd Fix -Wmissing-braces warnings 2015-06-12 19:25:08 +02:00
twinaphex c36e21ed13 (General) Cleanup 2015-06-12 17:00:37 +02:00
Higor Eurípedes a0457d77f3 (playlist) Add content_playlist_qsort() 2015-06-11 10:04:35 -03:00
Higor Eurípedes aa80b352ee (playlist) Set conf_path and entries to NULL on free 2015-06-09 17:06:20 -03:00
Higor Eurípedes c1c4f4128b (playlist) Dont write the playlist file on free() 2015-06-09 17:05:21 -03:00
twinaphex 29e3f5ff66 Expand playlist format - rename it to 'lpl' 2015-06-08 23:38:03 +02:00
twinaphex 9d97b227b7 Content Collection core selection should now work 2015-05-26 08:38:38 +02:00
twinaphex a19f6e21d8 Cleanup content_playlist_update 2015-05-26 06:52:00 +02:00
twinaphex 18e68918f3 core_info_get_name and content_playlist_update 2015-05-26 06:28:16 +02:00
twinaphex 3c6e4e8dbf content_playlist_push - some improvements 2015-05-26 04:17:27 +02:00
twinaphex 8fb8887c34 Create new playlist format 2015-05-26 00:12:49 +02:00
twinaphex 350a33a4ae Start implementing database_info_list_iterate_found_match 2015-05-25 18:46:36 +02:00
Higor Eurípedes 2008667640 (Menu) Fix core loading from history 2015-03-22 19:17:40 -03:00
twinaphex c63979011e Should fix segfault when loading SET_NO_GAME cores 2015-03-22 22:19:14 +01:00
twinaphex 7ab6e9a469 Create content_playlist_get_index_by_path -make pointers
non-const
2015-02-03 04:12:32 +01:00
twinaphex d9094506c7 Rough implementation of game loading from database 2015-02-03 00:59:16 +01:00
Twinaphex a5b306406c More documentation 2015-01-18 09:25:48 +01:00
twinaphex 890e86293c Cleanup playlist.c/.h 2015-01-17 03:48:59 +01:00
Twinaphex 88cc144ce0 Document playlist.c 2015-01-16 21:09:05 +01:00