Commit Graph

49 Commits

Author SHA1 Message Date
twinaphex 68d66be389 C89_BUILD fixes 2015-12-26 08:13:33 +01:00
Higor Eurípedes 5cbcd90707 (retro_file.c) Get rid of uneeded error messages in retro_read_file()
fseek/ftell lie about the file size in some filesystems (like sysfs) and
this makes the function complain about incomplete read when the file has
been fully read.
2015-12-23 21:20:26 -03:00
twinaphex 074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
Higor Eurípedes 24d0f40959 (retro_file) Small cleanup in fopen() 2015-11-15 20:49:04 -03:00
twinaphex 74464f1843 retro_file.c - CXX_BUILD buildfix 2015-11-15 22:58:31 +01:00
Higor Eurípedes c2eac57529 (retro_file) Fix fseek() 2015-11-15 10:42:38 -03:00
Higor Eurípedes e0e48e8d3e Fix console builds 2015-11-14 20:47:20 -03:00
Higor Eurípedes f527f6466f (libretro-db) Fix build 2015-11-14 19:44:08 -03:00
Higor Eurípedes 72aa4f951c (retro_file) Fix undefined symbols on win32 2015-11-14 17:08:16 -03:00
Higor Eurípedes 0af8b9c731 (retro_file) Fix retro_fwrite() 2015-11-14 17:08:16 -03:00
Higor Eurípedes dac22cf95b (retro_file) Make mmap fseek()/fread() a little more POSIX/ISO-C compliant 2015-11-14 16:03:49 -03:00
Higor Eurípedes eb7b46c7c1 (retro_file) Implement RFILE_HINT_MMAP 2015-11-14 16:03:49 -03:00
Higor Eurípedes 533f41259a (retro_file) Implement RFILE_HINT_UNBUFFERED 2015-11-14 16:03:49 -03:00
twinaphex 0ef40d7819 (retro_file.c) Get rid of dependency on posix_string.h 2015-09-30 03:57:39 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
twinaphex 5da780b2fd Remove some header dependencies 2015-09-22 12:52:15 +02:00
twinaphex 3db688d477 Create retro_stat.c/retro_stat.h 2015-09-22 01:45:30 +02:00
twinaphex 00b2ce6498 (retro_file.c) Add PS3 CellOS implementation 2015-09-21 21:53:47 +02:00
twinaphex ed1690f819 (Vita) Define PSP_O_RDONLY 2015-09-20 11:36:07 +02:00
twinaphex 864dd33e0d (retro_file.c) Vita - cleanups 2015-09-20 10:19:08 +02:00
Francisco José García García 1255674481 (Vita) Fix retro_file for VITA 2015-09-19 18:22:47 +02:00
twinaphex 958dcc3c02 Get rid of retro_fmemcpy - and use retro_read_file 2015-09-19 01:03:52 +02:00
twinaphex 32ddeb3f96 Rename retro_fmemcpy_alloc to retro_read_file 2015-09-19 00:36:27 +02:00
twinaphex 3564532564 Create retro_write_file 2015-09-19 00:34:24 +02:00
twinaphex a6e0b2f22d (retro_file) Create retro_fmemcpy_alloc 2015-09-19 00:19:51 +02:00
twinaphex 3464781017 (PS/Vita) Buildfix for retro_file.c 2015-09-18 07:14:22 +02:00
twinaphex 57f390e44d (retro_file.c) Buildfix for non-HAVE_BUFFERED_IO path 2015-09-18 07:13:06 +02:00
twinaphex e25f3494ba Buildfixes 2015-09-18 06:41:05 +02:00
twinaphex c8df945792 Small cleanup 2015-09-18 05:44:13 +02:00
twinaphex c4910985ed (retro_file.c) Cleanup retro_fopen 2015-09-18 05:42:54 +02:00
twinaphex 5fdb1c8c43 (PSP/Vita) Fix fseek/ftell functionality for PSP/Vita 2015-09-18 05:34:30 +02:00
twinaphex 611be4bc16 (file_ops) Convert some functions in file_ops over to retro_file
(retro_file.c) Fix retro_fseek and retro_ftell functions
2015-09-18 05:22:50 +02:00
twinaphex 133e85298f * Add retro_get_fd to retro_file.c
* Use retro_file in gfx/drivers_context/drm_egl_ctx.c
2015-09-18 03:47:44 +02:00
twinaphex a547fdef50 Fix libretrodb_open - change mode to RFILE_MODE_READ - use
buffered I/O by default
2015-09-18 03:25:53 +02:00
twinaphex b51e418c4c (retro_file.c) HAVE_BUFFERED_IO - correct fread/fwrite arguments 2015-09-18 03:21:56 +02:00
twinaphex 35bd6e6ec8 Revert retro_file.c 2015-09-18 02:38:48 +02:00
twinaphex dd58492fa6 Remove fcntl.h 2015-09-17 22:30:01 +02:00
Alcaro 7cf03b6d47 Revert that, doesn't work. 2015-09-17 22:14:45 +02:00
Alcaro 7054c8b214 Add the final read block too. 2015-09-17 22:10:06 +02:00
Alcaro 097f81ef4e Return the correct length in this fmemcpy thing. 2015-09-17 22:08:56 +02:00
Alcaro c8d627ff13 This looks like a buffer overflow. 2015-09-17 21:59:27 +02:00
Alcaro 691b7cffa9 Stupid fread/fwrite why do you need two arguments 2015-09-17 21:56:51 +02:00
Alcaro 1bb353ad59 This should be binary as well. 2015-09-17 21:55:50 +02:00
Alcaro 091409cc5a Rename these variables, so missed ifdefs throw more violent errors. 2015-09-17 21:54:33 +02:00
twinaphex 714972bae9 (retro_file.c) Add USE_BUFFERED_IO 2015-09-17 21:31:00 +02:00
twinaphex a6458d6ab6 Add PSP/Vita ifdefs to retro_file.c 2015-09-17 20:48:06 +02:00
twinaphex 82e15d1377 CLeanups/fixes 2015-09-17 20:24:49 +02:00
twinaphex 55e54a30b4 Create retro_file, and have libretrodb use it 2015-09-17 19:58:06 +02:00
twinaphex da3bec58b1 (libretro-common) Start adding retro_file.c and retro_file.h 2015-09-17 11:41:48 +02:00