twinaphex
02a43c6b2a
Change 'rarch' to 'retro' namespace in libretro-common
2015-10-26 03:18:13 +01:00
twinaphex
87d44af218
Static code analysis cleanups
2015-09-29 18:08:33 +02:00
twinaphex
02a5d738fe
Static code analysis cleanups
2015-09-28 23:00:22 +02:00
twinaphex
0cc56e2a1a
More static code analysis nits
2015-09-28 18:44:28 +02:00
twinaphex
ff779eabd4
(file_ops.c) Cleanups
2015-09-19 12:48:53 +02:00
twinaphex
f4504e2e74
(file_ops) Use retro_write_file - other cleanups
2015-09-19 12:46:31 +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
0d6b32b495
(file_ops.c) Use retro_file everywhere in this file
2015-09-18 05:47:48 +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
c2519d0192
(file_ops.c) Prevent signed/unsigned mismatch
2015-09-17 10:15:50 +02:00
Twinaphex
3dfa505bf2
(file_ops.c) Prevent warning
2015-09-14 23:39:00 +02:00
twinaphex
c6806c2ac0
Fix CXX_BUILD warning
2015-09-14 03:55:35 +02:00
twinaphex
b5f7ccab22
Cleanups
2015-09-13 09:23:48 +02:00
twinaphex
703479f051
Avoid warnings on Android for retroarch-jni compilation
2015-09-06 03:16:33 +02:00
twinaphex
36bb25d4d4
Merge decompress functions into file_ops
2015-09-06 03:11:28 +02:00
twinaphex
acd1ad656a
Cleanups
2015-09-04 20:14:12 +02:00
twinaphex
15ba019ea1
Don't make asserts dependent on retro_log.h
2015-09-01 11:59:27 +02:00
twinaphex
f7631c41cd
Backport xerpi's patch
2015-08-30 17:23:01 +02:00
twinaphex
ba28328e8b
(file_ops.c) Fix -Wsign_compare warning
2015-06-23 11:49:24 +02:00
twinaphex
c36e21ed13
(General) Cleanup
2015-06-12 17:00:37 +02:00
Lioncash
61b8e370ca
file_ops: Get rid of unnecessary if statement
...
fread won't null out the given buffer; nullity is already checked above the fread call.
2015-05-07 18:09:04 -04:00
twinaphex
c26804335b
(libretro-common) Move file_extract.c to libretro-common
2015-03-28 20:14:19 +01:00
twinaphex
ed933aab05
Take dependencies out of file_extract.h
2015-03-28 18:09:40 +01:00
twinaphex
d3b964a1c2
Style nits
2015-03-22 07:37:25 +01:00
Twinaphex
726c64369f
(Apple) Buildfix
2015-03-21 22:28:12 +01:00
twinaphex
fad16b5c60
(file_ops.c) Cleanups
2015-03-21 09:42:15 +01:00
twinaphex
08f13ccc0d
Cleanup read_generic_file
2015-03-21 09:40:29 +01:00
twinaphex
414d964a8b
Simplify file_read some more
2015-03-21 09:34:50 +01:00
twinaphex
3ebcfad8c0
(file_ops.c) Simplify read_file
2015-03-21 09:31:07 +01:00
twinaphex
bdb8475647
Fixup some C++ comments
2015-03-20 17:59:10 +01:00
twinaphex
7378299282
Create rarch_main_get_ptr
2015-03-18 06:47:22 +01:00
twinaphex
969152b902
(file_ops.c) read_generic_file - set len to -1 in case of an error
2015-03-18 05:29:06 +01:00
twinaphex
93a7ae4493
file_ops.c - cleanups
2015-03-18 01:12:07 +01:00
twinaphex
35c2d74d1a
Cleanup in read_generic_file
2015-03-03 09:51:06 +01:00
twinaphex
0752a114f3
Change returntype of read_file
2015-02-23 01:27:39 +01:00
unknown
24cbff147b
additional error tracking after file reads, when closing the stream
2015-02-19 18:03:57 -05:00
unknown
a8fea21f11
additional error tracking on reading file streams if fseek
fails
2015-02-19 17:57:49 -05:00
unknown
586c620609
Also treat file reading as an error if ftell
reports invalid length.
...
`ftell` is documented to return -1L if the function failed to get the current position indicator in the stream. The possibility is easily set aside just by checking if the function returned a negative length.
2015-02-19 17:54:13 -05:00
twinaphex
932fc3d353
read_generic_file - add early return if rom_buf is NULL
2015-02-19 04:21:08 +01:00
twinaphex
ceb09648eb
Change to ssize_t
2015-02-16 03:46:27 +01:00
twinaphex
47889ff755
(Android) Build fix
2015-02-16 03:38:52 +01:00
twinaphex
935b112a11
Refactor read_file
2015-02-16 03:31:37 +01:00
twinaphex
b0f8ac993c
Refactor read_generic_file
2015-02-16 00:44:28 +01:00
twinaphex
cc5147e1c9
Remove unused read_file_string
2015-01-31 10:50:46 +01:00
twinaphex
c4bbede867
Remove unused write_empty_file()
2015-01-16 01:33:07 +01:00
twinaphex
0a2e7afe27
Move read_compressed_file to file_ops.c
2015-01-11 16:38:20 +01:00
twinaphex
e8b5423252
Document file_ops.c
2015-01-08 15:08:44 +01:00
twinaphex
453321c50b
Start updating headers
2015-01-07 17:46:50 +01:00