485 Commits

Author SHA1 Message Date
Brad Parker
49d0299808 LEGACY_WIN32: check for target of less than Win2K instead of < vc2005, since Win98 does not support Unicode 2017-12-04 22:49:08 -05:00
Alcaro
a6ef704369
Update config_file.c 2017-12-04 16:47:27 +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
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
twinaphex
9558e569f1 We can still make use of this for PowerPC Mac 2017-12-04 05:56:03 +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
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
a96e3e1ead
fix missing %s 2017-11-27 17:16:22 +01:00
Alcaro
4fb12c4bd3
#5802 2017-11-27 17:09:16 +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
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
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