Commit Graph

765 Commits

Author SHA1 Message Date
twinaphex
c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
jdgleaver
3d4ddebcaf Add several LCD-effect video filters 2020-09-24 16:11:07 +01:00
twinaphex
0e49f058f3 Use strcpy_literal in more places 2020-09-19 23:59:06 +02:00
jdgleaver
5a0dc5524d Fix string_list memory leaks 2020-09-08 14:58:49 +01:00
twinaphex
318ac1f667 (filebrowser_parse) Use non-heap allocated string_list functions 2020-09-04 06:29:30 +02:00
twinaphex
662e37f670 Replace more instances of string_split 2020-08-26 13:35:05 +02:00
twinaphex
ad61d8ff92 Simplify config_get_entry 2020-08-26 02:17:37 +02:00
twinaphex
54dfaaa3bc Simplify config_get_bool 2020-08-26 01:37:57 +02:00
twinaphex
48f2612223 (config_file) config_set - some of the char arrays were too big
for the type in question
2020-08-25 20:58:55 +02:00
twinaphex
1d53f3ca29 Move static functions to the top 2020-08-25 18:38:12 +02:00
twinaphex
6cc8a2acbd Rewrite config_file_new_from_string 2020-08-25 18:37:14 +02:00
twinaphex
d573a802c4 Simplify config_file_new_alloc 2020-08-25 18:12:28 +02:00
twinaphex
f454665be2 Optimize config_file_exists 2020-08-25 18:10:32 +02:00
twinaphex
2c0fb6ff6c config_file_parse_line - put sub_conf on stack 2020-08-25 17:54:22 +02:00
twinaphex
79c8a94857 (config_file.c) config_set_string - simplify 2020-08-25 15:50:26 +02:00
twinaphex
7771dbd594 Rename config_file_new_internal to config_file_load_internal 2020-08-25 15:36:26 +02:00
twinaphex
cd0a27680a (config_file.c) Cleanup 2020-08-25 15:34:11 +02:00
twinaphex
5a69e6e75c Simplify config_file.c code 2020-08-25 15:29:45 +02:00
twinaphex
b7b96fb142 (config_file) Cleanups 2020-08-25 12:39:28 +02:00
twinaphex
f18af41876 Cut down on add_sub_conf 2020-08-25 12:29:08 +02:00
twinaphex
1e5ccb7319 Create config_file_get_realpath 2020-08-25 12:20:09 +02:00
twinaphex
74a3e5be8a Simplify is_path_accessible_using_standard_io 2020-08-24 23:41:10 +02:00
twinaphex
42a3d433dc Restore this code 2020-08-24 23:25:57 +02:00
twinaphex
ceca44b233 Cleanup config_initialize_internal 2020-08-24 23:09:55 +02:00
twinaphex
88f01c51a7 (config_file) Cleanups 2020-08-24 22:57:08 +02:00
twinaphex
b681b2af49 config_set_string: simplify 2020-08-24 21:25:55 +02:00
twinaphex
a954118faf (config_file) Cleanups 2020-08-24 21:16:25 +02:00
twinaphex
4f29bef56e (config_file) Cleanups 2020-08-24 21:11:41 +02:00
twinaphex
150e96144a Cleanup 2020-08-24 20:40:49 +02:00
twinaphex
dd13e6b044 (config_file.c) Use snprintf 2020-08-24 19:39:41 +02:00
twinaphex
24910b6999 (config_file) Simplify config_sort_compare_func 2020-08-24 19:29:24 +02:00
twinaphex
f48dc0ff5b Reorder structs, alignment 2020-08-15 20:38:31 +02:00
twinaphex
7642cf5fa5 Struct reorders/alignment 2020-08-14 22:54:46 +02:00
twinaphex
659d50c916 Struct reorderings 2020-08-14 18:31:28 +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
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
97297f71af (MSVC 2005) MSVC 2005 and earlier cannot use nbio_windowsmmap.c -
so disable it
2020-08-01 22:51:23 +02:00
twinaphex
3635bf0d01 Silence some warnings 2020-08-01 18:04:56 +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
twinaphex
be0148406e fill_pathname_application_dir - cleanup 2020-07-11 19:45:24 +02:00