Commit Graph

1648 Commits

Author SHA1 Message Date
Alcaro 7d30b475ba Merge pull request #4392 from zeromus/master
rthreads work from desmume
2017-02-05 02:12:31 +01:00
zeromus 0ef09a0ed4 win32 scond_wait_timeout: refine 0 timeout logic 2017-02-04 16:24:14 -06:00
zeromus 233c13228e attempt win32 scond_wait_timeout 2017-02-03 21:52:52 -06:00
twinaphex f35e521fd8 Prevent i variable being uninitialied 2017-01-31 18:47:33 +01:00
twinaphex 61d67613fb Buildfixes for ARM NEON 2017-01-31 07:58:58 +01:00
twinaphex ed3d75738c Simplify audio conversion code 2017-01-31 07:33:58 +01:00
twinaphex fda9b01ab3 Buildfixes 2017-01-31 03:54:50 +01:00
twinaphex 22dfa1ca7c Fix C89_BUILD 2017-01-30 19:32:02 +01:00
twinaphex 216e45f9ea Get rid of printfs 2017-01-30 19:12:47 +01:00
twinaphex 6732446ca4 Avoid warnings 2017-01-30 19:12:28 +01:00
twinaphex 7a02876999 (sinc_resampler.c) More cleanups 2017-01-30 19:10:52 +01:00
twinaphex 26ebdb1056 More cleanups 2017-01-30 18:48:29 +01:00
twinaphex 73acd4aa0f (sinc_resampler.c) Do away with function pointer 2017-01-30 18:45:37 +01:00
twinaphex cdb45a38d3 Refactor code - do away with sinc_resampler_common 2017-01-30 18:43:09 +01:00
twinaphex 21508003c9 Create sinc_resampler_common 2017-01-30 18:15:41 +01:00
Alcaro 22cf87adc9 Shut up false positive 2017-01-28 18:07:00 +01:00
twinaphex 544c7a3c92 Solve warnings 2017-01-28 00:28:11 +01:00
Brad Parker 0e90ab36a0 fix rwav sample memcpy 2017-01-27 18:02:16 -05:00
Brad Parker 18f78613ae Merge branch 'wav_loader' 2017-01-27 11:13:28 -05:00
Brad Parker 9c9fc5b765 16-bit samples don't need conversion from 8-bit 2017-01-27 11:12:45 -05:00
Brad Parker d7aaab7a33 fixes 2017-01-26 21:20:59 -05:00
Brad Parker 9cf4562f26 fix memory allocation 2017-01-26 18:46:50 -05:00
Brad Parker 6a79a81e4d allocate enough memory for resampler, always put two channels into buffers 2017-01-26 00:59:53 -05:00
Brad Parker f8ad1c6622 use aligned memory buffers 2017-01-25 17:30:15 -05:00
Brad Parker 4fae51edcb initial resampling wav loader 2017-01-25 01:28:48 -05:00
twinaphex c3eb4327bf Remove algorithms/mismatch 2017-01-25 02:57:43 +01:00
twinaphex e3842d4169 Make audio_mix.c C89-compatible 2017-01-24 16:59:03 +01:00
twinaphex 669599cfd7 Add audio_mix to libretro-common 2017-01-24 00:29:40 +01:00
aliaspider 9348369824 (Wii) buildfix for HAVE_NETWORKING=1. 2017-01-23 23:27:08 +01:00
aliaspider 021b510452 (WiiU) refactors/cleanups. 2017-01-23 16:14:05 +01:00
twinaphex 379ce5eb05 Revert "Guard crash on OSX"
This reverts commit 1afda04966.
2017-01-23 14:14:46 +01:00
twinaphex 3e87196a43 Revert "Implicit declaration buildfix"
This reverts commit 77fa8c39ef.
2017-01-23 14:14:40 +01:00
twinaphex 77fa8c39ef Implicit declaration buildfix 2017-01-23 14:11:22 +01:00
Twinaphex 1afda04966 Guard crash on OSX 2017-01-23 14:10:51 +01:00
twinaphex 7c722fca9a (nbio_stdio.c) Try to prevent 'argument cannot be negative' coverity warning 2017-01-22 20:30:47 +01:00
twinaphex 67f850c3dc Prevent another NULL pointer dereference 2017-01-22 20:06:11 +01:00
twinaphex 4feab7a268 (trans_stream_zlib.c) Add some early returns in case it's a NULL pointer 2017-01-22 20:04:58 +01:00
Brad Parker a2d37adc53 Windows 95 does not have GetFileAttributesEx 2017-01-22 13:48:49 -05:00
twinaphex c91a4fa12e Cleanup 2017-01-22 14:23:46 +01:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
zeromus 168de31fb9 make scond_signal slightly more pthreads compliant (and other tidying). re: PR #4392 2017-01-21 22:44:31 -06:00
zeromus 3e8e02c953 change the main lock mutex to a critical section, and update copyrights year 2017-01-21 17:10:09 -06:00
zeromus 10157c5831 apply feedback re: PR #4392 2017-01-21 16:49:10 -06:00
twinaphex dd1fa96321 Fix 2017-01-21 01:46:35 +01:00
Brad Parker 1d3e1a6962 DOS/DJGPP buildfix 2017-01-20 18:23:45 -05:00
twinaphex f4020aa011 (Xbox 360) Buildfixes 2017-01-19 20:28:12 +01:00
twinaphex c6e1b47d98 (libretro-common) Style nits 2017-01-17 19:20:15 +01:00
twinaphex 7931436f5b Apply xerpi diff 2017-01-17 18:12:23 +01:00
Jean-André Santoni dc4140a00b (GLUI) Word wrapping for sublabels 2017-01-17 15:21:59 +01:00
Brad Parker e1f4db8081 Win2000 buildfixes 2017-01-16 20:41:08 -05:00
twinaphex b95a817471 (GLSM) Update 2017-01-10 22:53:22 +01:00
twinaphex a07f591859 (file_list.c) Cleanups 2017-01-10 22:24:46 +01:00
zeromus f4c187e980 - port slock and scond fixes from desmume
- make sthread_isself return false for null test thread
full disclosure: this work was done months ago. I can't be 100% sure I've merged it correctly with recent rthreads.c changes
2017-01-09 16:46:35 -06:00
Josh Palmer 453d823d2a Fix jsonsax compilation on QNX, 'index' appears to be a reserved symbol 2017-01-09 20:26:09 +00:00
Josh Palmer ef205447df QNX-specific default directory and file permission handling 2017-01-09 20:26:09 +00:00
twinaphex 99421b42d5 Update Makefile 2017-01-09 17:47:25 +01:00
twinaphex b89ec1369f Rename rarch_resampler_* to retro_resampler_* 2017-01-09 12:45:51 +01:00
twinaphex 03adb6fd3a Rename rarch_dsp_* to retro_dsp_* 2017-01-09 12:41:59 +01:00
twinaphex 92f9ad0714 Move audio DSP filters to libretro-common 2017-01-09 12:30:11 +01:00
twinaphex d3b818a16a Move dsp_filter to libretro-common 2017-01-09 12:22:29 +01:00
twinaphex 2c6ff22862 Move libretro_dspfilter.h to libretro-common 2017-01-09 12:17:57 +01:00
Brad Parker 51504286be revert flush flug for positive OSD progress 2017-01-07 12:23:18 -05:00
Brad Parker 9d7fe2c3f0 early return is mutex is null 2017-01-05 21:20:37 -05:00
twinaphex 7d08244204 Prevent crash when togglign between thraded and non-threaded
video
2017-01-05 08:56:16 +01:00
twinaphex faf939856b Rewrite task_queue.c - get rid of messy internal Rarch code 2017-01-03 18:27:09 +01:00
twinaphex 7dfd5625ab Set flush to false for task queue messages 2017-01-03 17:57:52 +01:00
twinaphex 89dcc9bf5f Task queue - shows all the task queue messages now 2017-01-03 08:42:33 +01:00
Alcaro 9cf987c328 warning: comparison between signed and unsigned integer expressions 2017-01-02 02:18:54 +01:00
Alcaro f95759c39b No need for those casts 2017-01-02 02:11:30 +01:00
twinaphex dae80e4e26 (MSVC) Buildfixes 2017-01-02 01:41:00 +01:00
twinaphex f94d07b0fc Cleanup msg_queue_new 2017-01-01 05:58:12 +01:00
Brad Parker daa5553777 fix another race condition 2016-12-29 23:39:51 -05:00
Brad Parker 94309b3acd fix ThreadSanitizer data race warning 2016-12-29 23:16:00 -05:00
Twinaphex f962723943 Silence warning - unused variable 2016-12-30 03:32:35 +01:00
twinaphex dde441e1d2 Remove prototypes 2016-12-29 23:51:48 +01:00
twinaphex 9657bbd998 Get rid of set_rgba/unset_rgba inside image_texture.c 2016-12-29 23:22:40 +01:00
twinaphex 6a166faa0c Revert "Remove supports_rgba varaible from image_texture.c"
This reverts commit bd0c97fdc4.
2016-12-29 22:53:10 +01:00
twinaphex bd0c97fdc4 Remove supports_rgba varaible from image_texture.c 2016-12-29 22:39:52 +01:00
Brad Parker 41f40acfc4 guard task struct read/writes across threads with a mutex, fixes several data races found by ThreadSanitizer and helgrind 2016-12-29 00:54:12 -05:00
twinaphex 3ec564f97c Revert "(task_save.c) Cleanups"
This reverts commit d6aae88737.
2016-12-27 20:11:22 +01:00
twinaphex d6aae88737 (task_save.c) Cleanups 2016-12-26 18:25:42 +01:00
twinaphex 43459e2269 N/A 2016-12-26 06:44:04 +01:00
twinaphex a2515339e9 This nonsense can go now 2016-12-25 02:11:42 +01:00
twinaphex a94c20713d Update copyright 2016-12-24 20:24:06 +01:00
twinaphex 9db910c049 Cleanup 2016-12-24 20:22:23 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex 80d8a90bce (RTGA) Cleanups 2016-12-21 14:33:42 +01:00
twinaphex a4ca4a7eb4 (rbmp.c) Cleanups 2016-12-21 14:13:40 +01:00
twinaphex 3050240a35 (rbmp.c) Cleanups 2016-12-21 14:08:40 +01:00
twinaphex 90dca2d537 (rbmp.c) Simplify 2016-12-21 14:00:58 +01:00
twinaphex 1344e91286 Revert "Locking bug"
This reverts commit b40c1311b6.
2016-12-21 12:23:19 +01:00
Twinaphex bbed836e8f Merge pull request #4290 from GregorR/cov-112612
Locking bug
2016-12-21 01:48:34 +01:00
twinaphex e328c4ebfa (archive_file.c) Cleanup 2016-12-21 01:47:32 +01:00
Gregor Richards b40c1311b6 Locking bug 2016-12-20 19:42:53 -05:00
Twinaphex c81d54bd46 (libretro-common) Cleanups 2016-12-20 00:39:45 +01:00
twinaphex 3561949a87 Get rid of some implicit memsets 2016-12-19 18:18:40 +01:00
Twinaphex 032d29efa4 Merge pull request #4274 from GregorR/netplay-nouveau-nouveau
>2-player Netplay
2016-12-19 16:28:37 +01:00
twinaphex 4c9f2e41ff Get rid of some implicit memsets 2016-12-19 14:04:37 +01:00
Gregor Richards a6cd8c3aa1 Error reporting when a password is refused, plus a bugfix so that
socket_receive_all_nonblocking actually reports disconnects.
2016-12-18 19:28:43 -05:00
Gregor Richards 900e5a79ec Use nonblocking sockets for Netplay to avoid some stalls. 2016-12-18 19:28:38 -05:00
twinaphex 89820220b7 (libretro-common) Cleanup/style nits for archive_file_{7z/zlib} 2016-12-19 00:12:24 +01:00
twinaphex 2fa5b09e7a (RJPEG) Cleanups 2016-12-18 15:57:47 +01:00
twinaphex d6ece7f1b8 (RJPEG) Cleanups 2016-12-18 15:51:08 +01:00
twinaphex a44afda5c5 (RJPEG) Cleanups 2016-12-18 15:30:29 +01:00
twinaphex 099f3a8d52 (RJPEG) Style nits 2016-12-18 15:28:02 +01:00
twinaphex e9d9f1d90f (RBMP) Cleanups 2016-12-18 14:51:57 +01:00
twinaphex 35de6df7f9 (RJPEG) Cleanups 2016-12-18 12:15:36 +01:00
twinaphex 222650df35 (rjpeg.c) Cleanups 2016-12-18 12:12:09 +01:00
twinaphex 6935ce902e (archive_file.c) Cleanups/style nits 2016-12-17 17:19:32 +01:00
twinaphex 1ddd0ab1d3 (Statically linked RA) Make 'Open Archive' work when there are
no core info files
2016-12-17 17:12:53 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
twinaphex d4796caabd (libetro-common) Turn path_contains_compressed_file into a macro 2016-12-17 14:01:25 +01:00
twinaphex 96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833.
2016-12-17 12:55:38 +01:00
twinaphex 4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
twinaphex 39b41a1f51 file_archive_get_file_list - take out HAVE_COMPRESSION code 2016-12-17 11:59:19 +01:00
twinaphex 5364b0b837 Move compression-related code outside of libretro-common file_path.c
and move it into RetroArch's file_path_special.c file instead
2016-12-17 11:54:46 +01:00
twinaphex bd67208d74 Remove some unnecessary ifdefs for file_path.c 2016-12-17 11:16:43 +01:00
twinaphex 4409c89d43 (dir_list.c) Cleanups/style nits 2016-12-17 11:15:04 +01:00
twinaphex c739ca016c Add net_http_parse 2016-12-17 00:46:23 +01:00
twinaphex af6128d976 Put around parentheses 2016-12-15 11:59:33 +01:00
Logan McNaughton 8cd2566128 Simplify glTexImage2D/glTexStorage2D calls
Also add support for glTexStorage2DEXT (GLES2)
2016-12-14 07:29:37 -08:00
Twinaphex 93b29aab5a Merge pull request #4234 from leiradel/master
Added support for loading 8 and 16 bps, mono/stereo, uncompressed PCM wave files
2016-12-13 01:11:03 +01:00
Andre Leiradella 2c90258353 Include retro_common_api.h 2016-12-12 23:53:44 +00:00
Andre Leiradella 6fd6329b41 Fixed copyright notice 2016-12-12 23:28:17 +00:00
Andre Leiradella d6625434a7 Fixed copyright notice and removed reference to stb_image 2016-12-12 23:26:08 +00:00
Andre Leiradella b65e16d39d Added support for loading 8 and 16 bps, mono/stereo, uncompressed PCM wave files 2016-12-12 23:23:36 +00:00
twinaphex 0c9a831bf3 (libretro-common) Cleanup 2016-12-12 14:09:58 +01:00
twinaphex 08a60c94d0 Move audio resampler drivers (Sinc/nearest) to libretro-common; maister gave permission to relicense to MIT 2016-12-12 13:02:29 +01:00
twinaphex 8042c2ac62 Move config_file_userdata.c to libretro-common 2016-12-12 12:36:46 +01:00
Gregor Richards 65224dc2a5 NAT traversal also needs to avoid IPv6 with SOCKET_LEGACY 2016-12-10 13:58:51 -05:00
Brad Parker 1f39426195 only use fancy ribbon on GLES if GL_OES_standard_derivatives extension is detected 2016-12-09 19:32:55 -05:00
Logan McNaughton 1d69baca82 Use glTexStorage2D for FBO textures 2016-12-08 21:14:10 -07:00
Logan McNaughton 07a9a75a00 Fix GL_CAPS_ARGB8
ARM_argb8 should be ARM_rgba8, and GLES3 always supports this feature
2016-12-07 12:34:02 -07:00
Gregor Richards c2c2c57095 Remove support for MiniUPNPC < 2.0 2016-12-04 13:04:30 -05:00
Brad Parker e39031cbd0 revert rest of unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker f725b48555 starting to revert unicode changes 2016-12-03 00:15:29 -05:00
Brad Parker b69734ce4a more unicode fixes 2016-12-02 23:01:44 -05:00
Brad Parker d20acaa63d more unicode fixes 2016-12-02 23:00:27 -05:00
Brad Parker fcf09f10ef more unicode fixes 2016-12-02 22:12:00 -05:00
Brad Parker cc7bf6b4fa more unicode fixes 2016-12-02 21:11:55 -05:00
Brad Parker 826afd137c disable unicode until GL context is fixed 2016-12-02 15:34:15 -05:00
Brad Parker 3b8a81dd31 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:34:29 -05:00
Brad Parker d891f1c90b remove explicit unicode def/undefs 2016-12-02 14:34:29 -05:00
Twinaphex 673c0ab626 Merge pull request #4130 from GregorR/netplay-socket-legacy-may-as-well-be-called-no-sockets
More stripping out of NAT traversal for SOCKET_LEGACY
2016-12-02 19:37:46 +01:00
Gregor Richards a082df0027 More stripping out of NAT traversal for SOCKET_LEGACY 2016-12-02 13:18:35 -05:00
Brad Parker 3846ce1837 build fixes for MSVC, start moving back to TCHAR usage so we can switch unicode on and off 2016-12-02 12:54:39 -05:00
twinaphex 3b78c848a2 Another Xbox buildfix 2016-12-02 01:06:53 +01:00
Twinaphex b551da1fda Merge pull request #4120 from GregorR/natt-more-1.9-fixes
Yet another pre-2.0 fix for MiniUPNPC
2016-12-01 17:54:50 +01:00
Gregor Richards 8dc9c64297 Yet another pre-2.0 fix for MiniUPNPC (if we have more problems I'll
just drop support for pre-2.0)
2016-12-01 09:39:41 -05:00