Commit Graph

3048 Commits

Author SHA1 Message Date
jdgleaver
b19eb64329 (m3u_file) Replace static entries array with dynamic array via RBUF library 2020-08-13 17:25:45 +01:00
Bernhard Schelling
48fabb7f88 Simplify gfx_animation by switching from dynarray to RBUF 2020-08-13 05:23:32 +09:00
jdgleaver
81bf22c3fb RETRO_ENVIRONMENT_GET_INPUT_MAX_USERS: Clarify variable update frequency comment 2020-08-11 14:54:22 +01:00
jdgleaver
ee8a2f4268 Add API extension for cores to query the number of active inputs provided by the frontend 2020-08-11 14:07:00 +01:00
twinaphex
4092fd7e83 Minor cleanup 2020-08-11 06:35:12 +02:00
Érico Rolim
057dd563aa [linux] Add missing include in nbio_linux.c.
On musl-libc, the compiler would print a warning for nbio_linux.c:
"warning: 'struct timespec' declared inside parameter list will not be
visible outside of this definition or declaration", indicating a missing
header defining this structure.

On glibc, this definition is provided through the stdlib header.
2020-08-10 00:33:43 -03:00
Bernhard Schelling
4a09907802
Return true when RBUF_TRYFIT is called with 0 2020-08-07 05:19:09 +09:00
Bernhard Schelling
0a67c0416a Change playlist to use dynamic array
Instead of initial 12MB memory allocation, use a dynamically growing array.
This shares the container structure (now called rbuf) with the explore menu.
2020-08-07 03:27:52 +09:00
twinaphex
3680804217 Undo path_basedir_size 2020-08-04 03:05:20 +02:00
twinaphex
4a6f49fc0a (360) Fix build 2020-08-03 22:35:10 +02:00
twinaphex
c5b9786675 Turn retro_sleep into macros for most systems 2020-08-03 20:11:00 +02:00
twinaphex
f35010e1ae Cleanups 2020-08-02 10:28:23 +02:00
twinaphex
8a24cc350e Resync 2020-08-01 22:55:08 +02:00
twinaphex
97297f71af (MSVC 2005) MSVC 2005 and earlier cannot use nbio_windowsmmap.c -
so disable it
2020-08-01 22:51:23 +02:00
twinaphex
6f0874f2b1 Silence warning 2020-08-01 18:26:20 +02:00
twinaphex
aba17fdc92 Warning fix 2020-08-01 18:18:09 +02:00
twinaphex
cd9ea1f44b Another warning fix 2020-08-01 18:16:19 +02:00
twinaphex
4ee45304b0 More warning fixes 2020-08-01 18:14:48 +02:00
twinaphex
3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +02:00
Jamiras
92e61ccb5c move temporary buffer off stack 2020-07-29 19:54:48 -06:00
twinaphex
4f931f2729 Use UINT32_C / UINT64_C throughout the codebase 2020-07-29 04:48:11 +02:00
twinaphex
eba83390ba Warning fixes 2020-07-23 07:39:08 +02:00
twinaphex
fa6d5333f7 More silencing of warnings 2020-07-23 06:39:21 +02:00
twinaphex
98516280ad (s16_to_float) Silence aggressive-loop-optimization undefined
behavior because of potential signed integer overflow
2020-07-23 06:35:30 +02:00
Francisco Javier Trujillo Mata
8334be07bf Fix issue with the PS2 and PRI_SIZET 2020-07-21 10:17:16 +02:00
Autechre
343a04e2b8
Merge pull request #11027 from schellingb/archive_cleanup_1b
Use MMAP again for ZIP loading/parsing
2020-07-16 03:28:54 +02:00
Bernhard Schelling
b03cdbd0da First set of cleanups to archive handling (Rev B)
- 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 ZIP 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`
- Uses MMAP where available, for files up to 256MB
2020-07-16 02:47:59 +09:00
Twinaphex
367530683c Get rid of unused variables 2020-07-15 19:47:45 +02:00
twinaphex
06064a0527 Revert "Bring back MMAP support"
This reverts commit 32dcff3880.
2020-07-13 23:52:23 +02:00
twinaphex
c84aa90075 Merge branch 'archive_cleanup_1' of git://github.com/schellingb/RetroArch 2020-07-13 21:30:02 +02:00
Bernhard Schelling
32dcff3880 Bring back MMAP support
Will be used where available for files up to 256MB
2020-07-14 03:04:01 +09:00
Bernhard Schelling
c05f1e91fc Fix another memory leak that was there originally
When loading a single file out of a ZIP with many files it leaked memory allocated for all found filenames that weren't requested.
2020-07-14 03:00:47 +09:00
Bernhard Schelling
a978b939ff Fix C89 build 2020-07-14 01:56:48 +09:00
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
twinaphex
750140779c (libretro-common) Fix 2020-07-13 16:18:46 +02:00
Autechre
84ca79fcc1
Merge pull request #11006 from Jamiras/save_task_wait
only wait for save task to complete
2020-07-12 19:14:04 +02:00
Jamiras
6f964681ae update comment 2020-07-12 08:21:02 -06:00
twinaphex
be0148406e fill_pathname_application_dir - cleanup 2020-07-11 19:45:24 +02:00
twinaphex
8656b3d6f8 Create specialized optimized path_basedir_size 2020-07-11 19:29:43 +02: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
Jamiras
9aa42c9d5e only wait for save task to complete 2020-07-10 20:18:03 -06:00
twinaphex
638d692d2e Cleanups 2020-07-09 02:35:32 +02:00
twinaphex
e48ffd14cd Cleanups 2020-07-09 00:24:09 +02:00
twinaphex
0a1942f528 Turn fifo_read_avail and fifo_write_avail into macros 2020-07-07 08:13:32 +02:00
twinaphex
6e59d52184 Cleanups/comments 2020-07-07 05:58:07 +02:00
twinaphex
d5bdec3f60 (net_http) Refactor 2020-07-05 00:51:41 +02:00
twinaphex
4489e5490d Add more tests 2020-07-03 01:34:54 +02:00
twinaphex
96dd505a0f (libchdr) Backport baka0815 commits 2020-07-01 19:50:46 +02:00
twinaphex
6bdc9795e7 (libchdr) Backport f08156f947 2020-07-01 19:44:17 +02:00
twinaphex
5ded7872de (libretro-common/libchdr) Backport 2785de8481 2020-07-01 19:41:24 +02:00