715 Commits

Author SHA1 Message Date
Bernhard Schelling
54db0fe515 Fix memory leak
Properly release buffers for extracted files from ZIP
Use RETRO_VFS_SEEK_POSITION_START instead of SEEK_SET for filestream_seek
2020-07-14 00:29:46 +09:00
Bernhard Schelling
0ddb073784 First set of cleanups to archive handling
- Don't read the entire archive file into memory on systems without HAVE_MMAP
- Support ZIP files between 2GB ~ 4GB on 32bit architectures
- Remove zip exclusive members from `file_archive_transfer`
- Add `zip_context_t` for zip like the already existing `sevenzip_context_t`
- Unify cleanups of zip and 7z in `file_archive_file_backend::archive_parse_file_free`
- Handle some sizes and offsets as int64_t (preparation for future Zip64 support)
- Handle compression methods in `zlib_stream_decompress_data_to_file_init` not in `file_archive_perform_mode`
- Return progress of 7z iterating with `file_archive_parse_file_progress`
2020-07-12 00:51:35 +09:00
twinaphex
6e59d52184 Cleanups/comments 2020-07-07 05:58:07 +02:00
twinaphex
5a0bc479b1 (libretro-common) Avoid more callocs 2020-06-28 20:57:00 +02:00
twinaphex
c3f8b7741c Add fallback paths for nbio_stdio.c 2020-06-27 14:07:41 +02:00
twinaphex
1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex
b39ef98d2a Small optimization 2020-06-26 14:45:48 +02:00
twinaphex
2f235f0abb Cleanups 2020-06-25 23:16:08 +02:00
jdgleaver
b6364407fd Optimise parsing of configuration files 2020-06-25 15:15:08 +01:00
twinaphex
e727e85b1d Updates 2020-06-25 14:01:19 +02:00
twinaphex
aa48eeb98e Turn path_default_slash uppercase, and do some optimizations 2020-06-25 13:36:01 +02:00
twinaphex
601a73fa8b Use string_starts_with_size where possible - avoids the strlen 2020-06-25 12:51:04 +02:00
twinaphex
35527c24c3 Revert "Optimize config_get_bool"
This reverts commit 1c38dc67c28c3537a1f841a127e3bfc2ff55ee09.
2020-06-25 12:08:36 +02:00
jdgleaver
9c2b6dffc2 (config_file) Fix handling of comments at the end of config file lines 2020-06-25 10:29:40 +01:00
twinaphex
1c38dc67c2 Optimize config_get_bool 2020-06-25 03:03:42 +02:00
twinaphex
74b3b505c9 This part of the code looked suspicious and was leaking memory
for one codepath
2020-06-24 18:39:21 +02:00
twinaphex
53f3199652 Reordered this code somewhat 2020-06-24 15:40:42 +02:00
jdgleaver
9b22874c73 (config_file) Optimise parsing of 'comment' lines in configuration files 2020-06-24 14:31:46 +01:00
twinaphex
b9f65af98a (Libretro-common) Sync 2020-06-24 15:05:03 +02:00
twinaphex
0cdea62072 (core_info.c) Try to avoid config_get_string 2020-06-24 11:57:58 +02:00
jdgleaver
0a33e562f4 Add option to backup/restore installed cores 2020-06-04 12:20:58 +01:00
twinaphex
0edd97d5db file_path.c) Cleanup 2020-05-21 20:04:36 +02:00
jdgleaver
f522cfcce8 Optimise 'path_is_absolute()' 2020-05-21 13:28:42 +01:00
Francisco Javier Trujillo Mata
1eeb3dcf30 Adapt PS2 port to new SDK with newlib support (CDVDFS support is missing) 2020-05-20 20:13:19 +02:00
jdgleaver
c346e1f816 Various file path handling optimisations 2020-05-20 17:05:22 +01:00
twinaphex
4f9a3f6813 Update 2020-04-28 16:25:00 +02:00
jdgleaver
9eb8472805 Only write config files to disk when parameters change 2020-04-27 17:06:35 +01:00
twinaphex
bdf9969c7e Update libretro-common 2020-04-23 07:20:06 +02:00
Vladimir Serbinenko
2fb7ba22e5 PSL1GHT port
Working:

* packaging
* running cores
* switching cores
* gamepad including axis
* rgui
* audio
* video

Not working:

* OSD
* menus other than rgui
* shaders
* Graphical acceleration
* Proper signing
* ODE build
* rumble
* keyboard
* mouse

Not tested:

* A lot
2020-03-30 05:39:22 +02:00
twinaphex
cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
twinaphex
d631da7d11 Start taking settings dependencies out of rarch_log_file_init
function
2020-01-30 19:04:05 +01:00
twinaphex
12ec690044 Add samples test file for config_file 2020-01-30 17:02:52 +01:00
twinaphex
74cd84399f Cleanups - Replace '== NULL' 2020-01-30 16:47:33 +01:00
twinaphex
eb4e365820 (libretro-common) Cleanups 2020-01-27 17:00:18 +01:00
twinaphex
df8f93e9d5 Split up VFS file_path code into separate file 2020-01-09 15:44:48 +01:00
jdgleaver
1df3e20bdd Add option to automatically rotate overlays 2019-10-04 12:15:57 +01:00
Twinaphex
ae7d956341 Silence warning 2019-09-23 01:44:53 +02:00
twinaphex
b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
LazyBumHorse
db723df879 fix path_relative_to 2019-09-22 16:29:54 +02:00
twinaphex
7cfd996802 Add return value to fill_pathname_noext 2019-09-21 01:41:56 +02:00
twinaphex
6d8bc91220 Start returning sizes for file_path functions 2019-09-21 00:01:09 +02:00
twinaphex
3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex
15470596ad Remove 'puts' lines 2019-09-19 04:19:18 +02:00
twinaphex
f4c6b06b49 (file_path.c) Remove some strlcpy/strlcat invocations 2019-09-19 03:45:18 +02:00
twinaphex
8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex
5024b77492 Prevent more strlcats that are quite trivial 2019-09-17 02:43:40 +02:00
twinaphex
4d45174940 file_path.c - cleanups 2019-08-11 22:37:23 +02:00
Brad Parker
7935cc80ee media: add function to parse cue and detect system from first data track 2019-07-30 02:37:00 -04:00
jdgleaver
35cdff8704 (config_file.c) Only attempt to load config file if it exists 2019-07-25 12:25:52 +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