twinaphex
2e979ec537
Replace function signatures of file_stream file functions
2017-12-10 22:25:38 +01:00
twinaphex
d19eaeaab8
(file_stream.c) Cleanups; buildfix
2017-12-10 22:10:32 +01:00
twinaphex
1298a257ae
Make HAVE_BUFFERED_IO the new default
2017-12-10 22:07:42 +01:00
twinaphex
a8e031777e
* Get rid of RFILE_MODE_READ_TEXT
...
* Get rid of PSP ifdef sinside file_stream.c
2017-12-10 22:05:24 +01: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
Francisco José García García
90dd2892b0
FIX sceIoOpen return error
2017-12-04 18:09:37 +01:00
Alcaro
c10859b745
Update file_stream.c
2017-12-04 14:31:31 +01:00
Alcaro
e4bb8e7aeb
Update file_stream.c
2017-12-04 13:52:11 +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
4e66962ba8
#5664
2017-11-29 21:39:35 +00:00
twinaphex
72fdfb1edd
Add HAVE_CONFIG_H to file_stream.c
2017-11-25 06:17:19 +01:00
Brad Parker
94aa2cd08a
document setvbuf changes, only call it with bufsize >0
2017-11-17 16:12:36 -05: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
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
e5d4e2ac0a
Silence a lot of warnings
2017-11-06 19:13:54 +01: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
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
Brad Parker
a7c8cc88e5
win32: support local multibyte encoding for file paths
2017-10-14 23:13:24 -04:00
Alcaro
c91c4ff9c0
Nuke some more ifdefs and warnings
2017-10-03 00:35:41 +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
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
542f87bf55
Prevent leaks
2017-09-29 21:29:34 +02:00
twinaphex
6141761e63
Take out libchdr include from interface_stream.h
2017-09-22 04:47:58 +02:00
twinaphex
46b79ccd78
Compilation fixes - headers need to be moved to separate include dir
2017-09-21 19:34:46 +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
21ff58f66e
Cleanups
2017-09-18 12:55:11 +02:00
twinaphex
e35eeb8a42
Cleanups
2017-09-17 19:06:58 +02:00
twinaphex
9cfc41d96c
Fix warnings
2017-09-17 18:53:58 +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
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
e517e9b96a
Add file_stream_transforms
2017-07-27 09:09:37 +02:00
twinaphex
46806e7204
Bake out stdin_stream.c
2017-05-30 03:00:11 +02:00
Maxime Gauduin
f3453500d4
Fix compilation with GCC 7.1.0
2017-05-25 13:36:11 +02:00
twinaphex
8c796f694f
Windows buildfix
2017-05-21 10:04:02 +02:00
twinaphex
e4055e0d1b
Add headers
2017-05-20 19:05:09 +02:00
twinaphex
eec0613c10
Add header include
2017-05-20 16:24:32 +02:00
twinaphex
d339eb327c
Don't implement read_stdin for Xbox
2017-05-20 15:09:19 +02:00
twinaphex
e4210f5b00
Can't do this on Xbox
2017-05-20 15:02:34 +02:00
twinaphex
58787e6d89
(libretro-common) Create stdin_stream.c
2017-05-20 14:58:51 +02:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
twinaphex
779a7676d6
Try to prevent null pointer dereference
2017-05-08 22:53:06 +02:00
Twinaphex
927ed42498
Fix filestream memory leak
2017-04-28 21:27:40 +02:00
twinaphex
edadba1ec7
Silence valgrind memcheck warning
2017-04-23 20:26:31 +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
82c62b1693
Use stdstring in more instances
2017-04-21 13:50:24 +02:00
Twinaphex
b7b3b2cb5f
Try to prevent truckload of warnings on iOS
2017-02-26 10:33:03 +01:00
twinaphex
e6ee2527e5
Add filestream_get_size/filestream_set_size
2017-02-18 02:21:33 +01:00
twinaphex
e9524f1b95
Add filestream_get_ext
2017-02-18 02:16:40 +01:00
twinaphex
7a5ed7cc65
Add filestream_flush and use filestream interface for tasks/task_save.c
2017-02-17 03:03:18 +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
twinaphex
64bb848daf
Update headers (pt. 2 - libretro-common)
2017-01-22 13:58:20 +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
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
d891f1c90b
remove explicit unicode def/undefs
2016-12-02 14:34:29 -05:00
Brad Parker
187e1fc71b
use wide fopen() on windows
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
5b2c4db656
(libretro-common) Fix header
2016-11-27 15:35:04 +01:00
Gregor Richards
096eb072e1
Replacing archive_file_zlib backend with trans_stream
2016-11-26 15:48:58 -05:00
Gregor Richards
ac50e17f50
Moving zlib stream interface
...
Moving the zlib streaming interface out of archive_file and into
trans_stream, including updating the png support to use the new
trans_stream interface. archive_file_zlib itself still needs updating.
2016-11-26 10:47:24 -05:00
Gregor Richards
f27476b4ef
Adding a transcoding stream interface for in-memory compression.
2016-11-26 09:19:46 -05:00
Francisco José García García
3cf448b6e2
(VITA) Fix File Reading
2016-08-05 01:47:05 +02:00
Francisco José García García
63b637cf6c
(VITA) Fix reading files
2016-08-04 02:05:55 +02:00
twinaphex
3d667999ab
Cleanup
2016-08-02 16:19:27 +02:00
Francisco José García García
80c3bf0ec2
(VITA) FIX gets
2016-07-31 09:58:53 +02:00
Twinaphex
680aafe8f8
Merge pull request #3077 from aliaspider/master
...
(VITA) build fix for latest sdk.
2016-06-05 23:03:03 +02:00
aliaspider
5a80bd6b30
(VITA) build fix for latest sdk.
2016-06-05 22:01:25 +01:00
twinaphex
7e2a077bd5
filestream_eof - prevent 'improper usage of negative value'
2016-06-05 19:20:08 +02:00
Twinaphex
810447e3ec
(file_stream.c) Fix warnings
2016-06-04 07:37:54 +02:00
twinaphex
563089558b
Implement filestream_getc for PSP/Vita by just calling filestream_read
...
instead
2016-06-04 03:42:55 +02:00
twinaphex
0ae2e90783
Buildfix for targets that don't have HAVE_BUFFERED_IO defined
2016-06-03 09:24:34 +02:00
twinaphex
a503db016e
Create filestream_eof
2016-06-03 07:29:27 +02:00
twinaphex
d40eade52c
Create filestream_getline
2016-06-03 07:09:50 +02:00
twinaphex
2b33c731d0
Create RFILE_MODE_READ_TEXT
2016-06-03 03:14:42 +02:00
twinaphex
4dc3fe9f8c
Create filestream_getc
2016-06-03 00:07:00 +02:00
twinaphex
97427b343b
(libretro-common) Create filestream_gets
2016-06-03 00:03:58 +02:00
twinaphex
e5f00e8346
(PS3) Non-zipped rom file loading should work again
2016-05-15 20:45:21 +02:00
twinaphex
268be70fe8
Cleanups
2016-05-07 04:15:39 +02:00
twinaphex
06ccd36b2f
(PS3) Cut down on warnings
2016-04-13 01:49:38 +02:00
twinaphex
175d601a4e
Make it possible to initialize memory stream interface in
...
writable mode
2016-04-07 05:06:41 +02:00
twinaphex
9b4bb51c2e
Cleanup filestream_tell
2016-04-07 04:20:09 +02:00
twinaphex
55a28eb8a3
Cleanup filestream_seek
2016-04-07 04:16:46 +02:00
twinaphex
2e66300320
Cleanup filestream_get_fd
2016-04-07 03:35:12 +02:00
twinaphex
b20a03f3b9
Add unimplemented message
2016-04-07 03:30:02 +02:00
twinaphex
502c2a41a9
Only define HAVE_BUFFERED_IO if platform is not PS3/PSP or Vita
2016-04-07 03:29:17 +02:00
twinaphex
bf017e3a0c
Add intfstream_putc
2016-04-07 03:24:41 +02:00
twinaphex
2bb90f3702
Add filestream_putc
2016-04-07 03:23:01 +02:00
twinaphex
f0a1b94a11
Update memory_stream.c with FCEUmm update code
2016-04-07 03:07:23 +02:00
twinaphex
a8144abbce
Add intfstream_tell
2016-04-07 02:44:21 +02:00
twinaphex
0da67ad4f9
Add intfstream_close
2016-04-07 02:30:09 +02:00
twinaphex
99a9769014
Add intfstream_rewind
2016-04-07 02:27:33 +02:00
twinaphex
ea037799a4
Add memstream_rewind
2016-04-07 02:24:31 +02:00
twinaphex
f51e0f62e5
Add intfstream_seek
2016-04-07 02:21:43 +02:00
twinaphex
67cf1153c6
(streams/memory_stream.c) Cleanup
2016-04-07 02:15:48 +02:00
twinaphex
2a3bba34e0
Add intfstream_gets/intfstream_getc
2016-04-07 02:13:40 +02:00
twinaphex
a20a2da85e
Add intfstream_read/intfstream_write
2016-04-07 02:06:04 +02:00
twinaphex
554ca4f087
(libretro-common) Add intfstream_open
2016-04-07 01:58:54 +02:00
twinaphex
5eb3bb05f7
Start adding streams/interface_stream.c
2016-04-06 21:58:23 +02:00
twinaphex
7fe34b97a6
(libretro-common) streams - cleanups
2016-04-06 17:03:17 +02:00
twinaphex
734ef07fcc
(file_stream.c) Cleanups
2016-04-06 16:55:17 +02:00
twinaphex
cce0320bb5
(libretro-common) Cleanups
2016-04-06 16:48:51 +02:00
twinaphex
1b289c0f05
(libretro-common) Update
2016-03-24 04:23:17 +01:00
twinaphex
e41127459e
Rename 'filestream' functions
2016-03-24 04:09:25 +01:00
twinaphex
3720cf87e7
Rename retro_file to file_stream
2016-03-20 16:29:14 +01:00
twinaphex
be9bf7dc44
(libretro-common) Move memory_stream
2016-03-20 16:17:44 +01:00