Commit Graph

515 Commits

Author SHA1 Message Date
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 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 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
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 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 451dc774b0 Update libretro-common 2017-11-06 05:26:07 +01:00
Rob Loach e29e8d9c62
Fix for included 7zip headers 2017-11-04 16:21:02 -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 1842471eb1 use filestream_open to check if a file exists 2017-10-28 16:00:51 -04:00
Brad Parker f3aceefe84 win32: use W-functions for nbio file IO too 2017-10-18 12:30:44 -04: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
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02: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
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +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 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
Brad Parker 07566c51a1 VC6 buildfixes, add Makefile.griffin target for it 2017-09-07 11:50:10 -04:00
Brad Parker 0a1b3fedc0 VC6 support (targets NT 3.51) 2017-09-06 23:03:02 -04:00
Brad Parker 1204715525 msvc throws debug assert with fopen on a null string 2017-09-03 23:52:58 -04: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
twinaphex 3a141cb891 Create retro_dirent_include_hidden 2017-07-04 04:09:45 +02:00
twinaphex 2fda0b7e66 Simplify retro_dirent 2017-07-04 03:30:53 +02:00
twinaphex 4813019c58 Cleanup 2017-06-28 07:53:05 +02:00
twinaphex 25c18bb3ce (config_file.c) Cleanups 2017-06-28 06:41:58 +02:00
twinaphex 8fbcf34e02 Cleanup config_file.c 2017-06-28 06:25:32 +02:00
twinaphex ddb4867c52 (file_path.c) Cleanups 2017-06-28 04:51:58 +02:00
twinaphex e1041030a2 Get rid of stdstring.h dependency for file_path.c 2017-06-28 04:44:33 +02:00
twinaphex 50b07ad8c4 Move retro_le to archive_file_zlib.c 2017-06-28 04:20:52 +02:00
twinaphex d3868cc06f Get rid of retro_assert usage in file_path.c 2017-06-26 05:33:47 +02:00
twinaphex cf71d465a3 Turn mkdir_norecurse into static function 2017-06-16 15:33:06 +02:00
twinaphex 6af5bd01bf Merge retro_stat and file_path 2017-06-16 15:00:11 +02:00
twinaphex 8d1e51af7c Make archive_file_7z.c less dependent on 7zip source files 2017-06-12 12:26:19 +02:00
aliaspider 934f7c58ba (WiiU) enable networking. 2017-05-23 10:24:23 +01:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
twinaphex 5a9f6ad9b7 Try to prevent null pointer dereference 2017-05-09 20:45:09 +02:00
twinaphex e8c1c153d6 Prevent nULL pointer dereference 2017-05-08 22:55:45 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex 0c66441d08 (archive_file) Cleanups 2017-04-21 20:46:41 +02:00
twinaphex 271edb4ca1 We don't want uppercase for these instances 2017-04-21 14:26:35 +02:00
twinaphex 607ae71259 Turn string_is_equal_noncase into self-contained function 2017-04-21 14:17:47 +02:00
twinaphex dd517f4660 Try to avoid directly calling strcmp 2017-04-21 13:56:15 +02:00
twinaphex 82c62b1693 Use stdstring in more instances 2017-04-21 13:50:24 +02:00
twinaphex 824a619b90 Initialize db manually 2017-02-28 10:53:20 +01:00
Twinaphex ddae075733 Silence more warnings 2017-02-27 01:28:01 +01:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex 712724e0ff (archive_file.c) Get rid of memsets 2017-02-20 02:12:39 +01:00
twinaphex 7c722fca9a (nbio_stdio.c) Try to prevent 'argument cannot be negative' coverity warning 2017-01-22 20:30:47 +01:00
Brad Parker a2d37adc53 Windows 95 does not have GetFileAttributesEx 2017-01-22 13:48:49 -05:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
Josh Palmer ef205447df QNX-specific default directory and file permission handling 2017-01-09 20:26:09 +00: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 e328c4ebfa (archive_file.c) Cleanup 2016-12-21 01:47:32 +01:00
twinaphex 3561949a87 Get rid of some implicit memsets 2016-12-19 18:18:40 +01:00
twinaphex 4c9f2e41ff Get rid of some implicit memsets 2016-12-19 14:04:37 +01:00
twinaphex 89820220b7 (libretro-common) Cleanup/style nits for archive_file_{7z/zlib} 2016-12-19 00:12:24 +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 8042c2ac62 Move config_file_userdata.c to libretro-common 2016-12-12 12:36:46 +01: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 3b8a81dd31 make existing hard-coded unicode calls switchable back to ansi 2016-12-02 14:34:29 -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
Brad Parker 367dea6723 unicode-ify a couple other windows files, start changing function names to W version explicitly 2016-11-29 20:32:24 -05:00
Brad Parker 8adafa9249 use UTF8/16 conversion functions instead of codepage ones 2016-11-29 14:34:36 -05:00
Brad Parker 495deae31b still not working 2016-11-29 14:34:36 -05:00