Brad Parker
|
54e7ec8e79
|
win32: use Unicode file I/O for 7zip archives when available
|
2018-01-02 20:21:55 -05:00 |
twinaphex
|
d1ad5c336e
|
Silence warnings
|
2018-01-02 06:28:05 +01:00 |
Alcaro
|
e0eb5e698e
|
We'll want a test suite at some point, here's the first test
|
2018-01-01 20:55:26 +01:00 |
Alcaro
|
a79b3250ce
|
why is -common trying to call out of -common
|
2018-01-01 20:42:10 +01:00 |
twinaphex
|
07f13876fc
|
Fix playlist issues with extract_value - the name of the last playlist
entry in history list was being reused for the next playlist entry
|
2018-01-01 20:17:41 +01:00 |
twinaphex
|
21c1acac73
|
Prevent another Coverity warning - memory corruption
|
2018-01-01 17:24:00 +01:00 |
twinaphex
|
b279dfcb64
|
Simplify extract_value
|
2018-01-01 16:45:18 +01:00 |
twinaphex
|
515918f80c
|
config_file.c - fix Coverity warning - resource leak of
path
|
2018-01-01 16:37:20 +01:00 |
twinaphex
|
e566a5591b
|
Revert "Revert config_file.c"
This reverts commit 2f422a457f .
|
2018-01-01 07:45:57 +01:00 |
twinaphex
|
f2ddc8eff0
|
Revert "Simplify config_file_write"
This reverts commit a4500eeafc .
|
2018-01-01 07:45:56 +01:00 |
twinaphex
|
20122d21ee
|
CXX_BUILD buildfix
|
2017-12-30 08:12:38 +01:00 |
Brad Parker
|
a3a5f6e07e
|
win32: add Unicode versions of getenv, GetModuleFileName, LoadLibrary and _mkdir
|
2017-12-27 02:55:53 +00:00 |
twinaphex
|
a4500eeafc
|
Simplify config_file_write
|
2017-12-20 17:07:31 +01:00 |
twinaphex
|
2f422a457f
|
Revert config_file.c
|
2017-12-20 02:52:01 +01:00 |
Alcaro
|
b7249525d4
|
guess drunk is better than untested
|
2017-12-19 00:13:19 +01:00 |
Alcaro
|
b2d5fad4f5
|
strtok is drunk
|
2017-12-19 00:08:25 +01:00 |
twinaphex
|
c6217ef14b
|
(file_path.c) Get rid of libretro.h dependency
|
2017-12-14 20:06:15 +01:00 |
twinaphex
|
c7c4b723d6
|
Move path_file_exists to filestream and do away with filestream
dependencies in file/file_path
|
2017-12-14 20:05:46 +01:00 |
Brad Parker
|
8c0adf3594
|
move path_file_rename and path_file_remove into VFS
|
2017-12-14 13:32:26 -05:00 |
gblues
|
6904101c44
|
Clean up trailing whitespace
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
|
2017-12-12 00:24:18 -08:00 |
twinaphex
|
61d3f90cae
|
Add hint defines to libretro.h
|
2017-12-11 12:53:47 +01:00 |
twinaphex
|
318f17c4cb
|
Start using VFS API constant defines
|
2017-12-11 12:15:00 +01:00 |
twinaphex
|
e1461cc0de
|
Get rid of hashes in config_file.c
|
2017-12-11 11:40:36 +01:00 |
twinaphex
|
2fd8210e59
|
Create shareable filestream_getline
|
2017-12-10 22:35:08 +01:00 |
twinaphex
|
2e979ec537
|
Replace function signatures of file_stream file functions
|
2017-12-10 22:25:38 +01:00 |
twinaphex
|
95cc8e12d2
|
Get rid of RFILE_MODE_READ_TEXT dependency for config file/playlist
|
2017-12-10 21:28:13 +01:00 |
Alcaro
|
e07ed18105
|
Fix text mode dependency
|
2017-12-10 21:00:24 +01:00 |
Brad Parker
|
1a928b9c50
|
omit extra slash at end of path, Win95/98 doesn't like them
|
2017-12-09 16:38:33 -05:00 |
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 |
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 |
Brad Parker
|
cd9d09d1f3
|
use unicode versions of windows functions
|
2016-11-29 14:34:35 -05:00 |
twinaphex
|
4029709658
|
Fix warning
|
2016-11-27 14:50:42 +01:00 |