Commit Graph

769 Commits

Author SHA1 Message Date
twinaphex
7d29929819 Move file_archive_inflate_init to file_archive_zlib 2016-01-24 20:18:52 +01:00
twinaphex
fa00f51e80 Move zlib_deflate_data_to_file to file_archive_zlib.c 2016-01-24 20:15:17 +01:00
twinaphex
d1ef6f032e Create stream_compress_free and add it to file_archive_zlib 2016-01-24 20:12:12 +01:00
twinaphex
f264d3d29b Move zlib_stream_ functions to file_archive_zlib.c 2016-01-24 20:08:57 +01:00
twinaphex
064c5ffc3a Move zlib_stream_free to file_archive_zlib.c 2016-01-24 20:01:35 +01:00
twinaphex
9a23d95846 Add zlib_stream_new to file_archive_zlib.c 2016-01-24 19:57:31 +01:00
twinaphex
021d8e6af8 Make file_archive_get_default_file_backend public scope 2016-01-24 19:48:25 +01:00
twinaphex
6f3adc900d Style nits 2016-01-24 19:44:18 +01:00
twinaphex
c4fa71ecc3 Move functions 2016-01-24 19:29:34 +01:00
twinaphex
3e3b57200a Cleanup 2016-01-24 19:25:30 +01:00
twinaphex
14e389bccf Improve ZLIB_TRANSFER_DEINIT case 2016-01-24 19:16:26 +01:00
twinaphex
b4b686fdff Cleanups/style nits 2016-01-24 19:10:02 +01:00
twinaphex
5c2acea38c Do 'free' on handle->stream in case of an error in file_archive_inflate_data_to_file_init 2016-01-24 18:55:50 +01:00
twinaphex
cc69cfe6a7 Use zlib_transfer_t * instead of void * 2016-01-24 18:53:37 +01:00
twinaphex
cf94c0b6c0 Move file backend back to file_archive.c 2016-01-24 16:18:18 +01:00
twinaphex
5b343c2a32 (RPNG) Update 2016-01-24 07:47:27 +01:00
twinaphex
3c2a45d923 Rename file_extract functions 2016-01-24 07:42:46 +01:00
twinaphex
552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex
09e5dc9c50 Cleanup 2016-01-24 06:55:26 +01:00
twinaphex
5c615f18e1 Turn zlib_inflate_init2 into static function 2016-01-24 06:52:14 +01:00
twinaphex
280e10195c Remove zlib_crc32_adjust - reuse zlib_crc32_calculate for this 2016-01-24 06:50:18 +01:00
twinaphex
c6f7afbd9a Adjust zlib_crc32_calculate 2016-01-24 06:47:06 +01:00
twinaphex
a0e9a4c68e Cleanups 2016-01-24 06:42:57 +01:00
twinaphex
8a254d0480 (Android) Fix build 2016-01-24 06:28:27 +01:00
twinaphex
78feccd0a3 Split up file extract zlib driver code to separate file 2016-01-24 06:18:53 +01:00
twinaphex
458e3a0fad Fix zlib_extract_first_content_file - we now pass a
new string to zlib_extract_first_content_file which will
fill in the extracted first file's path, we then add this
to temporary_content string list
2016-01-24 05:41:41 +01:00
twinaphex
b4956ac7c1 zlib_get_file_list- cleanup 2016-01-23 23:02:16 +01:00
twinaphex
9c131dfaad Cleanup 2016-01-23 23:00:35 +01:00
twinaphex
365b27caac Simplify zip_extract_cb 2016-01-23 22:57:21 +01:00
twinaphex
23d3af9c5a Nit 2016-01-21 19:13:10 +01:00
twinaphex
71df617bee Cleanup 2016-01-21 19:12:05 +01:00
Alcaro
0d77ac3977 Fix code style mismatch. 2016-01-21 01:31:38 +01:00
Alcaro
1229ee0f1b Fix C89 build. 2016-01-21 01:27:49 +01:00
Alcaro
79b3794b93 Rewrite this for fewer malloc. 2016-01-21 01:24:29 +01:00
Alcaro
c48dee0d7b If strequal checks for NULL, then striequal should too. 2016-01-21 01:09:05 +01:00
Alcaro
79edafc3aa Clean up those functions a bit. 2016-01-21 01:08:37 +01:00
Twinaphex
82dc569497 Simplify sring_is_empty 2016-01-21 01:04:07 +01:00
Twinaphex
447468a39d Change string_is_equal_noncase to just a strcasecmp wrapper for now 2016-01-21 01:00:47 +01:00
twinaphex
63e2d13b8f Create string_is_equal_noncase - try not to use strcasecmp so much 2016-01-20 17:34:19 +01:00
twinaphex
454abdee48 stdstring - create string_is_equal 2016-01-20 04:07:24 +01:00
Alcaro
2ffe03f732 Fix creepy type error. 2016-01-18 23:24:22 +01:00
twinaphex
4de1726bf6 Define CGFloat for versions lower or equal to OSX 10.4 2016-01-17 19:58:31 +01:00
twinaphex
b5b8886894 (async_job/rsemaphore) Cleanups 2016-01-13 08:58:38 +01:00
twinaphex
39dc2a0d05 Get rid of this messy code 2016-01-08 17:58:53 +01:00
radius
d2329cf192 add function to change strings to lowercase 2016-01-02 13:59:10 -05:00
twinaphex
6ff544ba1a Update libretro-common 2015-12-31 15:28:46 +01:00
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
Higor Eurípedes
f386c9b7f9 (file_extract) Fix invalid read in zlib_parse_file_progress() 2015-12-05 20:57:04 -03:00
twinaphex
e2144c20ff Backports/rewrites wmarquesr pt. 1 2015-12-04 10:33:06 +01:00
twinaphex
0b1f5df456 Update encoding_utf 2015-12-01 19:24:51 +01:00
Higor Eurípedes
f84bea4302 (task_http) Disallow same-file concurrent downloads 2015-11-30 11:37:06 -03:00
Higor Eurípedes
a171f3c6d1 (task_decompress.c) Add progress report 2015-11-30 10:41:35 -03:00
Higor Eurípedes
6dfa580dfa (runloop_msg) Add rarch_main_msg_queue_pushf() 2015-11-28 16:07:53 -03:00
radius
2b6f7f0647 sleep to avoid flodding the host 2015-11-27 19:01:06 -05:00
radius
ced2131027 basic remote gamepad test program 2015-11-27 18:15:42 -05:00
twinaphex
f319916e80 C89_BUILD buildfixes 2015-11-25 03:33:54 +01:00
twinaphex
40e8f4eba6 Dehardcode C89_BUILD ifdefs 2015-11-25 02:10:31 +01:00
twinaphex
6a46b4d1ec Lower PATH_MAX_LENGTH to 512 for 3DS/PSP/Wii/Gamecube/Xbox 1 2015-11-24 17:38:52 +01:00
Higor Eurípedes
afce03a20e (task_http) Abort task on error 2015-11-23 22:45:36 -03:00
twinaphex
d1b9dbe7dc move db_to_gain to retro_miscellaneous.h 2015-11-24 00:35:14 +01:00
twinaphex
73fcbe3786 retro_miscellaneous.h - include math.h 2015-11-24 00:33:40 +01:00
twinaphex
a3e52a9369 Put M_PI inside retro_miscellaneous.h 2015-11-24 00:05:37 +01:00
Higor Eurípedes
935e03fa97 Reimplement http transfers using tasks 2015-11-23 17:42:01 -03:00
twinaphex
ab6d8fe6cc (compat_getopt.c) Include stdio.h 2015-11-23 20:26:32 +01:00
twinaphex
074f14b132 Add verbosity.c/verbosity.h 2015-11-23 12:03:38 +01:00
twinaphex
62a556e8ce retro_log.h - hacky but necessary to get it to work 2015-11-23 11:05:19 +01:00
twinaphex
ecddeef016 Add extern "C" around retro_main_verbosity 2015-11-23 10:50:15 +01:00
twinaphex
d65a445acd Fix concurrency issue with global->verbose 2015-11-22 20:50:39 +01:00
twinaphex
5c71cb06d4 Remove CONFIG_GET_HEX_BASE macro 2015-11-21 18:08:37 +01:00
twinaphex
f91ba67c5b Kill off two configuration macros 2015-11-21 18:02:53 +01:00
twinaphex
30272dd413 Create 'loading and saving' of configuration settings for video_driver_ctl 2015-11-21 09:32:51 +01:00
Alcaro
888ba881ec No need to free a known null... 2015-11-20 16:33:21 +01:00
Alcaro
4b96b5814f Fix some weirdness down here. 2015-11-20 16:30:55 +01:00
Jean-André Santoni
632408c70d Prevent loosing core assignations for playlists that doesn't exist yet, or doesn't exist more 2015-11-20 03:23:20 +07:00
twinaphex
1e006e3edc Comment out config_get_uint64 when compiling for C89 2015-11-19 13:52:40 +01:00
twinaphex
63d78fd1cc Buildfix for MSVC 2015-11-16 21:21:52 +01:00
twinaphex
6f50187b56 Create utf16_conv_utf8 - recycled code - should probably be
cleaned up
2015-11-16 07:55:09 +01:00
twinaphex
8918df95e1 Add encoding_utf to libretro-common 2015-11-16 07:24:21 +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
twinaphex
1c296b6bd6 (libretro-common) fifo_buffer - move internal struct definition to C file 2015-11-15 22:40:56 +01:00
twinaphex
149d892910 Cleanup config_file.c 2015-11-15 22:28:57 +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
ff7e5ee0c8 Avoid redefining HAVE_STRL 2015-11-11 21:59:51 +01:00
twinaphex
1b7576aa64 Kill off IS_JOYCONFIG 2015-11-11 20:15:27 +01:00
twinaphex
eb64b10098 Fix CXX_BUILD 2015-11-10 02:43:30 +01:00
Andre Leiradella
804ff7df1a Merge branch 'master' of https://github.com/leiradel/RetroArch 2015-11-08 22:53:48 -02:00
Andre Leiradella
b6f995a1d7 moved the async job queue to the global_t scope 2015-11-08 22:53:17 -02:00
Andre Leiradella
4efb9eb645 flush the log file at every output 2015-11-08 18:47:05 -02:00
Yongwoon Cho
ca9b7c141b Fix: iOS cannot go to parent directory. 2015-11-05 05:45:01 +09:00
Yongwoon Cho
9ba6877772 Fix: iOS cannot go to parent directory. 2015-11-05 05:43:13 +09:00
Yongwoon Cho
21944b2e11 Fix: iOS cannot go to parent directory. 2015-11-05 02:43:35 +09:00
twinaphex
1dab10ceda Attempt to fix mingw32 error 2015-11-02 21:56:44 +01:00
Andrés
efad7848ec Merge pull request #2313 from leiradel/master
better network initialization in net_http_new_socket
2015-10-29 19:05:45 -05:00
Andre Leiradella
0750fe50bb better network initialization in net_http_new_socket 2015-10-29 22:04:48 -02:00
Twinaphex
ebd60c69e2 Merge pull request #2310 from leiradel/master
initialize the network in net_http_new_socket
2015-10-29 00:47:38 +01:00
Andre Leiradella
6f137587d1 initialize the network in net_http_new_socket 2015-10-28 21:25:27 -02:00
twinaphex
971f5277d7 Move async_job to libretro-common 2015-10-28 07:47:57 +01:00
twinaphex
4d8ead2fb7 Move ra_semaphore to libretro-common - rename rsemaphore 2015-10-28 07:08:27 +01:00
Twinaphex
6f0e632f36 Get rid of dir_list_obj.m for iOS 2015-10-26 22:42:31 +01:00
twinaphex
02a43c6b2a Change 'rarch' to 'retro' namespace in libretro-common 2015-10-26 03:18:13 +01:00
twinaphex
8c87ac03e5 Split up compat into separate files 2015-10-26 02:41:41 +01:00
twinaphex
1943ccacfb Don't use compat/strl.h for OSX/iOS either 2015-10-26 00:29:16 +01:00
twinaphex
5ea75b616f Don't use compat/posix_string.h for OSX/iOS 2015-10-26 00:21:37 +01:00
twinaphex
d19477edc5 (libretro-common) Update 2015-10-25 21:12:54 +01:00
twinaphex
c96976083e Compile retro_stat as C 2015-10-25 20:57:38 +01:00
twinaphex
4b41ea60a0 Fix CXX_BUILD 2015-10-25 20:40:47 +01:00
Twinaphex
9f5a9eddbd Merge pull request #2262 from leiradel/master
moved net_http_get back to cheevos.c
2015-10-20 03:24:52 +02:00
Andre Leiradella
33fc0cc803 moved net_http_get back to cheevos.c 2015-10-19 23:20:10 -02:00
twinaphex
968fbb675c Don't introduce dependencies on RetroArch headers in libretro-common 2015-10-20 03:05:47 +02:00
Andre Leiradella
b6a3da5a41 moved net_http_get to net_http.c; added timeout to cheevos http requests 2015-10-19 20:37:54 -02:00
twinaphex
14e46e0048 Remove menu_list_get_alt_at_offset 2015-10-18 21:54:20 +02:00
twinaphex
0a3db8f7bb Update cheevos - style nits 2015-10-15 16:04:26 +02:00
Twinaphex
0ca3043ee4 Merge pull request #2234 from leiradel/master
added md5
2015-10-14 04:01:09 +02:00
Andre Leiradella
8173af7acf added md5 functions to libretro-common 2015-10-13 19:28:02 -03:00
twinaphex
e979e16721 (menu_input.h) Rename enum
(jsonsax.c) C89_BUILD fix
2015-10-11 16:30:47 +02:00
twinaphex
348f28b382 Cleanups 2015-10-11 15:46:55 +02:00
twinaphex
56bc07f4b0 (CXX_BUILD) Buildfixes 2015-10-10 11:12:11 +02:00
twinaphex
7f164647a2 (jsonsax) Preventing more namespace / symbol collisions in the future 2015-10-09 20:58:18 +02:00
twinaphex
14688de54a (jsonsax) Buildfixes 2015-10-09 20:55:31 +02:00
Andre Leiradella
9485298f78 fix function signatures; fix license on jsonsax 2015-10-09 13:48:17 -03:00
Andre Leiradella
fa3f17d219 preliminary code for retro achievements (cheevos) 2015-10-09 13:29:57 -03:00
aliaspider
3879e2a7e7 (CTR/3DS) mkdir_norecurse: correct directory exists being treated as an
error.
2015-10-05 22:20:06 +01:00
twinaphex
911b9775a9 Assume strtok_r is not there on Mingw or MSVC 2015-10-03 02:33:26 +02:00
twinaphex
56309b1f19 (retro_stat.c) Should hopefully fix this now 2015-10-03 01:46:16 +02:00
twinaphex
61a630fabe GetFileAttributesEx returns 'zero' in case of an error 2015-10-03 01:01:57 +02:00
twinaphex
85be9b907d (retro_stat.c) initialize variable 2015-10-02 18:26:01 +02:00
twinaphex
8f67989bf1 (retro_dirent.c) Don't need posix_string for retro_dirent 2015-10-02 18:03:30 +02:00
twinaphex
ba1ef9c3c2 (MSVC) Buildfixes 2015-10-02 17:57:37 +02:00
twinaphex
80e129d696 Forgot to change it to GetFileAttributesEx 2015-10-02 03:40:20 +02:00
twinaphex
a99183e425 (Windows) Attempt implementing reading the file size without
relying on stat
2015-10-02 03:06:13 +02:00
twinaphex
4c27cd6b5c Attempt to fix Win32 port - path_stat/path_get_size 2015-10-01 07:25:00 +02:00
twinaphex
1a2da93c9c path_get_size - change non-portable ssize_t to int32_t 2015-10-01 02:40:54 +02:00
twinaphex
90549903b7 (retro_stat.c) Implement path_get_size 2015-10-01 02:23:00 +02:00
twinaphex
0ef40d7819 (retro_file.c) Get rid of dependency on posix_string.h 2015-09-30 03:57:39 +02:00
twinaphex
9d9e90e672 (libretro_common) Fix retro_stat - put it inside extern C block 2015-09-30 03:41:01 +02:00
twinaphex
87d44af218 Static code analysis cleanups 2015-09-29 18:08:33 +02:00
twinaphex
9b4a99d506 (net_compat.c) Style nits 2015-09-29 02:41:41 +02:00
Francisco José García García
7fa6a796be (Vita) First Networking Code and Download Overlays 2015-09-29 00:40:53 +02:00
Francisco José García García
1945b7e76d (Vita) Fix creating directories 2015-09-29 00:40:00 +02:00
twinaphex
02a5d738fe Static code analysis cleanups 2015-09-28 23:00:22 +02:00
twinaphex
790bb0d0d6 Minor code cleanups based on static code analysis 2015-09-28 22:07:40 +02:00