Commit Graph

2108 Commits

Author SHA1 Message Date
Alcaro 8df699984e
Update fopen_utf8.h 2017-12-04 16:34:56 +01:00
Alcaro d74ad6cd5e
Create fopen_utf8.h 2017-12-04 16:32:40 +01:00
twinaphex 059354de2f Cleanup for config_file_write 2017-12-04 16:26:28 +01:00
Alcaro ff4dca86f9
Turns out this is char*, let's cast because CXX_BUILD wants that 2017-12-04 15:01:58 +01:00
Alcaro c10859b745
Update file_stream.c 2017-12-04 14:31:31 +01:00
Alcaro dca30d533f
Update file_stream.h 2017-12-04 14:31:11 +01:00
Alcaro 300052626f
Use FILE* all the way
Fixes platforms where RFILE isn't using the FILE* backend, needed for #5664
2017-12-04 14:30:32 +01:00
Alcaro e4bb8e7aeb
Update file_stream.c 2017-12-04 13:52:11 +01:00
Alcaro 130e4522e2
Update file_stream.h 2017-12-04 13:51:25 +01:00
Alcaro 0d4ac12310
Update file_stream.c 2017-12-04 13:34:15 +01:00
Alcaro df55e6b4d1
actually, let's just completely remove it 2017-12-04 13:30:38 +01:00
Alcaro 89f7afdc8f
silence warning 2017-12-04 13:28:38 +01:00
Alcaro 50148c03e2
not used anymore
4e66962ba8
2017-12-04 13:27:05 +01:00
twinaphex 9558e569f1 We can still make use of this for PowerPC Mac 2017-12-04 05:56:03 +01:00
twinaphex 19d7afd0c2 remove 2017-12-04 04:30:28 +01:00
twinaphex e9af9f1b09 Add EXT version 2017-12-04 04:20:54 +01:00
twinaphex b2fbb9aeda Prepare to map DeleteFramebuffersEXT like this 2017-12-04 04:18:28 +01:00
twinaphex 52e7a533f0 Improve FBO check 2017-12-04 04:12:46 +01:00
twinaphex f53093de4d Default to nbio stdio for PowerPC Mac 2017-12-04 03:12:45 +01:00
twinaphex 97529ade6e OSX PowerPC might not define O_CLOEXEC 2017-12-04 02:48:08 +01:00
twinaphex 2203deb499 Need to include config.h here 2017-11-30 03:43:51 +01:00
Alcaro 4e66962ba8
#5664 2017-11-29 21:39:35 +00:00
twinaphex 6ed5a911d7 Create path_mkdir_error 2017-11-28 08:59:33 +01:00
Brad Parker ae6892a89a nbio: buildfix for Windows versions older than 2000 2017-11-27 17:48:07 -05:00
Alcaro 26008ca580
#5802 2017-11-27 17:55:05 +01:00
Alcaro a96e3e1ead
fix missing %s 2017-11-27 17:16:22 +01:00
Alcaro 9b99a48cdb
just remembered these PRIs don't start with % 2017-11-27 17:12:30 +01:00
Alcaro 4fb12c4bd3
#5802 2017-11-27 17:09:16 +01:00
Alcaro ab0e1611e7
fix #5497 close #5802
according to https://github.com/libretro/RetroArch/issues/5497#issuecomment-336640951, this header exists on everything we care about except various microsoft platforms, and all of them have constant printf strings
2017-11-27 16:57:15 +01:00
orbea 768b1b433c libretro-common: Silence redefined warning. 2017-11-26 20:14:06 -08:00
twinaphex 00d57af005 C89_BUILD fixes 2017-11-26 22:53:42 +01:00
twinaphex e35394d4bd Fix MSVC 2003 build 2017-11-26 22:41:34 +01:00
David Walters 6168db8aeb correct lightgun api comment 2017-11-26 17:20:41 +00:00
David Walters 218d7f88ff New lightgun API in libretro.h 2017-11-26 16:46:33 +00:00
Alcaro 3fa035ba2a This include doesn't go here 2017-11-25 20:25:59 +01:00
twinaphex 369be389f4 Don't need HAVE_MMAP for linux 2017-11-25 18:42:12 +01:00
Twinaphex ff7a244f5b use Unix mmap for OSX/macOS now 2017-11-25 18:39:09 +01:00
twinaphex e78ec12973 Can't have redefinitions of nbio_t in Griffin 2017-11-25 18:33:22 +01:00
twinaphex fe12e079bb Reimplement NBIO windows mmap 2017-11-25 17:38:37 +01:00
twinaphex 72b157bfcd DOn't rely on HASVE_MMAP for nbio_windowsmmap.c 2017-11-25 07:26:06 +01:00
twinaphex 72fdfb1edd Add HAVE_CONFIG_H to file_stream.c 2017-11-25 06:17:19 +01:00
twinaphex 0485bab0ef Add HAVE_CONFIG_H to nbio_intf.c 2017-11-25 06:15:30 +01:00
twinaphex d4c3108b88 Implement new nbio interface implementations 2017-11-25 05:51:33 +01:00
twinaphex 7a772b9cd4 Create nbio_intf.c 2017-11-25 05:35:55 +01:00
twinaphex 81e543a4c9 Cleanups 2017-11-25 05:21:35 +01:00
twinaphex 64a6d6f184 Turn nbio_windowsmmap.c Unicode compatible 2017-11-25 05:18:30 +01:00
twinaphex 395e84ede2 Style nits 2017-11-25 02:18:24 +01:00
twinaphex ac651b7581 Cleanups 2017-11-25 02:12:15 +01:00
twinaphex 0f6c453428 Cleanups 2017-11-25 02:10:04 +01:00
Alcaro 0868c4e346 Fix build 2017-11-25 01:53:09 +01:00
twinaphex d0eef2579e remove this - shouldn't be necessary 2017-11-25 00:54:51 +01:00
Alcaro b5722127c7 Fix docs 2017-11-25 00:26:13 +01:00
Alcaro 5999999cd3 Add Linux-native nbio too 2017-11-24 23:56:05 +01:00
Alcaro 5a6aad3dc7 Add mmap nbio for Windows too 2017-11-24 22:43:22 +01:00
Alcaro 7817ba2340 Add ugly check 2017-11-24 22:14:03 +01:00
Alcaro 053fbd6f27 Add mmap-based nbio implementation (which is too fast for the tests but otherwise passes) 2017-11-24 22:08:57 +01:00
twinaphex 92ea40d96e Fix edge case when file is empty 2017-11-24 21:39:10 +01:00
twinaphex 096686140d Rewrite command_event_save_config 2017-11-23 18:07:28 +01:00
twinaphex 3bda00edaf (libretro-common) Add strldup to compat/strl 2017-11-23 17:51:55 +01:00
Twinaphex 13a0da1f25
Merge pull request #5697 from hiddenasbestos/analog_buttons
Analog buttons
2017-11-18 10:14:35 +01:00
David Walters 668cc01c5c Added RETRO_DEVICE_INDEX_ANALOG_BUTTON constant 2017-11-17 21:50:50 +00:00
Brad Parker 94aa2cd08a document setvbuf changes, only call it with bufsize >0 2017-11-17 16:12:36 -05:00
Twinaphex 1aa05de8ba
Merge pull request #5691 from hiddenasbestos/extra_mouse_buttons
Extra mouse buttons
2017-11-17 16:16:44 +01:00
David Walters 066cbea3c3 Add constants for mouse buttons 4&5 2017-11-17 09:58:40 +00:00
Brad Parker 07f3919811 only call setvbuf right after opening file, and use our own buffer for C89 compliance 2017-11-17 02:28:45 -05:00
twinaphex ec123ef6ca Get rid of most of the HAVE_FBO usage 2017-11-13 06:20:30 +01:00
twinaphex 0703615bf5 Cleanup 2017-11-08 17:37:16 +01:00
Rob Loach 9f222010de
Fix strdup() call when no path is provided 2017-11-08 11:31:17 -05:00
twinaphex b05b27bff6 config_file.c - cleanups 2017-11-07 08:08:22 +01:00
twinaphex 13e0bd1932 Change function signature of file_path_rename 2017-11-06 19:17:42 +01:00
twinaphex e5d4e2ac0a Silence a lot of warnings 2017-11-06 19:13:54 +01:00
Twinaphex 5136ec2df0 Updates 2017-11-06 05:37:32 +01:00
twinaphex 451dc774b0 Update libretro-common 2017-11-06 05:26:07 +01:00
twinaphex 360a3686a0 Update include dirs 2017-11-06 05:23:53 +01:00
Twinaphex f7ac5b3baf
Merge pull request #5652 from RobLoach/7z-deps-included
Fix for included 7zip headers
2017-11-05 01:13:33 +01:00
Rob Loach 3144c38e7d
Clean up deps file includes in audio_mixer.h
The deps folder is already in the include path. This allows deps to be defined elsewhere.
2017-11-04 17:05:39 -04:00
Rob Loach e29e8d9c62
Fix for included 7zip headers 2017-11-04 16:21:02 -04:00
Brad Parker 2ce53f32ac PSP buildfix 2017-10-30 23:31:51 -04:00
Brad Parker 28ec3ac3b5 temporary fix for startup hang on Windows 2017-10-30 16:48:34 -04:00
Brad Parker 68a8198e4a convert more file IO functions to use filestream, fixes encoding issues on Windows 2017-10-29 12:08:24 -04:00
Brad Parker 89265f5cf2 filestream_seek does not return the position in the file 2017-10-29 12:08:24 -04:00
Brad Parker 1842471eb1 use filestream_open to check if a file exists 2017-10-28 16:00:51 -04:00
Brad Parker 20850a7f92 travis: add mingw build targets 2017-10-24 00:37:31 -04:00
bparker06 b0f8a570b5 encoding_utf: Fix coverity warnings, extra error checking 2017-10-19 17:24:35 -04:00
Brad Parker f3aceefe84 win32: use W-functions for nbio file IO too 2017-10-18 12:30:44 -04:00
Brad Parker 0d06a48546 use LEGACY_WIN32 ifdef for filestream also 2017-10-16 00:39:16 +00:00
Brad Parker bd06668075 win32: forgot to add unicode functions for filestream 2017-10-16 00:30:25 +00:00
twinaphex f8a60b2b76 Create LEGACY_WIN32 ifdef 2017-10-16 01:51:59 +02:00
twinaphex 8464ad30bd (Xbox 360) Buildfixes 2017-10-16 01:33:17 +02:00
Brad Parker 1b1d5c468d win32: use unicode functions for file IO if supported 2017-10-15 17:41:34 -04:00
Alcaro f3c57ee343 Don't allow more than a billion nanoseconds 2017-10-15 23:25:21 +02:00
Alcaro 2c773a0eb8 Whitespace cleanup 2017-10-15 23:25:21 +02:00
Brad Parker ac3b7bc4cc windows.h already includes stringapiset for us 2017-10-15 10:16:19 -04:00
Twinaphex e86e237ed7 Merge pull request #5552 from bparker06/win32_file_encoding
win32: support local multibyte encoding for file paths
2017-10-15 13:07:18 +02:00
Brad Parker 338723bc31 fix some null pointer accesses with empty strings 2017-10-15 00:39:55 -04:00
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
twinaphex 7cf1793801 Silence some static code analysis warnings 2017-10-11 21:46:18 +02:00
twinaphex 20da0f0666 Cleanups 2017-10-06 05:28:35 +02:00
twinaphex 608bc45388 Prevent another memory leak 2017-10-06 05:25:05 +02:00
Alcaro 3d9d5320ad typo 2017-10-06 02:15:49 +02:00
twinaphex 6013e25b2b Cleanups 2017-10-06 01:59:16 +02:00
Alcaro 76283edd07 fix buncha ignored errors and whatever 2017-10-06 01:53:00 +02:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex d10de20bff Start compiling Griffin as C for 360 - C89 fixes 2017-10-03 04:11:41 +02:00
bparker06 97f995218f Update vector_list.c 2017-10-02 19:19:12 -04:00
Brad Parker 2bb20a0b4f add generic vector_list for custom types, use it to remove std::vector from D3D9 Cg renderchain 2017-10-02 19:19:12 -04:00
twinaphex 702f1276d6 Silence warnings 2017-10-03 00:53:09 +02:00
Alcaro c91c4ff9c0 Nuke some more ifdefs and warnings 2017-10-03 00:35:41 +02:00
Alcaro dc4c2cd6d9 Wipe out a buncha warnings and pointless ifdefs (some warnings will remain until #5497 is fixed) 2017-10-03 00:26:29 +02:00
Alcaro b97853a536 Rename STRING_REP_ULONG to STRING_REP_USIZE 2017-10-02 22:51:51 +02:00
Brian Koropoff 96c3d6cc1d Remove debug abort() left in by accident 2017-10-01 13:10:24 -07:00
twinaphex 02cc57e5b3 Cleanup 2017-09-30 07:52:00 +02:00
Brad Parker 6b5d863136 check for end of string before trying to read more 2017-09-30 01:47:51 -04:00
twinaphex aab154fadf (chd_stream.c) Cleanups 2017-09-30 01:45:48 +02:00
twinaphex f5dedd673f (trans_stream_zlib.c) Try to prevent null pointer dereferences 2017-09-30 01:41:09 +02:00
twinaphex 7959cd3993 Use malloc 2017-09-29 22:47:45 +02:00
twinaphex 542f87bf55 Prevent leaks 2017-09-29 21:29:34 +02:00
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +02:00
twinaphex 3564562563 database_info.c - use malloc 2017-09-29 05:01:00 +02:00
Alcaro 3374b0ffde Add why we're doing this 2017-09-29 04:04:51 +02:00
twinaphex 8eb28eaae9 Add this for Wiiu debugging 2017-09-29 04:03:13 +02:00
twinaphex 0f1d0ebfa9 config_file.c - use malloc instead of calloc 2017-09-29 03:56:33 +02:00
twinaphex cc8e897222 C89_BUILD fixes 2017-09-22 05:12:26 +02:00
twinaphex 6141761e63 Take out libchdr include from interface_stream.h 2017-09-22 04:47:58 +02:00
Twinaphex 4bbaa65361 Prevent redefinition of typedef; C11 only 2017-09-22 04:43:17 +02:00
Twinaphex 3c04a9776c (OSX) Add FLAC and CHD support 2017-09-22 04:41:09 +02:00
twinaphex 46b79ccd78 Compilation fixes - headers need to be moved to separate include dir 2017-09-21 19:34:46 +02:00
twinaphex c0de19f23d Update 2017-09-21 19:29:13 +02:00
twinaphex c3b5981dc0 Create minmax.h for libchdr 2017-09-21 19:28:32 +02:00
twinaphex df60512a0d Cleanup our dep version of 7zip - we don't want non-stdint types.
Other misc. cleanups
2017-09-21 19:23:09 +02:00
Brian Koropoff 7061cb14fb chd_stream: support CHDs from GDI files 2017-09-18 09:03:43 -07:00
Brian Koropoff 5b20c13f92 chd_stream: support PRIMARY special track 2017-09-18 09:00:39 -07:00
twinaphex 49cf80db10 Fix resource leaks 2017-09-18 15:57:05 +02:00
twinaphex 21ff58f66e Cleanups 2017-09-18 12:55:11 +02:00
Twinaphex 6648ebed0d Silence some warnings 2017-09-18 11:56:59 +02:00
Brian Koropoff 3b7a202934 Fix libchdr build on Windows 2017-09-17 22:04:11 -07:00
twinaphex e35eeb8a42 Cleanups 2017-09-17 19:06:58 +02:00
twinaphex 9cfc41d96c Fix warnings 2017-09-17 18:53:58 +02:00
twinaphex 4e71b75a7d include retro_inline.h 2017-09-17 18:38:51 +02:00
twinaphex f67641c52c (libchdr) Can't have C++ comments
(config.params.sh) Have to disable FLAC for now; still doesn't
compile for Windows due to fseeko/ftello errors
2017-09-17 18:36:55 +02:00
Brian Koropoff a5dc63b390 common: integrate chd into interface stream 2017-09-17 02:02:04 -07:00
Brian Koropoff 2c7b6a94e4 common: add chd_stream interface 2017-09-17 02:02:04 -07:00
Brian Koropoff d41ea34d6b upgrade libchdr 2017-09-17 02:02:04 -07:00
twinaphex dd351a3501 (Xbox) Provide implementation function for inet_ntop_compat 2017-09-13 03:05:28 +02:00
twinaphex be367138f6 Provide implementation for inet_aton for Xbox 2017-09-12 23:54:10 +02:00
twinaphex 0800047258 (Xbox) Buildfixes 2017-09-12 23:44:05 +02:00
twinaphex 587747e030 Update 2017-09-12 23:09:06 +02:00
radius 5d03a4719f clear inet_ntop_compat warning 2017-09-10 21:44:15 -05:00
twinaphex dbb6adb453 C89_BUILD fixes 2017-09-11 04:17:28 +02:00
Andrés f6bedeeb7c Revert "cut on underscores too, might be required to add other delimiters so …" 2017-09-09 01:04:32 -05:00
radius 4a4de389d1 cut on underscores too, might be required to add other delimiters so it doesn't get stuck on an endless loop on long strings 2017-09-09 00:24:59 -05:00
Brad Parker 07566c51a1 VC6 buildfixes, add Makefile.griffin target for it 2017-09-07 11:50:10 -04:00
twinaphex 3ef416d8ef Update libretro-common 2017-09-07 16:35:49 +02:00
Brad Parker ac949a14bf msvc2003 buildfixes 2017-09-07 02:02:43 -04:00
Brad Parker 7d3330da74 use DWORD to avoid type mismatch 2017-09-06 23:05:44 -04:00
Brad Parker 6f572654a2 add va_copy for all MSVC below 2013 2017-09-06 23:05:31 -04:00
Brad Parker de27275fc9 CreateThread must specify storage for the thread identifier on <= win98 2017-09-06 23:04:19 -04:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
twinaphex 42ac90665e Buildfix 2017-09-06 23:40:38 +02:00
twinaphex 47b4de7bbf Update 2017-09-06 23:17:00 +02:00
twinaphex 56c66376ff Update libco 2017-09-06 00:47:38 +02:00
twinaphex 582b688121 Silence some warnings for PS3 2017-09-06 00:21:20 +02:00
Brad Parker 1204715525 msvc throws debug assert with fopen on a null string 2017-09-03 23:52:58 -04:00
Brad Parker 8d525f711a msvc2003 buildfixes 2017-09-03 23:39:25 -04:00
Higor Eurípedes d40deb737d (file_list.c) Add file_list_reserve() 2017-09-03 14:58:01 -03:00
Higor Eurípedes 9a50f5f8b1 (file_list.c) Document file_list_free() behavior 2017-09-03 10:30:01 -03:00
Brad Parker 9c49b693f3 rthreads: early return if thread was null (temporary fix for shutdown crash in win98) 2017-08-22 23:41:58 -04:00
Ash 738d17ff3b
Fix null deref where argc = 0
I noticed this on the Wii U emulator Decaf - it sets argc to 0 and,
annoyingly, sets up argv so that argv[0] is a bad read.

Gah.
2017-08-19 17:16:50 +10:00
radius 6804432fa7 log address family, fix inet_ntop_compat 2017-08-15 21:03:59 -05:00
twinaphex ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
twinaphex 3c758609b5 Updates 2017-08-08 18:51:01 +02:00
twinaphex e979eece1c Updates 2017-08-08 18:45:56 +02:00
Twinaphex 988468f691 Merge pull request #5267 from rtissera/modmixfix
Fix MOD support not mixing core provided audio stream
2017-08-08 18:52:03 +02:00
ensra 6a36453f20 Cast ctype args to unsigned char 2017-08-08 12:21:48 +01:00
Romain Tisserand 5a85c53174 Fix MOD support not mixing core provided audio stream 2017-08-08 12:19:24 +02:00
twinaphex c7615fdf00 Add RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT 2017-08-07 18:06:03 +02:00
twinaphex c426f68379 C89 buildfix 2017-08-06 16:41:09 +02:00
twinaphex c7e6f19920 Cleanup retro_dirent_is_dir 2017-08-06 14:21:18 +02:00
twinaphex e3192ad3c5 Get rid of some incompatible implicit declaration warnings 2017-08-06 13:55:32 +02:00
Brad Parker 6b369775cf add unicode-aware option for word_wrap (only needed for xmb) 2017-08-06 03:33:13 -04:00
twinaphex e259a8c63b Try to avoid direct initialization 2017-08-06 01:44:34 +02:00
twinaphex 944eb01fb4 Updates 2017-08-06 01:29:41 +02:00
twinaphex 32234b44d3 Prevent dereference after null check warning by Coverity 2017-08-05 16:42:28 +02:00
twinaphex 2aa095aa4b Fix some Coverity warnings 2017-08-05 16:24:33 +02:00
twinaphex 449a33cf17 buildfix 2017-08-05 15:24:15 +02:00
Romain Tisserand 05c7bdedbe Proper fix for MOD support 2017-08-05 12:00:20 +02:00
twinaphex 24b3705fa1 Some more build fixes 2017-08-05 00:03:58 +02:00
twinaphex aa4d68760b Buildfixes 2017-08-04 23:53:38 +02:00
Romain Tisserand d865c4cdcf First working prototype. 2017-08-04 16:09:53 +02:00
Romain Tisserand cbe2d9a941 Preliminary MOD/S3M/XM support through ibmx library (part of micromod repository) 2017-08-04 15:05:29 +02:00
twinaphex 252dc1b130 Updates 2017-07-28 09:24:35 +02:00
Rob Loach 2a0e34d66e
Add ./configure to audio and video filters 2017-07-27 22:20:56 -04:00
twinaphex e517e9b96a Add file_stream_transforms 2017-07-27 09:09:37 +02:00
Brad Parker 02381aabef add SSL/TLS support 2017-07-26 09:18:17 -04:00
Rob Loach afa01c5421 Add make install command for the audio filters 2017-07-25 09:19:51 -04:00
twinaphex 70e85ad719 Buildfix 2017-07-23 07:45:57 +01:00
Yoshi Sugawara c1ce224bd7 GL_CAPS_TEX_STORAGE_EXT not working/supported on iOS, so disabling 2017-07-21 17:19:52 -10:00
Yoshi Sugawara 4b29c9dcad Returning false for the BGRA8888 opengl extension for all iOS devices 2017-07-20 19:13:18 -10:00
Yoshi Sugawara 15be2d6b34 The BGRA8888 gl extension is not working in iOS 10 and 11; report capability as false to get rendering the screen working again for cores that output in the BGRA8888 pixel format (mednafen_psx, nestopia, others?) 2017-07-20 19:06:32 -10:00
twinaphex 058dc172c7 Update 2017-07-20 04:37:19 +01:00