jdgleaver
cef6707304
Clarify usage of 'RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE' callback
2020-11-12 16:47:35 +00:00
HyperspaceMadness
5008ac6eb0
Merge branch 'master' into Shader_Save_Load
2020-11-10 17:05:23 -05:00
jdgleaver
317ad3181d
(config_file) Enable saving of changed parameters when '#include' directives are used
2020-11-09 11:18:49 +00:00
jdgleaver
5c50d2f389
(RXML) Fix memory leak
2020-11-06 17:40:32 +00:00
HyperspaceMadness
f6e35420bc
Simple Shader Save Cleanup
2020-11-02 21:07:20 -05:00
twinaphex
3fdf93a273
Update libretro-common
2020-11-01 17:22:32 +01:00
HyperspaceMadness
70bf90c5d8
Shader_Preset_Simple_Save_Cleaned_2020_11_01
2020-11-01 09:18:40 -05:00
twinaphex
a2a58147e7
Update libretro-common
2020-10-31 06:22:10 +01:00
Bernhard Schelling
f6f8d3e235
Replace rapidjson parser/writer in discord-rpc with rjson
2020-10-29 16:55:23 +09:00
twinaphex
a38bd6d71a
(UWP) Buildfix
2020-10-28 19:16:27 +01:00
Bernhard Schelling
cc1937a3af
Fix possible output corruption in rjson
...
Was possible when translation service was adding a base64 encoded string with a length less than 1536 characters.
Introduced in commit c20b01e9e1
.
2020-10-26 10:44:04 +09:00
Bernhard Schelling
c20b01e9e1
Replace custom JSON parser/writer in translation service with rjson
2020-10-25 21:43:30 +09:00
twinaphex
ee474b4feb
Add missing string.h header include
2020-10-24 17:01:55 +02:00
jdgleaver
3e52f318d5
AI Service fixes
2020-10-22 15:59:26 +01:00
jdgleaver
af6c2d6969
Add API extension for overriding frontend audio latency
2020-10-20 15:37:34 +01:00
jdgleaver
4961252a7a
Add API extension for cores to monitor frontend audio buffer occupancy
2020-10-17 15:06:03 +01:00
twinaphex
24392446af
Assume HAVE_THREAD_ATTR cannot be defined for Emscripten
2020-10-15 06:40:37 +02:00
Bernhard Schelling
b90ce9b451
Fixes for Clang warnings
2020-10-12 05:25:12 +09:00
Bernhard Schelling
c0cb3373e3
Fixes for CXX_BUILD
2020-10-12 04:30:45 +09:00
schellingb
ba1ed2da4b
New faster json parser/writer library rjson
...
Replace existing libraries jsonsax_full and jsonsax with it
2020-10-12 03:02:20 +09:00
Justin Weiss
1ee7b71884
[3DS] Use the CondVar API for condition variables
...
The pthread wrapper uses semaphores to simulate condition variables,
but it is easy to hit the 3DS' limit of available semaphores. libctru
2.0 supplies a lightweight condition variable API. We will use that
when it exists, and backport it when it doesn't.
2020-10-10 19:31:08 -07:00
jdgleaver
b431285819
(GEKKO) Remove trailing slash when calling retro_vfs_stat_impl()
2020-10-05 15:16:58 +01:00
Autechre
a033f4ab62
Merge pull request #11414 from jdgleaver/cdrom-strcasestr
...
libretro-common/cdrom: Add missing compatibility header
2020-10-05 14:20:01 +02:00
jdgleaver
3c06a907ca
Fix directory creation on GEKKO platforms when path contains a trailing slash
2020-10-05 10:59:55 +01:00
jdgleaver
6c8c8b73f2
libretro-common/cdrom: Add missing compatibility header
2020-10-05 10:28:45 +01:00
twinaphex
0ad9175d77
(sinc resampler) We don't need to keep fetching these variables
...
within this inner loop
2020-10-03 21:20:32 +02:00
twinaphex
66deef29c6
Cleanups/style nits
2020-10-02 21:10:07 +02:00
twinaphex
c6f5973281
Replace while(true) with for(;;)
2020-10-02 21:02:59 +02:00
twinaphex
f84c6ec8cd
Use STRLEN_CONST where possible; and don't needlessly do strlen
...
twice
2020-10-02 20:57:29 +02:00
twinaphex
7e597c3fd0
Cleanups
2020-09-30 15:47:03 +02:00
twinaphex
3072342b2c
Backport libretro-common changes
2020-09-30 14:50:17 +02:00
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
twinaphex
1296fc4745
use strlcpy_literal for string literal copies
2020-09-19 23:28:01 +02:00
Autechre
a7a28906d3
Merge pull request #11344 from Alcaro/master
...
Add BearSSL support, as alternative to mbedTLS
2020-09-19 15:07:30 +02:00
Alcaro
18f46e65ea
Add BearSSL support
2020-09-19 00:31:36 +02:00
Alcaro
c7669fdce5
Fix --enable-debug build
...
libretro-common/audio/audio_mixer.c:195:32: error: unknown type name ‘rwav_t’
static bool wav_to_float(const rwav_t* wav, float** pcm, size_t samples_out)
^~~~~~
plus about 500 errors when trying to use that struct
2020-09-18 21:45:32 +02:00
twinaphex
c2cd39379a
(gfx_widgets.c) Put FIFO queue on stack
2020-09-18 02:18:21 +02:00
Autechre
33a04a794f
Merge pull request #11312 from justinweiss/3ds-enable-threading
...
[3DS] Enable threading and add a threaded audio driver
2020-09-10 06:50:12 +02:00
Autechre
2d3c63f545
Merge pull request #11248 from justinweiss/update-libctru
...
[3DS] Update to libctru 2.0
2020-09-10 06:49:54 +02:00
Justin Weiss
fb9aa961b7
[3DS] Increase file buffer size and savestate chunk size
2020-09-09 18:29:47 -07:00
jdgleaver
5a0dc5524d
Fix string_list memory leaks
2020-09-08 14:58:49 +01:00
M4xw
bad97e29d2
Fix Regression caused by 023fd4f3
2020-09-04 20:56:26 +02:00
twinaphex
318ac1f667
(filebrowser_parse) Use non-heap allocated string_list functions
2020-09-04 06:29:30 +02:00
twinaphex
047efd2cd4
Revert "Resync"
...
This reverts commit f28056364a
.
2020-09-01 17:43:22 +02:00
twinaphex
f28056364a
Resync
2020-09-01 17:06:52 +02:00
twinaphex
11719badcb
Simplify mb_to_mb_string_alloc
2020-08-29 05:21:48 +02:00
Justin Weiss
f53c137459
[3DS] Enable threading
2020-08-27 19:36:39 -07:00
Justin Weiss
cb2c2c530c
Update libretro-common ctr_pthread.h
...
Older devkitARM toolchains incorrectly prevent _pthreadtypes.h from being included. Newer versions include it.
In order to make a version of ctr_pthread.h that works under both old and new toolchains, the typedefs are guarded by a define in _pthreadtypes.h that is only active if the other types are defined.
I've also added casts in order to make sure this compiles correctly with the standard pthread.h type definitions.
2020-08-27 08:36:39 -07:00
twinaphex
022fa54236
Nit
2020-08-27 15:22:40 +02:00
twinaphex
c51959d45b
Make net_http_urlencode thread-safe
2020-08-27 15:21:22 +02:00
Justin Weiss
9ae2514009
[3DS] Update to libctru 2.0
...
Set USE_CTRULIB_2=1 to build with libctru 2.0. When unset, this code
is compatible with the older toolchain.
Some 2.0 changes addressed rare problems in earlier versions:
- Save / restore stack pointer for init / exit
Otherwise, it could be outside of the range we deallocate.
- Run aptMainLoop in the audio driver to react correctly to sleep events
Other changes for 2.0:
- Remove ninjhax1 -- requires outdated APIs that have been removed
- Switch from __sync_arbiter to syncArbitrateAddress
- Use implicit gxCmdBuf
- Use gpuPresentBuffer for double buffering
2020-08-26 19:08:12 -07:00
twinaphex
044209bc5a
Create string_separate_noalloc
2020-08-26 23:46:16 +02:00
twinaphex
61c94fe248
Simplify string_list_new/string_list_initialize
2020-08-26 17:50:18 +02:00
jdgleaver
7a07cc1305
Fix 'Set Core Association' regression
2020-08-26 15:18:39 +01:00
twinaphex
e2c277d2ea
(libretro-common) Cleanups
2020-08-26 15:13:48 +02:00
twinaphex
74fc0ba494
Buildfix
2020-08-26 15:06:34 +02:00
twinaphex
662e37f670
Replace more instances of string_split
2020-08-26 13:35:05 +02:00
twinaphex
6df62bbccc
Create string_split_noalloc
2020-08-26 03:20:42 +02:00
twinaphex
a32d027f76
string_list_initialize - call deinitialize when function fails
2020-08-26 02:28:10 +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
6a88b3f20e
Cleanup strlen_size
2020-08-25 17:24:03 +02:00
Autechre
ed6f32fd80
Merge pull request #11240 from jdgleaver/string_list-safety
...
(string_list) Add checks to prevent undefined behaviour
2020-08-25 16:59:22 +02:00
jdgleaver
179e77c8b0
(string_list_join_concat) Prevent undefined behaviour if input string buffer is unterminated
2020-08-25 15:54:18 +01: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
ce185d8be6
(DSP IIR) Prevent '-Wmaybe-uninitialized' warnings
2020-08-25 13:21:22 +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
8a479e6006
Create dir_list_initialize/dir_list_deinitialize
2020-08-24 18:56:25 +02:00
twinaphex
cde5d37eb2
Put this behind RPNG_TEST
2020-08-24 18:17:47 +02:00
twinaphex
91cfcd1b83
Improve string_list_deinitialize
2020-08-24 15:11:38 +02:00
twinaphex
2452769a80
Cleanup
2020-08-24 14:20:46 +02:00
twinaphex
64f8a5990c
Create fifo_initialize/fifo_deinitialize
2020-08-24 12:17:33 +02:00
twinaphex
9caf3080b1
Cleanup
2020-08-24 12:06:56 +02:00
twinaphex
71708f8ddd
(libretro-common) Add msg_queue_initialize/msg_queue_deinitialize
2020-08-24 12:04:56 +02:00
twinaphex
7a6b9fd1b2
(Ozone) Horizontal list - put on stack - it's already on heap-allocated
...
struct as is
2020-08-24 10:22:32 +02:00
twinaphex
93fa9a0194
Add file_list_deinitialize - does everything that file_list_free
...
does except for freeing the passed struct pointer
2020-08-24 01:45:45 +02:00
twinaphex
0a69d14b11
Reimplement slang_preprocess_parse_parameters
2020-08-24 00:54:24 +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
Alcaro
e4022ab416
libretro.h: Fix contradictory comment
...
retro_get_system_info() says it can be called even before retro_init(), which means retro_deinit() doesn't need to be called at all. Mentioning deinit() in the struct definition is misleading and incorrect.
2020-08-23 18:29:12 +02:00
Twinaphex
a175af4e6a
Cleanup some unused variables
2020-08-22 18:04:34 +02:00
twinaphex
503131de66
(RPNG) Cleanups
2020-08-22 17:37:34 +02:00
twinaphex
f4432acd06
(RPGN) Cleanups to IHDR code
2020-08-22 17:34:13 +02:00
twinaphex
73ed02b5f6
(RPNG) Cleanup read_chunk_header
2020-08-22 17:18:32 +02:00
twinaphex
d6f22a7a4c
(RPNG) Simplify png_process_ihdr
2020-08-22 16:28:50 +02:00
twinaphex
c7cf9d6df7
(RPNG) Simplify rpng_start
2020-08-22 16:11:54 +02:00
twinaphex
5cc4d0da0f
(RPNG) Make sure we don't use stdio/fprintf unless DEBUG is defined
2020-08-22 16:07:03 +02:00
twinaphex
deafd70934
(RPNG) More simplifications - get rid of png_chunk struct, just pass
...
uint32_t around to function
2020-08-22 15:37:21 +02:00
twinaphex
91345fe867
(RPNG) read_chunk_header - simplify code some more
2020-08-22 15:34:32 +02:00
twinaphex
8b5b472a2d
Optimize read_chunk_header
2020-08-22 14:24:11 +02:00
twinaphex
2e6b87d156
Simplify rpng.c - read_chunk
2020-08-22 14:20:50 +02:00
twinaphex
99873ccd8a
Reorder structs, alignment
2020-08-21 09:57:11 +02:00
twinaphex
5a8da81d07
Simplify string_set
2020-08-20 19:12:38 +02:00
twinaphex
cb0a193eea
Fix RPNG build failure
2020-08-19 18:20:55 +02:00
twinaphex
dff52d8688
Revert "(audio conversion) Optimize array accesses"
...
This reverts commit 8613ece7f5
.
2020-08-19 18:18:02 +02:00
twinaphex
c4be485baf
Revert "Optimize png_reverse_filter_copy_line_rgb"
...
This reverts commit aa428cc415
.
2020-08-19 18:17:16 +02:00
twinaphex
ae0d63ccc0
Revert "Optimize png_reverse_filter_copy_line_rgba"
...
This reverts commit ad3c67f275
.
2020-08-19 18:16:57 +02:00
twinaphex
e8170a4354
Revert "Optimize png_reverse_filter_copy_line_gray_alpha"
...
This reverts commit 710226504e
.
2020-08-19 18:16:42 +02:00
twinaphex
7c19d4d009
Revert "Optimize png_read_plte"
...
This reverts commit 107b640bc0
.
2020-08-19 18:16:10 +02:00
twinaphex
ea5d134337
Revert "Optimize read_chunk_header"
...
This reverts commit 33f9ef90d8
.
2020-08-19 18:15:54 +02:00
twinaphex
282d34aeb1
Revert "(RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass"
...
This reverts commit a283b71261
.
2020-08-19 18:15:24 +02:00
twinaphex
003ff126ce
Revert "(RPNG) optimizations to copy_line_bw"
...
This reverts commit 9b29217564
.
2020-08-19 18:15:08 +02:00
Twinaphex
e3d77d7f28
Remove unused variable
2020-08-19 17:21:22 +02:00
twinaphex
9b29217564
(RPNG) optimizations to copy_line_bw
2020-08-19 12:07:56 +02:00
twinaphex
a283b71261
(RPNG) Optimize png_reverse_filter_adam7_deinterlace_pass
2020-08-19 10:05:09 +02:00
twinaphex
33f9ef90d8
Optimize read_chunk_header
2020-08-19 09:09:38 +02:00
twinaphex
107b640bc0
Optimize png_read_plte
2020-08-19 08:58:18 +02:00
twinaphex
710226504e
Optimize png_reverse_filter_copy_line_gray_alpha
2020-08-19 08:18:09 +02:00
twinaphex
ad3c67f275
Optimize png_reverse_filter_copy_line_rgba
2020-08-19 08:14:23 +02:00
twinaphex
aa428cc415
Optimize png_reverse_filter_copy_line_rgb
2020-08-19 08:09:17 +02:00
twinaphex
5166eebcaf
for loop cleanups - use space after 'for'
2020-08-19 03:06:22 +02:00
twinaphex
8613ece7f5
(audio conversion) Optimize array accesses
2020-08-19 02:46:54 +02:00
twinaphex
b39959c985
Cleanup dylib.c
2020-08-18 15:22:46 +02:00
twinaphex
624a70f062
More strings being moved from heap to stack
2020-08-18 14:47:57 +02:00
twinaphex
216190b826
Clean up more string variables on heap - move to stack
2020-08-18 14:26:15 +02:00
twinaphex
c81d06d0a1
Reorder structs, alignment
2020-08-17 15:09:19 +02:00
Alcaro
df2db8bceb
stdstring: Delete duplicate function
2020-08-16 02:33:25 +02:00
twinaphex
b69ceaea1b
Reorder structs, alignment
2020-08-16 01:07:42 +02:00
Alcaro
37efa9d52e
rpng: delete "unused" png_chunk member
...
also fix a rather ugly buffer overflow that relies on the unused member existing and being null
2020-08-16 00:27:25 +02:00
twinaphex
982fbadd15
(RBMP) Reorder structs, alignment
2020-08-16 00:13:16 +02:00
twinaphex
3d2efdd2ef
(RJPEG) reorder structs, alignment
2020-08-16 00:09:10 +02:00
twinaphex
f48dc0ff5b
Reorder structs, alignment
2020-08-15 20:38:31 +02:00
twinaphex
3ec21b292c
Reorder structs, alignment
2020-08-15 01:18:23 +02:00
twinaphex
a8646a2610
Reorder structs, alignment
2020-08-15 00:44:35 +02:00
twinaphex
7642cf5fa5
Struct reorders/alignment
2020-08-14 22:54:46 +02:00
twinaphex
4c0d9bc68d
Struct reordering/alignment
2020-08-14 21:19:32 +02:00
twinaphex
659d50c916
Struct reorderings
2020-08-14 18:31:28 +02:00
twinaphex
023fd4f330
Alignment changes
2020-08-14 18:19:57 +02:00
twinaphex
b3963a2897
Struct alignment changes
2020-08-14 18:03:09 +02:00
twinaphex
d0b68ee838
(RPNG) Struct alignment changes
2020-08-14 17:54:03 +02:00
twinaphex
b4dc19d7aa
(RPNG) Cleanups
2020-08-14 17:49:33 +02:00
twinaphex
18cb55e207
Remove dynarray.h - rbuf.h replaces it
2020-08-14 16:09:13 +02:00
twinaphex
f3b440bab9
Some struct reordering
2020-08-14 07:07:34 +02:00
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
twinaphex
8d8800229c
(libchdr) Backport 16eae7e4e5/src/chd.c
2020-07-01 19:27:14 +02:00
twinaphex
d2afef58d7
(libchdr) Resync against c05c91300a (diff-b4791a43102472fe8d3959f86bd376c4)
2020-07-01 19:23:33 +02:00
twinaphex
9e9fb47c05
(libchdr) More resyncs
2020-07-01 19:21:40 +02:00
twinaphex
436f161cc3
(libchdr) More rebases
2020-07-01 19:15:45 +02:00
twinaphex
88804a05de
(libchdr) Cleanups + attempts to rebase against upstream
2020-07-01 19:12:20 +02:00
twinaphex
8f65c4e6dd
Cleanups
2020-07-01 17:10:00 +02:00
twinaphex
3580db3ebe
(deps/mbedtls) Cleanups
2020-07-01 03:48:13 +02:00
twinaphex
d6ec4029db
(mbedtls) Remove MBEDTLS_DEBUG_C
2020-07-01 01:29:27 +02:00
twinaphex
69756ebd93
Add HAVE_NEAREST_RESAMPLER ifdef
2020-06-30 21:45:05 +02:00
twinaphex
2c62a10d6c
- Fix codepaths for compiling without HAVE_RWAV
...
- Add back HAVE_BSV_MOVIE
2020-06-30 18:08:49 +02:00
twinaphex
ad8c22e6ac
Fix build for MSVC 2003
2020-06-30 01:50:12 +02:00
twinaphex
968922e151
Fix static code analysis warnings
2020-06-29 21:24:32 +02:00
twinaphex
a2f2a882cb
Cleanups
2020-06-29 21:06:21 +02:00
twinaphex
b93c3b36ed
Prevent more static code analysis warnings
2020-06-29 20:34:47 +02:00
twinaphex
5cfc4defc6
(libretro-common) Prevent more static code analysis warnings
2020-06-29 20:31:14 +02:00
twinaphex
55d9456cbb
More static code analyzer fixes
2020-06-29 20:14:14 +02:00
twinaphex
672deef31a
Prevent static code analyzer complaining about potential
...
memory leaks
2020-06-29 20:06:37 +02:00
twinaphex
6318e11027
Try to prevent static code analyzer warning about potential leak
2020-06-29 20:02:28 +02:00
twinaphex
28399641da
task_queue_put - prevent dereference of null pointer
2020-06-29 19:57:52 +02:00
twinaphex
316914cb45
Prevent another static code analysis warning
2020-06-29 19:23:45 +02:00
twinaphex
c7bb666214
CRITICAL_SECTION implementation can differ - use calloc here
2020-06-29 14:19:50 +02:00
twinaphex
03b232552e
(MSVC) Buildfix
2020-06-29 13:53:40 +02:00
Twinaphex
fc2e11d4b7
Fix pthread codepath
2020-06-28 23:31:44 +02:00
twinaphex
a833c5f4a6
Cleanups in audio mixer code
2020-06-28 23:24:00 +02:00
twinaphex
6d50ac7cb7
Cleanups
2020-06-28 22:59:51 +02:00
twinaphex
47d93f7fb1
(formats/xml) Cleanups
2020-06-28 22:30:53 +02:00
twinaphex
5a0bc479b1
(libretro-common) Avoid more callocs
2020-06-28 20:57:00 +02:00
twinaphex
1a625f32e8
Update
2020-06-28 20:40:43 +02:00
twinaphex
595c8ce5d0
(libretro-common/streams) Cleanups
2020-06-28 20:32:23 +02:00
twinaphex
3dafbb8487
(libretro-common) Use malloc
2020-06-28 06:52:02 +02:00
twinaphex
3541b2aa0e
task_init - use malloc
2020-06-28 06:41:07 +02:00
twinaphex
c1c3f75804
dir_list_read - avoid two strcmps
2020-06-27 22:26:20 +02:00
twinaphex
6085ed358d
(RPNG) Use malloc
2020-06-27 21:09:29 +02:00
twinaphex
5783494e13
(libretro-common) Cleanups
2020-06-27 14:55:08 +02:00
twinaphex
c3f8b7741c
Add fallback paths for nbio_stdio.c
2020-06-27 14:07:41 +02:00
twinaphex
c1275cc83d
Cleanups
2020-06-27 13:58:15 +02:00
twinaphex
b0b588a56a
(VFS) Add fseeko/ftello support
2020-06-27 13:41:59 +02:00
twinaphex
1b86ea43c3
Try to use vsnprintf where possible instead of vsprintf
2020-06-26 20:56:14 +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
fa50695b89
Cleanups
2020-06-26 19:25:53 +02:00
twinaphex
966348327d
Cleanups
2020-06-26 19:07:38 +02:00
twinaphex
08a1a21d71
(libretro-common) Cleanups
2020-06-26 15:26:52 +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
de36ff20fb
Create string_ends_with_size
2020-06-25 14:38:06 +02: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 1c38dc67c2
.
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
8fccac666e
Use STRLEN_CONST where possible
2020-06-24 22:57:41 +02:00
twinaphex
198df77c29
Update
2020-06-24 20:18:06 +02:00
twinaphex
472bb775ee
retro_vfs_file_open_impl - avoid two strlens at start
2020-06-24 20:17:09 +02:00
twinaphex
7cac61e5eb
Use malloc instead of calloc when possible
2020-06-24 18:52: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
3a4af3149b
(libretro-common) Use malloc instead of calloc when possible
2020-06-24 17:35:02 +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
twinaphex
a00ab53ef6
Put fprintfs and printfs behind ifndef NDEBUG
2020-06-17 11:22:31 +02:00
twinaphex
01bd76405f
Buildfixes
2020-06-13 08:37:26 +02:00
jdgleaver
321ede2256
(X11/udev) Input fixes
2020-06-12 14:12:22 +01:00
twinaphex
ac8985a38f
Buildfix for OSX PPC
2020-06-08 13:45:32 +02:00
Jamiras
7d488aa200
use rcheevos for identifying games
2020-06-07 17:13:50 -06:00
twinaphex
bb73fc6a89
Silence warnings
2020-06-05 22:39:44 +02:00
Autechre
b88377d277
Merge pull request #10787 from guoyunhe/new-languages
...
Add Persian, Hebrew and Asturian language options
2020-06-04 16:31:12 +02:00
Guo Yunhe
0701b99039
Add Persian, Hebrew and Asturian language options
2020-06-04 14:54:28 +03:00
jdgleaver
0a33e562f4
Add option to backup/restore installed cores
2020-06-04 12:20:58 +01:00
jdgleaver
a1210d63cc
Extended core message interface - add API support for 'progress' messages
2020-05-26 11:42:46 +01:00
jdgleaver
23916f88c7
Extended core message interface - add concept of message 'type'
2020-05-26 10:03:25 +01:00
jdgleaver
fc8b76708a
Add API extension to provide cores with finer grained control over environment callback messages
2020-05-26 10:03:25 +01:00
twinaphex
a1752db25a
Put this behind DEBUG ifdef
2020-05-24 20:49:58 +02:00
twinaphex
8bf11e9b18
(libretro-common) Try to prevent implicit usage of stdio fprintf
2020-05-24 20:18:36 +02:00
twinaphex
d9bbe604e9
silence unused variable warnings
2020-05-24 19:13:22 +02:00
twinaphex
67f0df94f9
(CDROM) Reduce log spam
2020-05-24 19:11:55 +02:00
twinaphex
376b62e8fa
Cut down on more unnecessary strlens
2020-05-24 17:25:52 +02:00
Weedy Weed Smoker
80c1b54b52
Merge branch 'master' into International-translations-update
2020-05-23 03:14:09 +07:00
jdgleaver
d24498bdf1
Image file type detection fixes/optimisations
2020-05-22 16:57:37 +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
0aff65e77b
Sync libretro-common
2020-05-19 15:22:00 +02:00
Jamiras
c805fd3213
return false when special track cannot be found
2020-05-18 09:10:06 -06:00
twinaphex
89c7d1a835
Update libretro-common
2020-05-14 09:27:58 +02:00
Vladimir Serbinenko
cab004f08a
cpu_features_get_time_usec: Use sceKernelGetSystemTimeWide on PSP and Vita
2020-05-13 11:20:40 +02:00
Vladimir Serbinenko
31d9fedf47
cpu_features_get_time_usec: Use monotonic_clock on djgpp
2020-05-12 22:55:15 +02:00
Vladimir Serbinenko
306fed32f6
Fix djgpp clock
2020-05-12 03:09:38 +02:00
Vladimir Serbinenko
67c3c93aec
dos fixes
2020-05-12 03:09:38 +02:00
MrHuu
e519ccd0be
(3DS) Enable basic networking / cheevos
2020-05-08 20:50:15 +02:00
Weedy Weed Smoker
7d849ac8fb
International: Add all the languages from Crowdin…
2020-05-02 13:29:17 +07:00
Alcaro
c9dcc18fa4
Fix copypasted typo
2020-05-01 17:46:18 +02:00
jdgleaver
548c5dc925
(glcore/slang) Set filter and wrap mode correctly when intialising shader textures
2020-04-30 17:04:02 +01:00
twinaphex
156d3629e6
libretro-common Update
2020-04-28 16:26:26 +02:00
twinaphex
4f9a3f6813
Update
2020-04-28 16:25:00 +02:00
Autechre
3744f2454c
Merge pull request #10519 from julianaito/master
...
Remove OpenBSD/macppc specific quirk
2020-04-27 20:29:40 +02:00
jdgleaver
9eb8472805
Only write config files to disk when parameters change
2020-04-27 17:06:35 +01:00
Charlène Wendling
0e4857c8f6
Remove OpenBSD/macppc specific quirk
...
OpenBSD/macppc moved to clang and __mftb() is not available anymore,
leading to undefined references errors. It's fixed with #10383 already.
2020-04-26 14:13:59 +02:00
Autechre
89c405b196
Merge pull request #10487 from jdgleaver/playlist-compression
...
Add optional playlist compression
2020-04-23 13:30:58 +02:00
twinaphex
bdf9969c7e
Update libretro-common
2020-04-23 07:20:06 +02:00
jdgleaver
fa9290cf1e
Add optional playlist compression
2020-04-21 16:44:26 +01:00
twinaphex
8a15f0094a
Bugfix
2020-04-21 00:49:02 +02:00
twinaphex
3a2a365ec9
(libretro-common) Fix retro_endianness.h
2020-04-21 00:46:48 +02:00
twinaphex
64bbe5b646
(MSVC 2010) Buildfix
2020-04-21 00:20:31 +02:00
twinaphex
3fa60d08de
Update libretro-common
2020-04-19 20:44:22 +02:00
jdgleaver
c1f4a7536a
Expand functionality of 'rzip_stream' interface
2020-04-17 16:18:16 +01:00
jdgleaver
233456df47
Add optional save state compression
2020-04-15 15:48:41 +01:00
Vladimir Serbinenko
c957e07399
Fix psl1ght compilation
...
pkg.py is not necessatily in path
mftb works better than posix on psl1ght
2020-04-09 15:53:38 +02:00
jdgleaver
c1d41e190c
(task_queue) Add warning about the usage of 'task_queue_remove()'
2020-04-06 14:16:24 +01:00
jdgleaver
13df7795fc
Fix task deadlocks
2020-04-06 13:51:22 +01:00
Jamiras
23ba478f82
fix race condition where task could momentarily not be in the queue when reordering
2020-04-04 09:37:55 -06:00
Greg V
f9ae48c3f6
features_cpu: synchronize ifdefs for CLOCK_MONOTONIC
...
The ifdef in cpu_features_get_time_usec was more portable
than the one in cpu_features_get_perf_counter.
Make them the same to avoid 'undefined reference to __mftb'
on FreeBSD/powerpc64.
2020-04-02 15:09:49 +03:00
Jamiras
7fe952ddeb
don't ignore errors from decompress_v5_map
2020-03-31 11:08:35 -06: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
jdgleaver
c61f6aafc1
(m3u_file.c) Replace tab indents with spaces
2020-03-20 14:53:53 +00:00
jdgleaver
e24274a314
(Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content
2020-03-20 14:26:08 +00:00
twinaphex
5f8020b32e
(libretro-common samples udp test) Rewrite while (1) to for (;;)
2020-03-05 15:52:02 +01:00
twinaphex
4933b89736
Buildfix
2020-03-05 14:18:41 +01:00
jdgleaver
35977efe43
Prevent improper display of (old style) OSD text when widgets are enabled
2020-03-05 12:28:38 +00:00
twinaphex
899c21257c
(Video layout) move init_string and set_string to stdstring -
...
rename them - cleanup strcmp usage in video layout and other
code cleanups
2020-03-05 11:19:44 +01:00
Alcaro
472fe9a991
Avoid overflow when calculating multiplying performance counter
2020-02-28 18:07:00 +01:00
twinaphex
a2a5ca0d01
Move this struct over to rhash.c
2020-02-23 05:22:11 +01:00
twinaphex
8fe2fe7b62
(UNIX) Remove hashing dependency
2020-02-23 04:52:27 +01:00
Jamiras
c8c05306a3
add comments
2020-02-22 13:01:07 -07:00
Jamiras
e00449c410
delay subsequent unlock attempts on failure
2020-02-22 07:11:01 -07:00
twinaphex
dce610747b
Update audio resampler
2020-02-07 07:53:23 +01:00
twinaphex
5ff4ee96e4
(Resampler) More buildfixes
2020-02-03 03:33:50 +01:00
twinaphex
e1603c0f44
(Resampler) Cleanups
2020-02-03 01:59:24 +01:00
twinaphex
076fddd9d9
(Resampler) Turn this void
2020-02-03 00:16:16 +01:00
twinaphex
e7e7a284f5
Cleanups
2020-02-02 02:16:19 +01:00
twinaphex
3b492142db
Add CDROM_DEBUG ifdefs around this
2020-02-01 19:39:44 +01:00
twinaphex
64c515bac4
Turn while (true) into for (;;) for easier MSVC backwards compatibility
2020-02-01 04:15:22 +01:00
twinaphex
cd9ca691ca
(libretro-common) Update copyright
2020-01-31 15:43:42 +01:00
twinaphex
84251b02bd
verbosity.c - add necessary header
2020-01-31 15:06:50 +01:00
Twinaphex
b490c774bf
Update compat_ifaddrs.c
2020-01-31 07:48:32 +01:00
twinaphex
d631da7d11
Start taking settings dependencies out of rarch_log_file_init
...
function
2020-01-30 19:04:05 +01:00
twinaphex
7c0e80a415
(RPNG) Fix test compilation, currently fails though
2020-01-30 17:52:32 +01:00
twinaphex
0ff69ec3df
Move test over to samples
2020-01-30 17:47:15 +01:00
twinaphex
cad21249e0
Move crc32.c to samples
2020-01-30 17:44:29 +01:00
twinaphex
acfe7ab16d
Updates to samples/utils
2020-01-30 17:41:38 +01:00
twinaphex
652923d056
Move files around
2020-01-30 17:31:49 +01:00
twinaphex
4d18f3e9b7
Create more tests
2020-01-30 17:25:58 +01:00
twinaphex
df06a0effe
Fix names
2020-01-30 17:14:45 +01:00
twinaphex
e13ffc7507
Add missing samples
2020-01-30 17:13:44 +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
a034909ae9
Cleanups
2020-01-30 16:35:59 +01:00
twinaphex
f785e4b045
Replace while (1) with for (;;) - avoids MSVC warnings
2020-01-30 16:15:52 +01:00
twinaphex
eb4e365820
(libretro-common) Cleanups
2020-01-27 17:00:18 +01:00
Jamiras
d0d1c5bb37
allow characters other than / to follow port
2020-01-23 07:00:50 -07:00
twinaphex
64d3408188
(ffmpeg) Fixups
2020-01-18 05:40:11 +01:00
Jamiras
59302e816c
fix parsing of port in net_http_connection_done
2020-01-17 20:22:49 -07:00
jdgleaver
a2e1d622e1
Add disk control interface API extension
2020-01-17 16:34:05 +00:00
orbea
8d6b70c22c
Don't use uname -a.
2020-01-15 06:27:42 -08:00
twinaphex
3492ba5fd6
(libretro-common) Prevent warning
2020-01-11 04:48:33 +01:00
twinaphex
df8f93e9d5
Split up VFS file_path code into separate file
2020-01-09 15:44:48 +01:00
twinaphex
291012d2a9
(libretro-common) Updates
2020-01-08 19:47:23 +01:00
twinaphex
3b2ec53100
(libretro-common) Update
2020-01-08 04:26:49 +01:00
twinaphex
3a8f12dff3
Update libretro-common
2020-01-08 01:44:58 +01:00
twinaphex
02d1eeb400
(VFS UWP) Get rid of verbosity.h dependency
2020-01-08 00:28:30 +01:00
twinaphex
261f1b72d4
Remove separate null_resampler.c file and move it into audio_resampler.c
2020-01-07 23:03:23 +01:00
Francisco Javier Trujillo Mata
3901c2d63a
Add in libretro-common the psp1 implementation
2020-01-07 20:06:47 +01:00
twinaphex
3d950b2324
Optimize audio_mix_volume_SSE
2020-01-04 14:40:37 +01:00
twinaphex
d88e37a2f1
(Audio resampler/Sinc) Don't do kaiser window check inside hot loop
2020-01-03 22:12:11 +01:00
twinaphex
b3e8d6e9ca
Remove this check - hope it solves the PNG inversion color issues with
...
VideoCore GPUs
2019-12-26 04:05:51 +01:00
jdgleaver
695749f155
(Core Updater) Only download when new core is available + add option to update all installed cores
2019-12-23 17:34:44 +00:00
Jamiras
3b4e55d0e5
proper calculation of offset to track 2 when sector sizes vary
2019-12-19 13:17:32 -07:00
negativeExponent
d96409ff37
Fix heap-use-after-free found when using asan
...
Fix https://github.com/libretro/RetroArch/issues/9871
2019-12-19 04:44:34 +08:00
twinaphex
168395af74
(libretro-common) Update
2019-12-18 18:25:54 +01:00
twinaphex
60b182b821
Promote tpool as libretro-common component
2019-12-18 18:21:03 +01:00
Nils Hasenbanck
d046594591
Fix ffmpeg core memory leak when using pthreads.
2019-12-18 15:05:01 +01:00
driver1998
aa19d5180b
[UWP] Move RunAsync out of VFS implementation
2019-12-05 16:32:38 +08:00
jdgleaver
a27ee73622
Manual content scan arcade DAT files: Add support for MAME 'Software List' XML format
2019-12-04 16:19:32 +00:00
jdgleaver
9b012e907a
(Manual Content Scanner) Enable automatic naming of arcade content via DAT files
2019-12-04 12:46:04 +00:00
jdgleaver
170397456c
Add manual content scanner
2019-11-29 17:14:46 +00:00
Jamiras
c69a11a219
better detection of pregap data in file
2019-11-22 19:36:38 -07:00
twinaphex
f0784351c4
Update header include - should look in system dir
2019-11-19 06:19:09 +01:00
Twinaphex
53b7fb2ba2
Remove unused variables
2019-11-19 06:08:54 +01:00
Huw Pascoe
4eebfa237b
Fixed xml parsing
2019-11-16 20:56:12 +00:00
Charlène
3038e9e1ce
OpenBSD/powerpc: fix "undefined reference to __mftb"
2019-11-12 22:24:35 +01:00
Jamiras
67e9fba9d7
generate User-Agent for retroachievement API calls
2019-11-02 21:52:30 -06:00
twinaphex
d4b7be4ae4
Update libretro-common
2019-10-31 01:25:27 +01:00
twinaphex
eb77d84716
Update libretro-common
2019-10-31 01:02:01 +01:00
twinaphex
d215d3ff44
Add HAVE_LIBNX conditional
2019-10-30 13:28:04 +01:00
Twinaphex
0719f9861c
Merge pull request #9657 from p-sam/switch-input-sensor
...
(Switch) input driver sensor
2019-10-29 20:53:44 +01:00
p-sam
0e79aa80d9
wip: merge libretro-common
2019-10-28 16:36:46 +00:00
Jamiras
0b92224c36
update PCEngine-CD hash algorithm; pregap cdfs support for CUE and CHD files
2019-10-24 18:46:43 -06:00
twinaphex
362b76fd74
Update sthread_get_current_thread_id
2019-10-21 14:01:09 +02:00
twinaphex
e968dd85e2
Implement sthread_get_thread_id (functional equivalent for
...
SDL_GetThreadId) and sthread_get_current_thread_id (functional
equivalent
for SDL_ThreadID)
2019-10-20 23:55:19 +02:00
twinaphex
836fb17d0d
(libretro-common) Update libretro-common
2019-10-17 01:48:41 +02:00
Rinnegatamante
7fee4ad11b
Update libretro-common.
2019-10-15 17:43:50 +02:00
twinaphex
cb576b1b95
Move include headers to rglgen_private_headers.h
2019-10-09 22:12:14 +02:00
Twinaphex
419eb5a6c0
Remove unused variables
2019-10-04 16:06:34 +02:00
jdgleaver
1df3e20bdd
Add option to automatically rotate overlays
2019-10-04 12:15:57 +01:00
Jamiras
1ab81e5711
support for Sega CD/Saturn; reduce hash calls to server
2019-09-29 09:07:16 -06:00
jdgleaver
58ad81f063
Menu drop-down lists: Add proper titles, and remember last postion when navigating core options
2019-09-24 17:41:06 +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
f309c85f92
STRLCAT_CONST_INCR should be at most 1 statement, so single-line if, for etc work
2019-09-22 20:12:56 +02:00
LazyBumHorse
db723df879
fix path_relative_to
2019-09-22 16:29:54 +02:00
twinaphex
5f87fa1aca
CXX_BUILD buildfix
2019-09-22 14:04:02 +02:00
Barry Rowe
4e155dbc8e
Added in rpng string streaming to ai service.
2019-09-21 23:57:59 -07:00
Jamiras
c5750da85a
improve handling of line endings in m3u and cue files
2019-09-21 08:06:06 -06:00
twinaphex
f65e005d97
label_sanitization - change a bunch of functions to static
2019-09-21 03:55:20 +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
76f4cf5cc5
Start using STRLCAT_CONST/STRLCAT_CONST_INCR/STRLCPY_CONST
2019-09-20 20:39:34 +02:00
twinaphex
db624a7c99
Start cleaning up the rather messy manual assignment
2019-09-20 02:03:26 +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
7dc2ca425f
(RTGA) Further optimizations
2019-09-18 21:49:18 +02:00
twinaphex
1075522147
(RTGA) Cleanups
2019-09-18 21:13:46 +02:00
twinaphex
9a5b8f0475
(RBMP) Typo fix and some further cleanups
2019-09-18 20:30:39 +02:00
twinaphex
bd39d72acd
(RBMP) More optimizations
2019-09-18 20:25:15 +02:00
twinaphex
b582f1c7c6
(RBMP/RJPEG) Cleanups + optimizations
2019-09-18 19:52:45 +02:00
Twinaphex
d09362ed6f
(OSX) Silence warnings for OSX
2019-09-18 10:04:21 +02:00
twinaphex
922680851a
(features_cpu) noticed that the buffer wasn't actually being used,
...
so it can go
2019-09-18 08:37:35 +02:00
twinaphex
698387e762
(task_screenshot.c) Cleanups - don't use snprintf unless necessary
2019-09-18 02:31:02 +02:00
twinaphex
8928052863
(libretro-common) (VFS implementation) Cleanup
2019-09-18 02:23:25 +02:00
twinaphex
8fa6230426
Cleanups
2019-09-18 02:16:47 +02:00
twinaphex
c3c4638b22
Replace some snprintf usage where not necessary
2019-09-17 05:49:54 +02:00
twinaphex
a36d5926d7
Cleanups
2019-09-17 05:30:07 +02:00
twinaphex
6f6b1a8333
(Net HTTP) Avoid unnecessary snprintf
2019-09-17 05:26:00 +02:00
Brad Parker
c7c7d0988e
initial network video driver, sends raw frames over TCP
2019-09-17 04:18:44 +02:00
twinaphex
5024b77492
Prevent more strlcats that are quite trivial
2019-09-17 02:43:40 +02:00
twinaphex
d01ae6929d
Don't use strlcat for basic concatenation of characters
...
except when absolutely necessary
2019-09-17 02:00:04 +02:00
twinaphex
4c7beacfe4
(RPNG) rpng_is_valid - cleanup
2019-09-15 07:40:02 +02:00
twinaphex
b7fe19b6c8
(libretro-common) RPNG - Cleanup
2019-09-15 02:04:37 +02:00
Twinaphex
753be84ae0
(Apple) Silence some warnings
2019-09-14 17:15:30 +02:00
Twinaphex
85f07b6f27
Merge pull request #9405 from Jamiras/psx_cheevos_cdfs
...
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-09-11 23:38:23 +02:00
bmaupin
3047c55121
Fix PSP audio conversion code
...
Fixes https://github.com/libretro/QuickNES_Core/issues/72
2019-09-06 21:02:37 -04:00
Jamiras
b1fb7a1c1e
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-09-01 11:13:54 -06:00
Twinaphex
29dc30fa48
Revert " add hashing support for PSX cheevos (bin/cue, chd, or real CD)"
2019-08-30 15:55:07 +02:00
Jamiras
a8232e6a2e
don't try to build CUE file if media isn't available
2019-08-29 22:25:33 -06:00
Jamiras
1348c2cc75
fix wiiu build
2019-08-29 21:05:44 -06:00
Jamiras
bcd61d7f9b
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-08-29 21:05:14 -06:00
twinaphex
d6df17a154
Revert "add hashing support for PSX cheevos (bin/cue, chd, or real CD)"
...
This reverts commit 1185433374
.
2019-08-30 03:14:42 +02:00
Twinaphex
5a82c809dc
Merge pull request #9334 from Jamiras/psx_cheevos
...
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-08-29 13:48:42 +02:00
twinaphex
0a35a84c4d
Prevent ASAN runtime error
2019-08-28 08:13:01 +02:00
twinaphex
c93c7c82b0
Add this back
2019-08-28 07:47:19 +02:00
twinaphex
ca3a7aa654
Prevent ASAN runtime error
2019-08-28 07:44:13 +02:00
Jamiras
1185433374
add hashing support for PSX cheevos (bin/cue, chd, or real CD)
2019-08-23 08:02:06 -06:00
twinaphex
a3e2531bd6
Remove duplicate function in translation_service.c
2019-08-21 21:51:25 +02:00
twinaphex
d8860104d3
Get rid of file_list_get_alt_at_offset
2019-08-20 06:13:33 +02:00
Francisco Javier Trujillo Mata
c987945b5e
Apply some improvement preparing for new toolchain ( #9330 )
2019-08-19 20:36:15 +02:00
jdgleaver
3da96deec3
Enable per-playlist thumbnail selection
2019-08-15 18:05:31 +01:00
twinaphex
d5c7ada96d
Prevent warning
2019-08-15 13:51:07 +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
jdgleaver
5ac152a5f3
(glslang_util) Remove C++ 'isms' (where possible)
2019-08-12 13:10:50 +01:00
twinaphex
4d45174940
file_path.c - cleanups
2019-08-11 22:37:23 +02:00
Brad Parker
cb2be97e7d
fix unused warning, add extra info to cdrom print
2019-07-31 17:51:58 -04:00
Twinaphex
58286367d7
Delete rsemaphore.h
2019-07-30 23:57:27 +02:00
Twinaphex
7ebee349ad
Merge pull request #9214 from tmtvl/9107-playlist-name-sanitization
...
9107 playlist name sanitization
2019-07-30 21:48:30 +02:00
bparker06
8ee1e7b39f
remove rsemaphore ( #8645 )
2019-07-30 14:53:03 -04:00
Tim Van den Langenbergh
35e71ad786
Merge branch 'master' into 9107-playlist-name-sanitization
2019-07-30 12:41:19 +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
Brad Parker
a191112634
cdrom: add PC Engine CD detection
2019-07-29 15:11:28 -04:00
Brad Parker
39187f33b1
cdrom: print fix
2019-07-29 14:15:24 -04:00
Brad Parker
6cf3b0b769
cdrom: fix prints
2019-07-29 14:08:32 -04:00
Tim Van den Langenbergh
d3a98fea79
Make wording of messages for label display mode clearer.
...
Use strlcpy for safety in sanitization.
Change label sanitization to use the No-Intro conventions.
Remove integer manipulation of enums for hash strings.
Add handler for start button on label display mode.
2019-07-29 19:08:15 +02:00
Tim Van den Langenbergh
771134eb52
More C89 compatibility fixes
2019-07-28 15:52:48 +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
twinaphex
4df62acac4
Get rid of this check
2019-07-26 20:50:40 +02:00
Twinaphex
213fd3a2e8
Merge pull request #9196 from orbea/zlib2
...
Clean up the builtin zlib.
2019-07-26 03:40:22 +02:00
twinaphex
ce37405d29
(DirectSound) Add audio device selection - can set audio_device
...
either by name or by index
2019-07-26 02:36:41 +02:00
orbea
983172d0c2
deps/libz: Move zutil.h back to deps.
...
This is an internal zlib header and should not be used by other projects.
See the comment in the file.
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applications should only use zlib.h.
*/
2019-07-25 11:18:33 -07:00
orbea
0565f80ceb
deps/libz: Remove uneeded files.
2019-07-25 11:18:33 -07:00
orbea
84f4dcba2b
Remove WANT_ZLIB.
2019-07-25 11:18:33 -07:00
Brad Parker
afc2888116
cdrom: add some debug prints if we cannot find any devices
2019-07-25 14:02:28 -04:00
Brad Parker
d8b99470b3
cdrom: add debug print if no sg devices were found\n
2019-07-25 09:53:53 -04:00
jdgleaver
35cdff8704
(config_file.c) Only attempt to load config file if it exists
2019-07-25 12:25:52 +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
a5f5d2b328
Update Japanese translation, cdrom cleanups
2019-07-23 22:36:29 -04:00
Brad Parker
99dbc4d13e
griffin: increase warning level for vc2010, fix signed/unsigned mismatch
2019-07-22 14:51:00 -04:00
twinaphex
f3eb48d1f5
Fix MSVC warnings
2019-07-22 20:16:27 +02:00
LazyBumHorse
2de6e9b43a
silence compiler warnings
2019-07-22 19:27:31 +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
LazyBumHorse
7006764c12
replace realpath() by custom code which does not resolve symlinks
2019-07-22 12:10:28 +02:00
Brad Parker
41b3adc8a4
cdrom: always request one sector at a time
2019-07-21 12:06:10 -04:00
Twinaphex
388c4857d3
Merge pull request #9140 from LazyBumHorse/shader_paths
...
much improved handling of relative shader paths
2019-07-20 21:54:58 +02:00
LazyBumHorse
2245af23e9
much improved handling of relative shader paths
...
- save texture paths in relative format as well
- always write portable relative paths on Windows using '/' instead of '\'
- remove an ancient piece of code that could sometimes fail loading relative paths
- fix absolute path handling between different drives for Windows
- integrate video_shader_resolve_relative() into video_shader_parse_* functions
2019-07-20 18:29:46 +02:00
twinaphex
efb98a8a01
Cleanup file_archive_get_file_backend
2019-07-20 16:01:56 +02:00
twinaphex
c2c7c106a1
Add conf->path for config_file_new_from_path_to_string
2019-07-20 00:39:55 +02:00
twinaphex
a92bac4cea
Fix last warning
2019-07-19 13:42:35 +02:00
twinaphex
10d40cc2e8
Fix some dangerous warnings
2019-07-19 13:41:32 +02:00
twinaphex
0cdfd4c542
Use config_file_new_from_path_to_string entirely
2019-07-18 16:15:02 +02:00
twinaphex
41a2fabb4e
Create config_file_new_from_path_to_string
2019-07-18 12:03:50 +02:00
twinaphex
4c276feb4a
Update
2019-07-17 23:16:25 +02:00
twinaphex
876aca8817
(fopen_utf8.c) Cleanup
2019-07-17 21:03:38 +02:00
twinaphex
a6d6c21e52
Rename config_file_new_null to config_file_new_alloc
2019-07-17 19:50:32 +02:00
twinaphex
0c31437c24
Create config_file_new_null
2019-07-17 18:27:53 +02:00
Twinaphex
986c1bb235
Merge pull request #9109 from yoshisuga/playlist_support_abbreviated_paths
...
[iOS] Playlist: support abbreviations for application/home directory
2019-07-16 16:07:49 +02:00
Brad Parker
84ac0dbc5b
cdrom: skip retries for MODE SENSE command
2019-07-16 00:46:02 -07: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
Brad Parker
cc3b44f7ba
cdrom: fix warnings, use dot for frame notation in disc info
2019-07-15 17:16:30 -04:00
Brad Parker
cfc56bbad3
media: add Dreamcast detection, add version/release date to disc info for saturn and dreamcast
2019-07-15 12:24:31 -04:00
Brad Parker
e843354b14
cdrom: use sys/ioctl header instead of stropts
2019-07-15 10:38:54 -04:00
barbudreadmon
674da847ef
fix return value of rfread when elem_size isn't 1
2019-07-15 09:47:31 +02:00
Brad Parker
534b9125a9
cdrom: C89 fix, timeout calculation fix
2019-07-15 00:55:06 -04:00
twinaphex
28c40ffab6
Revert "Revert "Improve vfs_implementation""
...
This reverts commit 1d5049294a
.
2019-07-15 06:49:33 +02:00
twinaphex
dca848df52
Revert "Revert "(VFS) Add codepath for MSVC CDROM code""
...
This reverts commit 651774daf1
.
2019-07-15 06:49:20 +02:00
twinaphex
651774daf1
Revert "(VFS) Add codepath for MSVC CDROM code"
...
This reverts commit 7fb8965416
.
2019-07-15 06:48:25 +02:00
twinaphex
1d5049294a
Revert "Improve vfs_implementation"
...
This reverts commit bb29b87ac3
.
2019-07-15 06:48:06 +02:00
twinaphex
bb29b87ac3
Improve vfs_implementation
2019-07-15 06:43:37 +02:00
twinaphex
7fb8965416
(VFS) Add codepath for MSVC CDROM code
2019-07-15 06:30:57 +02:00
Brad Parker
30c3b1ea9d
cdrom: add Disc Information details
2019-07-15 00:23:20 -04:00
twinaphex
594dd84e6e
Fix 'declaration hides parameter'
2019-07-14 13:21:14 +02:00
twinaphex
2e3162cdca
Fix 'declaration hides parameter'
2019-07-14 13:15:55 +02:00
twinaphex
6bc0f0fcbd
(config_file) Be more safe with free
2019-07-13 15:23:28 +02:00
jdgleaver
0476901ca5
Add ability to manually set default core option values when using the new v1 core options interface
2019-07-12 18:20:19 +01:00
jdgleaver
4f3adb8d2c
An environment callback for selectively hiding core options
2019-07-12 17:12:03 +01:00
jdgleaver
380812f83e
Core Options: Add sublabels + localisation support
2019-07-11 16:10:43 +01:00
Brad Parker
cf12a10ba0
cdrom: add CDROM tag to log prints
2019-07-10 20:56:23 -04:00
twinaphex
3639614eba
(VFS) Should fix CXX_BUILD
2019-07-10 23:10:20 +02:00
twinaphex
84bf51acee
Take out HAVE_CDROM include ut of vfs/vfs_implementation.h
2019-07-10 22:53:38 +02:00
Brad Parker
980de11974
cdrom: check if disc is inserted before trying to load or dump
2019-07-10 11:17:28 -04:00
Brad Parker
b564441097
fix some warnings
2019-07-09 22:34:28 -04:00
Brad Parker
60e7e5be8d
fix some warnings
2019-07-09 22:32:11 -04:00
Brad Parker
ae87f87ee3
C89 buildfix
2019-07-09 16:46:53 -04:00
Zer0xFF
04e9cef462
explicit use flag `RTLD_LOCAL` with dlopen()
...
On OSX, `dlopen()` default to`RTLD_GLOBAL` while linux defaults to `RTLD_LOCAL`.
so on OSX, it can cause issue with false positively detecting shared library as statically linked, as was the case with `Play!`.
2019-07-09 14:42:23 +01:00
twinaphex
124283a934
(MSVC 2010) Add HAVE_CDROM
...
(CDROM) Ensure code compiles with MSVC
2019-07-09 09:23:47 +02:00
Brad Parker
f94a924be9
cdrom: skip retries for ATIP read if command fails
2019-07-08 23:46:42 -04:00
Brad Parker
cd98fa2745
cdrom: fix drive model string corruption
2019-07-08 16:06:35 -04:00
Brad Parker
15d97dbaf3
cdrom: add disc dump option
2019-07-08 16:06:35 -04:00
Brad Parker
2ef16de941
cdrom: add atip check function, show relative and absolute MSF for read command
2019-07-08 16:06:35 -04:00
Brad Parker
9e4ce6c7e3
cdrom: fix group1 timeout error
2019-07-06 21:54:10 -04:00
Brad Parker
59d8b918a1
cdrom: store group timeouts
2019-07-06 20:16:47 -04:00
Brad Parker
44245cc942
cdrom: windows cue fix
2019-07-06 17:23:10 -04:00
Brad Parker
0b1ee7d00a
windows buildfix
2019-07-06 09:58:33 -04:00
twinaphex
3ffc5fc343
(MSVC2017 UWP) Buildfix
2019-07-06 07:29:51 +02:00
twinaphex
538cca8bcd
Fix issue in file_stream.c - it would corrupt memory if
...
maxlen is negative
2019-07-06 06:20:01 +02:00
Brad Parker
46ed5c3fcb
vfs: fix circular dependency issues by moving main structs to separate header
2019-07-05 23:45:48 -04:00
Brad Parker
d116784249
cdrom: go back to MSF read command, still having issues with LBA calculation
2019-07-05 11:09:11 -04:00
Brad Parker
e8d488ba67
cdrom: fix conflict with libchdr function names
2019-07-04 23:05:28 -04:00
Brad Parker
d0695fc428
cdrom: add LBA offset
2019-07-04 22:42:42 -04:00
Brad Parker
38d49136ce
cdrom: add function for reading via LBA numbers
2019-07-04 18:20:05 -04:00
Brad Parker
788b6cd39c
remove unimplemented command
2019-07-04 17:50:38 -04:00
Brad Parker
9d163493da
cdrom: print sense data on each failure
2019-07-04 17:47:39 -04:00
Brad Parker
0ecac5c8ff
http: fix memory leak and potential null pointer argument to strlen
2019-07-04 16:27:51 -04:00