Commit Graph

3724 Commits

Author SHA1 Message Date
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
twinaphex 0cc56e2a1a More static code analysis nits 2015-09-28 18:44:28 +02:00
twinaphex 4ca5d31f9b Some more static code analysis nits when ran with enable=all 2015-09-28 18:12:02 +02:00
radius a2a00b28a0 [PSP] fix path_stat 2015-09-24 21:11:17 -05:00
radius dc9044c6b7 [PSP] fix path_stat 2015-09-24 21:05:23 -05:00
twinaphex 6eb1a55b52 (PSP/Vita) retro_stat.t c - fix is directory check 2015-09-24 21:26:38 +02:00
twinaphex a55d4a91ca (PSP) Don't treat directory already existing as an error 2015-09-24 15:17:50 +02:00
twinaphex 764c76c84a (retro_stat.c) Add PSP ifdef 2015-09-24 12:22:19 +02:00
twinaphex 1a4c60ac65 (rxml) Use retro_file 2015-09-23 13:49:45 +02:00
twinaphex df13e6a1fd retro_stat.c - simplify code 2015-09-22 21:21:06 +02:00
twinaphex ff1078a98b (camera/drivers/video4linux2.c) Use path_is_character_special 2015-09-22 21:16:58 +02:00
twinaphex 385e030261 Move functions around 2015-09-22 19:34:16 +02:00
twinaphex 5465da0139 Rename rarch_sleep to retro_sleep 2015-09-22 18:55:14 +02:00
twinaphex 6779fcf4f1 (CXX_BUILD) Buildfix 2015-09-22 13:00:36 +02:00
twinaphex 2660606f41 (libretro-common) config_file.c - Cleanups 2015-09-22 12:58:22 +02:00
twinaphex 1f852fb23d (libretro-common) Remove some header dependencies 2015-09-22 12:54:51 +02:00
twinaphex 5da780b2fd Remove some header dependencies 2015-09-22 12:52:15 +02:00
twinaphex cbb9744c66 (retro_stat.c) Warning fixes - include header for PS3 2015-09-22 01:51:34 +02:00
twinaphex 3db688d477 Create retro_stat.c/retro_stat.h 2015-09-22 01:45:30 +02:00
twinaphex f581dce1f7 Use path_is_directory from retro_dirent.c 2015-09-21 23:20:46 +02:00
twinaphex 15b7fa545d (PSP1) Buildfix 2015-09-21 22:48:50 +02:00
twinaphex 9d67d48036 Create path_is_valid 2015-09-21 22:46:27 +02:00
twinaphex 77d99395a2 (PS3) path_is_directory - add cellFsStat implementation 2015-09-21 21:59:04 +02:00
twinaphex 00b2ce6498 (retro_file.c) Add PS3 CellOS implementation 2015-09-21 21:53:47 +02:00
twinaphex 4c2bc0c1fe (rbmp_encode.c) Make it C89-friendly 2015-09-21 11:58:36 +02:00
twinaphex 9093cd4aba (libretro-db) Use retro_endianness.h functions completely 2015-09-21 11:37:31 +02:00
twinaphex c21df1eb7d Update retro_miscellaneous.h 2015-09-21 11:17:19 +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
Francisco José García García 92406fd4fa (Vita) Fix directory creation 2015-09-19 17:27:01 +02:00
twinaphex 7eb0d2b049 (rbmp_encode.c) Document 2015-09-19 15:56:05 +02:00
twinaphex e1109c82c6 Rename tga.c to rtga.c 2015-09-19 15:36:39 +02:00
twinaphex fd4e462381 Change tga_decode.c to tga.c 2015-09-19 15:34:43 +02:00
twinaphex f4eaa2296a (CXX_BUILD) buildfixes 2015-09-19 15:33:07 +02:00
twinaphex c569aa93a6 One buildfix begets another buildfix 2015-09-19 13:13:31 +02:00
Twinaphex 6b45c9e940 Buildfix net_http_connection_new 2015-09-19 13:07:33 +02:00
twinaphex 43da185d5d Replace more usage of strcpy 2015-09-19 03:50:35 +02:00
twinaphex 28931872d6 (RPNG) Make function static 2015-09-19 03:25:56 +02:00
twinaphex 5e71c31748 Split up BMP saving into separate file libretro-common/formats/bmp/rbmp_encode.c 2015-09-19 02:44:28 +02:00
twinaphex 0a3ee51f37 (RPNG) Header cleanups 2015-09-19 01:59:46 +02:00
twinaphex 6adc124604 (RPNG) Move dword_be 2015-09-19 01:49:29 +02:00
twinaphex 714b3e3126 (RPNG) Use retro_file for rpng_encode.c 2015-09-19 01:47:03 +02:00
twinaphex 181219ea32 (RPNG) Remove one enum 2015-09-19 01:43:31 +02:00
twinaphex 93684f2741 (RPNG) Turn decode functions static 2015-09-19 01:42:58 +02:00
twinaphex 43018976e9 (RPNG) Simplify rpng 2015-09-19 01:40:29 +02:00
twinaphex 3914fb9658 Simplify rpng_test.c 2015-09-19 01:34:27 +02:00
twinaphex d0651bae82 (RPNG) Buildfix standalone RPNG 2015-09-19 01:30:11 +02:00
twinaphex a052934972 Simplify rpng_fbio.c 2015-09-19 01:29:03 +02:00
twinaphex 6f9d3d5a26 (file_extract.c) Cleanup 2015-09-19 01:06: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 aed85c1617 (C89_BUILD) Some buildfixes 2015-09-18 06:51:17 +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 08456c8541 Remove fcntl header includes from more files 2015-09-18 02:48:15 +02:00
twinaphex 35bd6e6ec8 Revert retro_file.c 2015-09-18 02:38:48 +02:00
Francisco José García García b0fb027a54 (Vita) Fix MKDIR with using correct stat.h 2015-09-18 01:22:03 +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 4ed3d66c04 Have rhash.c use retro_file 2015-09-17 20:36:44 +02:00
twinaphex 52213c46d5 (PSP/Vita) Set mode to 0777 2015-09-17 20:25:31 +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
twinaphex 872314f910 Use UINT_FAST16_MAX/UINT_LEAST32_MAX 2015-09-15 18:59:40 +02:00
Lioncash fc64f6d82a msvc: Conditionally enable the snprintf macro
VS2015 implements the normal form of snprintf, so the define will cause compile errors.
2015-09-14 21:50:09 -04:00
twinaphex 8ca8b43545 Take out retro_endianness.h include out of retro_miscellaneous.h 2015-09-14 03:34:05 +02:00
twinaphex eccda8c39a (memory_stream.c) Cleanup 2015-09-13 09:45:41 +02:00
twinaphex 7f9761afb6 Create kaiser_window_function/lanzcos_window_function 2015-09-13 03:43:59 +02:00
twinaphex 5adc85a207 Create libretro-common/include/filters.h 2015-09-12 21:04:20 +02:00
aliaspider 3b85e0dd5a (3DS) fix build to work with the latest ctrulib. 2015-09-07 18:31:30 +01:00
twinaphex 79f46c574f compat/msvc.h - define snprintf macro for _WIN32 too 2015-09-07 01:43:21 +02:00
Alcaro dbccc4f4f0 Shut up some more warnings. 2015-09-06 16:07:26 +02:00
Alcaro 5f1729dbac Fix some MSVC fails. 2015-09-06 15:36:23 +02:00
Alcaro fcbaca9b66 Fix a dozen CXX_BUILD errors under Windows. 2015-09-06 15:29:48 +02:00
twinaphex 2ecd6f4406 file_extract.c - Some MISSING_DECLS buildfixes 2015-09-06 15:05:55 +02:00
twinaphex c2c49da1de More MISSING_DECLS buildfixes 2015-09-06 15:03:58 +02:00
Alcaro 474c96365d Switch to C++98. Fix some weird warnings. 2015-09-06 14:51:33 +02:00
Alcaro 9554597160 Add missing header includes, fixes CXX_BUILD. 2015-09-06 14:46:25 +02:00
Twinaphex 8d2eceaa22 (rpng) Cleanups 2015-09-06 13:02:44 +02:00
twinaphex 7d3408e731 Cleanups 2015-09-05 21:13:58 +02:00
twinaphex 7ec3c5080d Cleanups 2015-09-05 21:11:12 +02:00
twinaphex f88575633e Cleanups 2015-09-05 20:34:22 +02:00
twinaphex c4316b791c Avoid some warnings - array subscript has type char 2015-09-05 14:31:29 +02:00
twinaphex 3522c45067 Avoid some warnings - 'array subscript has type char' 2015-09-05 14:25:42 +02:00
twinaphex 42b3c79b8e (retro_dirent.c) Win32 buildfix 2015-09-05 13:37:08 +02:00
twinaphex 7e3bdf8be5 (Vita) This header needs to be included for stat 2015-09-05 01:38:09 +02:00
twinaphex a3349dc364 Cleanups 2015-09-04 21:01:22 +02:00
twinaphex 7829b3153c Cleanups 2015-09-04 20:56:23 +02:00
twinaphex ab2d13d05a Cleanups 2015-09-04 20:51:50 +02:00
twinaphex a806a67b0b (file_path.c) Remove dirent.h headers 2015-09-04 20:47:55 +02:00
twinaphex b79c2ced37 Remove win32/compat/dirent.c 2015-09-04 20:27:41 +02:00
twinaphex bdc07f4c8c (Vita) retro_dirent.c - build fixes 2015-09-04 20:09:53 +02:00
twinaphex 97f8c39865 (retro_dirent.c) PS3 - cleanup 2015-09-04 19:12:19 +02:00
twinaphex 9ef5570fcc (retro_dirent.c) Add PS3 codepaths 2015-09-04 19:11:20 +02:00
twinaphex eb8ca30a6c Add retro_dirent.c to Salamander 2015-09-04 18:54:29 +02:00
twinaphex 9b77a7ecae Don't make retro_dirent.c dependent on file/file_path.c 2015-09-04 18:50:09 +02:00
twinaphex b0f54b896a Clean up unused variables 2015-09-04 18:41:53 +02:00
twinaphex 56c8a57e0c Create retro_dirent.c/retro_dirent.h 2015-09-04 18:38:29 +02:00
twinaphex 156cdd3295 Create memalign.c 2015-09-02 17:06:02 +02:00
twinaphex 40a52e417c (memmap.c) Cleanup 2015-09-02 12:08:07 +02:00
Twinaphex 29399513c0 (file_path.c) Bugfix 2015-09-01 14:40:03 +02:00
twinaphex 6d188a4840 Move function prototypes to rpng_decode.h 2015-09-01 13:42:28 +02:00
twinaphex 7874eb9890 Move some inline functions to rpng_decode.c 2015-09-01 13:41:45 +02:00
twinaphex 30912ef535 Rename rpng_common.h to rpng_internal.h 2015-09-01 13:40:17 +02:00
twinaphex 679a7ee130 (rpng) Don't expose unused internal function 2015-09-01 13:39:09 +02:00
twinaphex 0d923d6b05 (rpng) Cleanup 2015-09-01 13:37:03 +02:00
twinaphex 3ccb4380f1 (RPNG) Move more common code outside 2015-09-01 13:27:36 +02:00
twinaphex c80e59b888 Create common png_read_plte 2015-09-01 13:22:20 +02:00
twinaphex c259b983de struct definitions now go inside rpng_common.h - move them
away from public headers
2015-09-01 13:08:10 +02:00
twinaphex 511b2c6d83 Create rpng_set_buf_ptr 2015-09-01 13:00:02 +02:00
twinaphex d5837f4b7c Don't take in as first argument rpng->buff_data - handle this internally 2015-09-01 12:56:39 +02:00
twinaphex cd79143038 (rpng) Encapsulate incrementation of buffer position 2015-09-01 12:52:04 +02:00
twinaphex 3762502112 Create rpng_is_valid 2015-09-01 12:41:31 +02:00
twinaphex 09aac8a320 Create rpng_nbio_is_valid 2015-09-01 12:39:17 +02:00
twinaphex 0676738140 Console build fixes 2015-09-01 12:10:26 +02:00
twinaphex a519654810 (Android) Some build fixes 2015-09-01 12:04:08 +02:00
twinaphex 15ba019ea1 Don't make asserts dependent on retro_log.h 2015-09-01 11:59:27 +02:00
twinaphex 7bcb3d4f27 (file_path.c) Get rid of rhash.h dependency 2015-09-01 11:46:18 +02:00
twinaphex aa282c5780 Reimplement memmap.c for Windows 2015-09-01 11:29:50 +02:00
twinaphex 2b9777e6c2 (memmap.c) Cleanup 2015-09-01 01:53:25 +02:00
twinaphex d7aebbd40e Update 2015-08-31 22:04:21 +02:00
twinaphex 2b80e89f13 Revert "Move zconf.h to libretro-common/include/compat"
This reverts commit 15c00bc997.
2015-08-31 19:40:07 +02:00
twinaphex 15c00bc997 Move zconf.h to libretro-common/include/compat 2015-08-31 18:07:38 +02:00
twinaphex de8dfb627c (PSP/Vita) dirent_is_directory - buildfix 2015-08-31 14:30:52 +02:00
twinaphex a2d6992e24 (Vita) Buildfix 2015-08-31 14:26:27 +02:00
twinaphex 081d5b5074 set_direct_pix_conv - turn conditionals into switches 2015-08-31 14:15:28 +02:00
twinaphex 0b4ba8443f Create convert_argb888_rgba4444 2015-08-31 14:08:22 +02:00
twinaphex d8ef051f57 (dir_list.c) Use Vita codepaths for PSP too 2015-08-31 13:01:39 +02:00
twinaphex b0f9e1ac9c Cleanups 2015-08-31 12:52:42 +02:00
twinaphex 7f5399071e Cleanups 2015-08-31 11:10:48 +02:00
twinaphex 27a8022af1 Cleanups 2015-08-31 11:03:00 +02:00
twinaphex 9895cd6b21 Cleanups 2015-08-31 10:58:54 +02:00
twinaphex 5a28266abf Cleanups 2015-08-31 10:58:15 +02:00
twinaphex 9ba9098cb0 Cleanups 2015-08-31 10:45:10 +02:00
twinaphex f324afc12a Cleanup 2015-08-31 10:41:30 +02:00
twinaphex 920ee70fbd dir_list_new - don't do implicit memset 2015-08-31 10:40:35 +02:00
twinaphex f6991c95a4 Cleanups 2015-08-31 10:39:10 +02:00
twinaphex d5109af2cb (Vita/Win32) Refactor dirent_is_directory 2015-08-31 10:36:46 +02:00
Twinaphex a2fc762bfc Merge pull request #2078 from CautiousAlbino/hang-fix2
Retry implementation of include_compressed to dir_list_new.
2015-08-30 20:36:43 +02:00
CautiousAlbino 173dcd3e4c Retry implementation of include_compressed to dir_list_new.
Problem was that if ext_list wasn't used, an empty list would be
created.
2015-08-30 20:19:41 +02:00
twinaphex 8f4b4c55b2 (Vita) Add naive implementation for pthread_mutex_trylock 2015-08-30 20:06:51 +02:00
twinaphex 1533d451e9 Use sceIoMkdir for PSP too 2015-08-30 18:53:41 +02:00
twinaphex b03a0f4781 (Vita) Buildfix 2015-08-30 18:51:35 +02:00
Sergi Granell e45f42a388 (Vita) Update Makefile.griffin,file_path.c,performance.c 2015-08-30 18:46:49 +02:00
Twinaphex aa382a5c7c Revert "Add include_compressed param to dir_list_new." 2015-08-30 18:36:25 +02:00
twinaphex f7631c41cd Backport xerpi's patch 2015-08-30 17:23:01 +02:00
CautiousAlbino 9f3f0c1f1a Typo fix. 2015-08-30 17:02:52 +02:00
CautiousAlbino c4691b2668 Add include_compressed param to dir_list_new.
Do not try to load in compressed archives unless we expect them.
Fixes hang in input autodetect where it tried to parse a zip file as an
archive.
2015-08-30 16:57:34 +02:00
Sergi Granell 7e86e2158d (Vita) Update net and netlogger 2015-08-30 16:12:45 +02:00
twinaphex 3c7098fdfd Cleanups 2015-08-30 10:56:04 +02:00
Twinaphex d00c1ed443 Fix some bugs in pixconv.c refactor 2015-08-30 10:46:34 +02:00
twinaphex 039b4e0454 Move code back to logger.c 2015-08-29 18:57:07 +02:00
twinaphex 2dabf43263 (libretro-common) Simplify pixconv.c 2015-08-29 17:30:28 +02:00
twinaphex e00ea900ed Refactor logger headers 2015-08-29 16:48:53 +02:00
twinaphex aa1881febf Cleanups 2015-08-29 16:28:35 +02:00
twinaphex 532c73210b Add !defined(__PSL1GHT__) defines 2015-08-29 16:27:50 +02:00
twinaphex e32b99ac0c Consolidate PSL1GHT logger into logger/netlogger/logger.c
and expand net/net_compat.c
2015-08-29 16:24:38 +02:00
twinaphex 4f80afe03e Move code to net_compat.h 2015-08-29 16:02:10 +02:00
twinaphex 5b67aaaa17 Start making the logging code more portable 2015-08-29 15:40:23 +02:00
twinaphex 3824812ac9 (dir_list.c) Prevent implicit memsets 2015-08-29 15:14:01 +02:00
twinaphex 6edea1d9c7 Create compat versions of zlib.h and zutil.h 2015-08-28 21:35:09 +02:00
twinaphex 76fe1163c2 Update scond_wait_timeout 2015-08-27 09:22:03 +02:00
Twinaphex 05740fc55a (iOS) Buildfix 2015-08-24 01:35:52 +02:00
twinaphex 67afbea0f5 (iOS) Flesh out logger code 2015-08-24 01:32:35 +02:00
twinaphex 68fa0bcbe7 (memmap.c) Some Win32 build fixes 2015-08-23 07:08:47 +02:00
twinaphex aa35f56252 memmap.c - another warning fix 2015-08-22 18:47:04 +02:00
twinaphex f7a5479778 memmap.c - Cleanup 2015-08-22 18:45:13 +02:00
Twinaphex e6fa079cd9 (iOS) memmap.c - Fix implicit declarations 2015-08-22 18:43:54 +02:00
twinaphex e70ccd2a6d (dylib.c) Cleanup 2015-08-22 18:41:00 +02:00
twinaphex 39240d25e3 (dylib.c) Explicitly cast dlerror to char* 2015-08-22 18:40:07 +02:00
twinaphex be9f2b870a Compile in memmap.c 2015-08-22 18:38:17 +02:00
twinaphex c7c61b79e3 Add dylib_error 2015-08-20 06:21:53 +02:00
twinaphex d4c0a09a03 Make mman functions public in memmap.h header for Win32 2015-08-12 15:48:52 +02:00
twinaphex 7f615fc781 (memmap) Create wrapper functions memprotect and memsync 2015-08-12 15:45:15 +02:00
twinaphex 7031582b22 (libretro-common) Include preliminary memmap.c 2015-08-12 15:27:20 +02:00
twinaphex 1ed7c4ef37 Use C comment 2015-08-12 15:11:01 +02:00
twinaphex d80b24f380 (Vita) We can implement mutexes properly for Vita 2015-08-12 14:59:37 +02:00
Alcaro ee2ad0c4bd These aren't executable. 2015-08-12 01:31:03 +02:00
radius 828734e007 don't try to autoconfigure GPIO devices 2015-08-11 17:13:25 -05:00
twinaphex fa5645b1e7 (libretro-common) Add some ifdef rules for Vita 2015-08-10 23:23:03 +02:00
Twinaphex 3639858522 (iOS) Create ObjC version of dir_list 2015-08-05 04:11:42 +02:00
twinaphex a095ccbdb6 (libco) Always use posix_memalign for iOS 2015-07-30 05:46:15 +02:00
twinaphex 973be7030d Don't assume IOS define 2015-07-30 04:58:01 +02:00
twinaphex bb7960c500 Fixes 2015-07-30 03:31:48 +02:00
twinaphex 99e1a9b297 Get rid of builtin_bswap16/bswap32 - breaks on OSX 10.8 2015-07-18 20:56:47 +02:00
twinaphex bbc63f7e99 Fix CXX_BUILD 2015-07-12 08:08:27 +02:00
twinaphex 135ee2f503 Use UINT64_C(1) everywhere instead of 1ULL 2015-07-12 07:53:46 +02:00
Higor Eurípedes 405ac5ebe5 Improve error handling in some image loading functions 2015-07-11 17:18:16 -03:00
Higor Eurípedes 8c9c1df64b (string_list.c) Initialize data after realloc()ing the list 2015-07-05 20:13:26 -03:00
Higor Eurípedes 3cc6e07174 (task_database) Fix leaks when scanning zip files 2015-07-05 10:23:21 -03:00
David Shah 5e0469ce40 Fix building for Android
Modified retro_log.h to prevent undefined reference to rarch_main_verbosity
2015-07-02 14:16:23 +01:00
twinaphex 84ef36ee3b Create retro_environment.h for libretro-common 2015-06-30 23:00:44 +02:00
twinaphex 79ed8b2823 Fix rthreads.h 2015-06-30 22:16:31 +02:00
twinaphex e74e402cdc More C89 build fixes 2015-06-30 14:37:11 +02:00
twinaphex 96c119bb1d Move retroarch_logger.h to libretro-common/include 2015-06-30 00:38:10 +02:00
twinaphex 018c685b09 C89_BUILD fixes 2015-06-29 21:39:00 +02:00
twinaphex 9ee860c6d9 Some more C89 fixes 2015-06-26 19:15:17 +02:00
twinaphex d523e2d7ae (pixconv.c) C89 fixes 2015-06-26 19:12:01 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro febcbc5ce4 C89 cleanups part 2 2015-06-26 17:48:43 +02:00
Alcaro 97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
Alcaro c3e111605b Fix retro_inline.h under C89. 2015-06-26 15:53:20 +02:00
twinaphex a132fa0fba Some C89 build fixes 2015-06-26 15:53:18 +02:00
twinaphex c1aa66b6e9 (file_extract.c) Prevent CXX_BUILD=1 warning 2015-06-26 12:45:51 +02:00
twinaphex 4078bc5756 (math/matrix_4x4c.) Cleanup 2015-06-24 11:48:20 +02:00
twinaphex 2c09bbcda3 (libretro-common) Start documenting matrix_4x4.c 2015-06-24 11:37:45 +02:00
twinaphex 501e4e08af (config_file_userdata.c) Use fill_pathname_join_delim 2015-06-22 20:27:01 +02:00
twinaphex 5d576ce61d (task_database.c) Use fill_pathname_join_delim in task_database.c 2015-06-22 19:51:13 +02:00
twinaphex 726c000981 (string_list.c) Don't use snprintf 2015-06-22 11:49:15 +02:00
twinaphex d3f0954418 Start preparing internal ffmpeg core mechanisms 2015-06-21 00:03:27 +02:00
twinaphex fb768eb608 (libretro-common) Cleanups 2015-06-15 05:00:39 +02:00
Jools Wills 417d26ed02 GCC 4.7 does not have __builtin_bswap16 on all platforms
GCC 4.7 does not have __builtin_bswap16 on all platforms so don't try to use it unless we are on gcc 4.8 or greater
2015-06-14 20:16:48 +01:00
twinaphex 40f8fabda6 Consistency in how we treat positive strcmp matches 2015-06-14 19:56:01 +02:00
twinaphex ad5954862b Cleanup some strcmps 2015-06-14 19:42:25 +02:00
Higor Eurípedes 702d03908d (config_file.c) Speed up config_set_string() using config_get_entry() 2015-06-14 12:36:29 -03:00
Higor Eurípedes 2e9afbdb70 (config_file.c) Rename config_get_entry_for_read() to config_get_entry() and add prev argument 2015-06-14 12:36:29 -03:00
Higor Eurípedes 72fa1c9d36 (config_file.c) Speed up setting lookup with hashes 2015-06-14 12:36:29 -03:00
Higor Eurípedes ff03a3abe2 (config_file.c) Add config_get_entry_for_read() 2015-06-14 12:36:29 -03:00
Higor Eurípedes 70c845a6b2 Rewrite file_list_copy() 2015-06-13 19:03:41 -03:00
twinaphex d4d76daa12 Random cleanups 2015-06-13 00:44:47 +02:00
twinaphex cdec12faa5 (libretro-common) Cleanups 2015-06-13 00:33:31 +02:00
Higor Eurípedes dba40157e3 (task_file_transfer.c) Attempt to fix rpng_nbio leak 2015-06-12 18:21:11 -03:00
Higor Eurípedes 91af356a31 (nbio) Fix leak 2015-06-12 18:21:11 -03:00
twinaphex 49c08fdba9 (nbio_stdio.c) Try to free handle->data in case of an error 2015-06-12 22:09:07 +02:00
twinaphex e514c30d0f retro_endianness.h - need to include stdlib.h for _byteswap_ulong/
_byteswap_short
2015-06-12 16:40:48 +02:00
Twinaphex 0bfd3433ff (file_list.c) file_list_push - set userdata and actiondata
to NULL
2015-06-11 23:18:08 +02:00
twinaphex 087e1354ec Create file_list_set_userdata/file_list_set_actiondata 2015-06-11 23:02:17 +02:00
Twinaphex c86c40c1cd Create file_list_free_actiondata/file_list_free_userdata 2015-06-11 21:03:28 +02:00
twinaphex 5bd138b6ac (file_list) Start adding entry_idx to file_list_* functions 2015-06-10 22:43:06 +02:00
Alcaro 0aa6747285 (retro_endianess.h) That's not how the preprocessor works. 2015-06-10 02:47:29 +02:00
Higor Eurípedes 47af2e6d1c (retro_endianess.h) Small update 2015-06-09 20:13:35 -03:00
Twinaphex c10b67438d path_get_extension - prevent crash 2015-06-08 17:07:00 +02:00
twinaphex d3102e03c8 (file_list.c) Get rid of 'alt2' 2015-06-07 00:53:00 +02:00
Twinaphex 439de844b4 (menu_setting.c) Cleanups 2015-06-05 16:33:49 +02:00
twinaphex eef7858c56 Create Makefile for utils 2015-06-04 21:31:44 +02:00
twinaphex 3b4deb1d8f (libretro-common) Style nits 2015-06-04 21:26:40 +02:00
twinaphex 1205aa04b8 Add utils 2015-06-04 21:20:25 +02:00
twinaphex fc4755bce2 (libretro-common) Move hash.c/hash.h to libretro-common 2015-06-04 21:13:13 +02:00
twinaphex 5068e2ddbf (xvideo.c) Style nits 2015-06-03 21:37:08 +02:00
twinaphex 4a37c4e020 Remove duplicate strcasestr 2015-06-02 16:49:35 +02:00
twinaphex aac21b1d11 Add '__MACH__' to ifdef rule 2015-06-02 16:45:35 +02:00
twinaphex 7370095e3e Correct compat/strl.h 2015-06-02 16:39:43 +02:00
twinaphex 3746bc1351 (glsym_gl.h) Don't depend on 'OSX' define 2015-06-02 16:37:13 +02:00
Twinaphex 9ecced5e56 (libretro-common) Prevent implicit declaration of tolower 2015-06-02 10:09:17 +02:00
twinaphex aa56b8e1e3 (Task database) Start using zlib_parse_file_iterate in task_database.c 2015-05-27 01:36:15 +02:00
twinaphex 3d924a7556 Create zlib_parse_file_iterate 2015-05-27 01:03:49 +02:00
twinaphex 376a1d49ba Refactor zlib_parse_file 2015-05-27 00:42:48 +02:00
twinaphex 512edb1474 Create zlib_parse_file_init 2015-05-27 00:28:32 +02:00
twinaphex 33ba65075f Create zlib_parse_file_iterate_step 2015-05-27 00:23:50 +02:00
twinaphex 6a7ab12dc1 Refactor zlib_parse_filer.prx 2015-05-26 23:28:40 +02:00
twinaphex 8e8267b708 Create zlib_transfer_t and refactor zlib_parse_file somewhat 2015-05-26 21:11:26 +02:00
twinaphex c94e29ed02 Create rarch_strcasestr 2015-05-26 02:31:29 +02:00
twinaphex 30aaa265e0 Create filt_list_{set/get}_alt2_at_offset 2015-05-22 23:57:48 +02:00
twinaphex e010a6e0bf net_http_update - prevent NULL pointer dereferences and return
false when erroring out
2015-05-20 22:38:15 +02:00
Twinaphex 52e8d582c0 Merge pull request #1712 from heuripedes/master
(config_file.c) Fix error when path is not a regular file
2015-05-20 16:16:03 +02:00
Alcaro 81e583c497 Test this one for failure... shouldn't getaddrinfo be testing this already? 2015-05-20 16:06:48 +02:00
Alcaro 94046d2d74 Clean out some unused variables. 2015-05-20 16:05:56 +02:00
Higor Eurípedes 317f481b95 (config_file.c) Fix error when path is not a regular file 2015-05-20 10:11:58 -03:00
Alcaro 6c5a4a84b5 Fix free function that doesn't free what it's told to free. 2015-05-19 22:07:14 +02:00
Higor Eurípedes 2f05ecbed6 (file_extract.c) Fix leak in zip extraction 2015-05-19 17:02:23 -03:00
twinaphex 87d9834d06 Move dylib.c to libretro-common 2015-05-08 09:49:49 +02:00
twinaphex 0704c7f0c7 Create texture_image_color_convert 2015-05-04 10:16:47 +02:00
twinaphex 0634c7e34f (D3D) Start using global->video_data.width and global->video_data.height 2015-04-26 05:35:41 +02:00
Higor Eurípedes 03d13c6fa7 (RPNG) Always free the temp chunk on PNG_CHUNK_IHDR 2015-04-25 21:42:20 -03:00
Higor Eurípedes c11498df9d (RPNG) Actually free zlib stream 2015-04-25 21:28:22 -03:00
Higor Eurípedes c432811436 (RPNG) Free zlib stream 2015-04-25 21:04:52 -03:00
twinaphex 932a8c3e5d (libco) Update 2015-04-22 18:49:43 +02:00
twinaphex 7ebc824122 (stdstring.c) Fix implicit declaration warning 2015-04-19 14:32:58 +02:00
twinaphex 51920f9e5f Simplify 'get_title' 2015-04-19 12:14:20 +02:00
twinaphex f4bd33b92f (XDK1) Build fixes 2015-04-12 22:29:55 +02:00
twinaphex 7fbbac544e Some C89 build fixes 2015-04-12 19:29:38 +02:00
twinaphex 11d75d088c (data runloop) Start creating separate message queue for data runloop 2015-04-11 01:17:46 +02:00
twinaphex a27c0714cb Take chunk_type out of struct 2015-04-10 23:45:56 +02:00
Alcaro d7be3979ea Update stdstring.h 2015-04-06 23:01:13 +02:00
twinaphex c9dc599ee7 (dir_list.c) Revert - was causing exceptions on Windows 2015-04-06 19:22:26 +02:00
twinaphex d880ffab5b Create string_is_empty 2015-04-06 19:03:14 +02:00
Lioncash 1f1cdae621 stdstring: Get rid of some strlen calls
Now the function doesn't traverse strings more than necessary.
2015-04-03 14:52:31 -04:00
twinaphex 9d4f1ca362 (GX) Buildfix 2015-04-03 03:23:58 +02:00
twinaphex d84b08ab08 (PS3) Buildfix 2015-04-03 03:23:02 +02:00
twinaphex 108930ddc2 retro_endianness.h - cleanups 2015-04-02 21:00:30 +02:00
twinaphex b9e6b014e3 Start preparing joypad_connection code for cross-platform purposes 2015-04-02 17:49:32 +02:00
Twinaphex db2dd5010b Merge pull request #1559 from aliaspider/master
preliminary 3DS port.
2015-04-01 23:18:12 +02:00
aliaspider 2045cee432 preliminary 3DS port. 2015-04-01 22:14:13 +01:00
twinaphex 4dea46f6dc Include <formats/rpng.h> once in rpng_common.h 2015-03-30 18:29:51 +02:00
Twinaphex 76a0486f5e (ObjC) Include <objc/objc-runtime.h> 2015-03-30 18:13:23 +02:00
twinaphex 3da64fbebc (apple_compat.h) Update 2015-03-30 18:07:50 +02:00
twinaphex 7ea3da0344 (apple_compat.h) Define NSUinteger/NSInteger for OSX 10.4 and earlier 2015-03-30 18:05:38 +02:00
Twinaphex 17d6a940c0 (iOS/Apple) Include <AvailabilityMacros.h instead of #import <Availability> 2015-03-30 17:57:54 +02:00
twinaphex 4550019b2c (rpng_fbio.c) GEKKO ifdef not needed here 2015-03-30 17:51:43 +02:00
Neville 672c19074f (OSX PPC) Buildfixes 2015-03-31 02:47:51 +11:00
neville f3f8db553e (Apple) Fix warnings 2015-03-30 03:32:54 +02:00
twinaphex b40c56bdbe (dir_list.c) Fix Salamander 2015-03-30 02:29:38 +02:00
twinaphex aed83be281 image.h - changes for Xbox 2015-03-30 02:12:25 +02:00
twinaphex 12a3e56a55 (libretro-common) Use retro_inline.h everywhere 2015-03-29 16:39:31 +02:00
twinaphex e7e09d3b8f Don't include zlib.h in rpng_encode.c 2015-03-29 16:31:00 +02:00
twinaphex 4572a1c48d Create zlib_deflate wrapper functions 2015-03-29 16:28:06 +02:00
twinaphex 3187e308a4 (rpng_encode.c) Use zlib_stream_get_total_out 2015-03-29 16:21:46 +02:00
twinaphex 7c047ea3b3 Cleanups 2015-03-29 16:19:09 +02:00
twinaphex cc2d6ea99d Create more zlib wrapper functions 2015-03-29 15:52:17 +02:00
twinaphex 5d776f15b6 Create zlib_set_stream 2015-03-29 15:35:55 +02:00
twinaphex 758d01b5da Create more wrappers around zlib in file_extract.c 2015-03-29 14:35:18 +02:00
twinaphex 32304af540 Create zlib_inflate_init 2015-03-29 14:30:53 +02:00
twinaphex 33fca0e161 Use zlib_stream_free 2015-03-29 03:09:33 +02:00
twinaphex 835cba4412 Create zlib_stream_new/zlib_stream_free 2015-03-29 01:57:52 +01:00
twinaphex 0c99c8c68e (RPNG) Use zib_inflate_data_to_file_iterate 2015-03-28 22:32:15 +01:00
twinaphex fe5e6ffd22 Add file/file_extract.h to rpng.h 2015-03-28 21:45:57 +01:00
twinaphex 03c6265846 Take out rpng.h header include in formats/image.h 2015-03-28 21:44:17 +01:00
twinaphex ab284b82f9 (win32) Buildfix 2015-03-28 21:32:38 +01:00
twinaphex 9281595024 Create zlib_perform_mode 2015-03-28 21:05:00 +01:00
twinaphex 8764c660e2 Put zlib_read_file around HAVE_MMAP ifdef 2015-03-28 20:52:00 +01:00
Twinaphex 2f83c43917 Merge pull request #1550 from xoddark/folder_list_management_v2
Add multifolder management in dir_list_new v2
2015-03-28 20:47:44 +01:00
twinaphex abc514b339 Make file_extract.c independent of RetroArch 2015-03-28 20:25:33 +01:00
twinaphex c26804335b (libretro-common) Move file_extract.c to libretro-common 2015-03-28 20:14:19 +01:00
XoD d97bc6f084 Add multifolder management in dir_list_new v2
v2: process the folder from the last to the
first to allow override.

Signed-off-by: XoD <xoddark@gmail.com>
2015-03-28 18:52:27 +01:00
twinaphex 01e100f6df Include <sys/types.h> in net_compat.c 2015-03-23 23:55:43 +01:00
twinaphex 8a6cce1964 (net_http) Prevent NULL pointer dereferences 2015-03-23 10:13:15 +01:00
twinaphex 64a866af84 Prevent crash in net_http.c function 2015-03-21 22:10:13 +01:00
twinaphex dcfc187179 (libretro-common) Remove config_file_macros.h 2015-03-21 07:39:51 +01:00
twinaphex 80840cac0c Put g_config on heap 2015-03-21 01:47:06 +01:00
twinaphex 45cf71770e Rename g_settings to g_config - to prevent conflicts, had to rename
some static variables in some of the gfx context driver files
2015-03-21 01:15:03 +01:00
twinaphex e92565a95b Take out some config_file_macros.h 2015-03-21 00:08:01 +01:00
Twinaphex 4ecbc9bc66 Merge pull request #1524 from heuripedes/master
Win32 fixes
2015-03-21 00:03:50 +01:00
twinaphex 85d244d09a Include stdint.h in net_compat.c 2015-03-20 22:23:08 +01:00
Higor Eurípedes 79335249d0 (libretro-common/net_compat.c) Fix build 2015-03-20 17:41:50 -03:00
twinaphex 9405cec6ca Use net_compat.h in net_http_test.c 2015-03-20 18:12:37 +01:00
twinaphex 871b6944cb net_http_new_socket - C89 compatibility fixes 2015-03-20 18:04:46 +01:00
twinaphex cb41ee6186 net_http_test.c - Fixup header include 2015-03-20 17:57:29 +01:00
twinaphex 10d2d7cba8 Take out netplay.h dependency (net_compat.c) 2015-03-20 17:57:04 +01:00
twinaphex d2c97de070 Move net_compat/net_http to libretro-common 2015-03-20 17:56:00 +01:00
twinaphex 4b1bdac62c (nbio_stdio.c) Expand modes 2015-03-18 04:40:10 +01:00
twinaphex c6d0e4ec51 Add BIO_READ/BIO_WRITE to nbio_stdio.c 2015-03-18 03:59:44 +01:00
twinaphex fd338160bc (nbio_stdio.c) Some changes 2015-03-18 03:51:58 +01:00
twinaphex f59aa94ea1 (GX) Buildfix 2015-03-17 06:14:44 +01:00
twinaphex 2063216705 (rthreads) Refactor cond signal 2015-03-16 07:08:42 +01:00
twinaphex 27367a733b (runloop_data.c) Create rarch_main_data_msg_queue_push 2015-03-15 06:41:04 +01:00
Higor Eurípedes fec88a5cb4 (Menu) Add font color settings 2015-03-14 19:22:06 -03:00
twinaphex 52eefc35ff (RPNG) Inflate process should be nonblocking now too 2015-03-14 21:51:56 +01:00
twinaphex 431cf5e1f3 (RPNG) Use Z_NO_FLUSH as second param to inflate and put it in a while loop 2015-03-14 21:16:33 +01:00
twinaphex 933cdd136d (RPNG) Get rid of one needless additional function 2015-03-14 17:33:04 +01:00
twinaphex 27c50f9dbe Start using convenience function msg_queue_push_string_list 2015-03-14 16:12:20 +01:00
twinaphex a3c6ec249c (RPNG) Rename function 2015-03-14 04:21:57 +01:00
twinaphex 65f80aa5e0 (RPNG) Fix rpng_test.c 2015-03-14 03:22:41 +01:00
twinaphex 9a0bd3c650 (RPNG) Rewrite rpng_nbio_load_image_process 2015-03-14 03:18:15 +01:00
twinaphex 4124fb7130 (RPNG) Add rpng_process 'initialized' variable 2015-03-14 02:56:38 +01:00
twinaphex bb1a9a91c6 (RPNG) Turn more functions static 2015-03-14 02:10:44 +01:00
twinaphex b29cc138c8 (RPNG) Some functions can become static now 2015-03-14 02:08:15 +01:00
twinaphex ebbefc41b2 (RPNG) Reimplement png_reverse_filter_loop 2015-03-14 02:05:50 +01:00
twinaphex b7d73ebc93 (RPNG) More cleanups to png_reverse_filter_loop 2015-03-14 01:58:50 +01:00
twinaphex cb9c0828db (RPNG) More cleanups 2015-03-14 01:56:32 +01:00
twinaphex a14850c915 (RPNG) Create rpng_load_image_argb_process_init - cut down on some more
code duplication
2015-03-14 01:50:45 +01:00
twinaphex bfaddc15bd Simplify rpng_fbio.c - create 'iterate' function 2015-03-14 01:29:46 +01:00
twinaphex ce4e2e0f61 (RPNG) Reorganize files 2015-03-14 00:52:55 +01:00
twinaphex 53a788f95a (RPNG) Create shared png_process_ihdr - both FBIO and FNBIO use it 2015-03-14 00:35:08 +01:00
twinaphex 1902c92ad5 (RPNG) More cleanups 2015-03-14 00:24:21 +01:00
twinaphex 3a56a6c274 (RPNG) More dehardcoding of cases 2015-03-14 00:16:59 +01:00
twinaphex 4dcd62df81 (RPNG) Dehardcode more magic numbers 2015-03-14 00:13:55 +01:00
twinaphex 7d8784b91e (RPNG) Deharcode some magic numbers 2015-03-14 00:06:56 +01:00
twinaphex 0d59d2534f (RPNG) Dehardcode magic number in adam7_iterate 2015-03-14 00:04:31 +01:00
twinaphex 68ef4e7b72 (RPNG) Refactor png_reverse_filter_regular_loop 2015-03-14 00:01:30 +01:00
twinaphex 752f5dc42b (RPNG) Add data_restore_buf_size 2015-03-13 23:54:17 +01:00
twinaphex 978628a878 (RPNG) Start putting regular_loop inside a while loop on the outside 2015-03-13 23:30:29 +01:00
twinaphex d6c7ba448a Change png_reverse_filter_regular_loop's return code 2015-03-13 23:28:12 +01:00
twinaphex 003fb2a7c8 (RPNG) Reorganize png_process_reverse_filter_regular_loop 2015-03-13 23:22:39 +01:00
twinaphex a6d6e9750f (RPNG) Start using png_process_code for more code 2015-03-13 23:20:18 +01:00
twinaphex 96b16d4205 (RPNG) Add PNG_PROCESS_* enums 2015-03-13 22:56:34 +01:00
twinaphex 39b718aa03 (RPNG) Create rpng_reverse_filter_adam7_iterate 2015-03-13 21:54:51 +01:00
twinaphex 2c48b2a25d (RPNG) Refactor png_reverse_filter_loop 2015-03-13 21:34:18 +01:00
twinaphex 1144e260d0 (RPNG) Start passing uint32_t **data around 2015-03-13 21:22:19 +01:00
twinaphex a7e761c0d1 (RPNG) Create png_reverse_filter_iterate 2015-03-13 20:53:28 +01:00
twinaphex 6506f6ce85 (RPNG) Uncouple png_reverse_filter_init from png_reverse_filter_regular 2015-03-13 20:36:48 +01:00
twinaphex 676b6aaad5 Rename rpng_reverse_filter to rpng_reverse_filter_regular 2015-03-13 20:14:47 +01:00
twinaphex 846886c0b9 (RPNG) Don't pass palette pointer around anymore - put it inside the png_process
struct
2015-03-13 20:00:10 +01:00
twinaphex 91d69e20e0 (RPNG) png_reverse_filter_init - palette pointer passed never used 2015-03-13 19:55:01 +01:00
twinaphex 71b9e67a40 (RPNG) Don't pass inflate_buf as pointer to copy_line function anymore 2015-03-13 19:52:25 +01:00
twinaphex adc6e0b139 (RPNG) Start using restore_buf_size 2015-03-13 19:50:00 +01:00
twinaphex 4852773da4 (RPNG) Start adding restore_buf_size incrementing 2015-03-13 19:47:51 +01:00
twinaphex 03984168c6 (RPNG) Create adam7_restore_buf_size 2015-03-13 19:39:36 +01:00
twinaphex 1df814f9d5 (PNG) png_reverse_filter_init doesn't need pointer to inflate_buf 2015-03-13 19:29:49 +01:00
twinaphex ba084b19d5 (RPNG) Rename some functions 2015-03-13 19:21:04 +01:00
twinaphex ce0fd47c33 Rename png_reverse_filter_wrapper to png_reverse_filter_copy_line 2015-03-13 19:15:22 +01:00
twinaphex d32550665a Cleanup png_reverse_filter_adam7 2015-03-13 18:55:18 +01:00
twinaphex 1ba1ee55b8 (RPNG) More modifications 2015-03-13 18:54:19 +01:00
twinaphex ccb106580e (RPNG) Restore inflate_buf to previous state at end of adam7 loop 2015-03-13 18:45:55 +01:00
twinaphex 87933f1ff3 Revert "Create png_reverse_filter_adam7_process"
This reverts commit 1444c14b38.
2015-03-13 17:55:43 +01:00
twinaphex 1444c14b38 Create png_reverse_filter_adam7_process 2015-03-13 17:53:40 +01:00
twinaphex 6217739f05 (RPNG) Start changing return of png_reverse_filter_adam7 2015-03-13 17:11:11 +01:00
twinaphex fa2c482a45 (stdstring) Use old function 2015-03-13 16:11:58 +01:00
twinaphex a6fc76ac87 (string_replace_substring) Add early return if 'in' is NULL 2015-03-13 15:55:12 +01:00
twinaphex 01c19f943b Add stdstring to libretro-common 2015-03-13 15:35:55 +01:00
twinaphex 18ce5f73be Take RARCH_INTERNAL code from file_path.c out of libretro-common 2015-03-13 05:03:50 +01:00
twinaphex 3bbc52eb79 (file_list.c) Do early returns if realloc fails, do early returns if
list is NULL
2015-03-12 14:00:27 +01:00
twinaphex 6dc1d953f2 Make 'free' operations of file_list.c more robust 2015-03-12 13:55:16 +01:00
twinaphex a179d56b75 Update compat/strl.h 2015-03-10 18:49:54 +01:00
twinaphex 21af918cba Add ifndef conditionals around strlcat / strlcpy definitions
in srl.h
2015-03-10 18:47:21 +01:00
twinaphex 2c14e702f6 Update libretro-common 2015-03-10 18:24:02 +01:00
notaz 7f5a08e2cb implement conv_rgba4444_rgb565 2015-03-07 02:42:38 +02:00
twinaphex bb682d1ed4 Cleanups 2015-02-26 22:16:52 +01:00
twinaphex 3e971488a8 Create png_reverse_filter_loop 2015-02-26 21:36:23 +01:00
twinaphex a2035e72c8 Move adam7 pass initialization to png_reverse_filter_init 2015-02-26 21:05:09 +01:00
twinaphex 97b3e9134d Refactor some more code in adam7 png_reverse_filter function 2015-02-26 20:59:42 +01:00
twinaphex 75ccb24bf4 Make png_reverse_filter_wrapper nonblocking 2015-02-26 20:39:10 +01:00
twinaphex 99b5ae18df (RPNG) Refactors 2015-02-26 20:25:51 +01:00
twinaphex 0227445f6c png_reverse_filter_wrapper - cleanup 2015-02-26 20:18:14 +01:00
twinaphex b08176ae00 Move png_chunk_type to rpng_decode_common.h 2015-02-26 20:09:43 +01:00
twinaphex f9fcbb7bb2 Make copy_line functions non-inline 2015-02-26 20:07:57 +01:00
twinaphex 9e000f64fe Move some code from rpng_common.h to rpng_decode_common.h 2015-02-26 19:52:44 +01:00
twinaphex 26b0b397c3 (PNG) Cleanup 2015-02-26 19:47:21 +01:00
twinaphex bb02411544 Refactor pgn_reverse_filter_wrapper 2015-02-26 19:45:25 +01:00
twinaphex 4897aed9e0 png_reverse_filter_wrapper - more refactoring 2015-02-26 07:58:40 +01:00
twinaphex 9e9dcc12ab png_reverse_filter_wrapper - more cleanups 2015-02-26 07:44:45 +01:00
twinaphex a7d4b0e8bc Start creating png_reverse_filter_wrapper 2015-02-26 07:40:11 +01:00
twinaphex de95f0cc1d Create png_reverse_filter_init/png_reverse_filter_deinit 2015-02-26 07:30:13 +01:00
twinaphex dda9d41d43 Fix png_reverse_filter 2015-02-26 07:26:02 +01:00
twinaphex 9eaf62f319 (PNG) More refactors 2015-02-26 07:14:43 +01:00
twinaphex c874ee3aa1 Add some variables to png_process_t 2015-02-26 07:07:34 +01:00
twinaphex 3c2d6020ed Move prev_scanline/decoded_scanline to rpng_process_t 2015-02-26 03:54:17 +01:00
twinaphex 0006f0a429 Make process a part of rpng_t 2015-02-26 03:49:35 +01:00
twinaphex 05e33f1ac4 Move stream to process_t handle 2015-02-26 03:28:55 +01:00
twinaphex ea99f00016 Revert "Move inflate_buf to rpng_process_t"
This reverts commit c97096287d.
2015-02-25 21:55:17 +01:00
twinaphex 4770b37273 Revert "Create palette in rpng_process_t"
This reverts commit 93706c67e8.
2015-02-25 21:55:06 +01:00
twinaphex 18da753ec1 Revert "Move more to rpng_process_t"
This reverts commit 1e2a91fca7.
2015-02-25 21:54:50 +01:00
twinaphex 2ce507c1c7 Revert "(PNG) Refactor process code some more"
This reverts commit fbed3cfd27.
2015-02-25 21:54:39 +01:00
twinaphex 141a417e11 Revert "Create png_reverse_filter_deinit"
This reverts commit ef09b9a855.
2015-02-25 21:54:24 +01:00
twinaphex c6f34ff91e Revert "Split up deinit code from png_reverse_filter"
This reverts commit 3fc262ecac.
2015-02-25 21:54:08 +01:00
twinaphex 3fc262ecac Split up deinit code from png_reverse_filter 2015-02-25 20:43:12 +01:00
twinaphex ef09b9a855 Create png_reverse_filter_deinit 2015-02-25 20:36:54 +01:00
twinaphex fbed3cfd27 (PNG) Refactor process code some more 2015-02-25 10:25:14 +01:00
twinaphex 1e2a91fca7 Move more to rpng_process_t 2015-02-25 10:05:21 +01:00
twinaphex 93706c67e8 Create palette in rpng_process_t 2015-02-25 09:48:06 +01:00
twinaphex c97096287d Move inflate_buf to rpng_process_t 2015-02-25 09:42:19 +01:00
twinaphex 4c7325c07c Create rpng_process_t 2015-02-25 09:38:54 +01:00
twinaphex 415d9e0d73 (PNG) Fix RPNG decode PLTE 2015-02-24 09:21:50 +01:00
twinaphex 1bf6489da9 SImplify rpng_test.c 2015-02-22 08:42:03 +01:00
twinaphex 07c7a0df99 Decouple nbio_t from rpng_decode_fnbio.c 2015-02-22 08:00:47 +01:00
twinaphex f233ccb141 Start making rnbio_handle chain 2015-02-22 07:34:33 +01:00
twinaphex d09574bb1f Move files around 2015-02-22 04:56:18 +01:00
twinaphex 6c54e8119e (NBIO) Make all nbio functions nonblocking 2015-02-21 03:57:34 +01:00
Higor Eurípedes e198b0e347 (nbio.h) Add include guard 2015-02-20 23:35:39 -03:00
twinaphex a48343c130 Move png_chunk to rpng_t 2015-02-21 03:28:00 +01:00
twinaphex 82432ca5d5 Remove mpng leftovers 2015-02-21 02:46:58 +01:00
twinaphex 28cdf2c93a Rename rpng files 2015-02-21 02:46:04 +01:00
twinaphex 1b0c9d7776 Move rpng_nbio wrapper function to rpng_test.c 2015-02-21 02:42:33 +01:00
twinaphex e912d3c49c Move palette over to rpng_t too 2015-02-21 02:34:49 +01:00
twinaphex fdc3aeffb0 Cleanup rpng_nbio_load_image_argb_init 2015-02-21 02:30:06 +01:00
twinaphex d2206b8ab2 Start splitting up rpng_nbio_load_image_argb 2015-02-21 02:28:59 +01:00
twinaphex 65ea11f7be (RPNG) rpng_t - Create userdata/ptr 2015-02-21 02:13:20 +01:00
twinaphex 3867a63344 Move png_chunk inside iterate function 2015-02-21 02:07:20 +01:00
twinaphex 7c80d7e1d0 Move inflate_buf_size and palette to rpng_t 2015-02-21 02:04:30 +01:00
twinaphex 193fef41cc Move png_ihdr to rpng_t struct 2015-02-21 01:59:59 +01:00
twinaphex 538b3f3231 rpng.c - Update 2015-02-21 01:56:56 +01:00
twinaphex 7914c8a01c Move idat_buffer to rpng.h header and to rpng_t struct 2015-02-21 01:54:57 +01:00
twinaphex 99d869abca (RPNG) Move more variables to rpng_t struct 2015-02-21 01:49:47 +01:00
twinaphex a46a819e2d Get rid of unused 'increment_size' in rpng_nbio.c 2015-02-21 01:41:55 +01:00
twinaphex e1ff181b3f (RPNG) Start creating struct rpng_t 2015-02-21 01:40:21 +01:00
twinaphex 5cafadd167 rpng_test.c - Add nonblocking tests 2015-02-21 01:35:04 +01:00
twinaphex 7b15d8e701 Refactor rpng_test.c 2015-02-21 00:05:05 +01:00
twinaphex 3c0cd5a0da Restore rpng_test.c 2015-02-21 00:03:32 +01:00
twinaphex b51e6d4acc Differentiate - rename rpng_parse_ihdr for rpng.c as rpng_parse_ihdr_fio 2015-02-20 23:47:28 +01:00
twinaphex cd7d967701 (RPNG) Move around code to make it suitable for Griffin 2015-02-20 23:46:13 +01:00
twinaphex e55827a8a6 Rewrite rpng_test.c 2015-02-20 23:36:53 +01:00
twinaphex 614dc9039a Split up rpng_nbio.c code into separate file and
make sure we have no namespace conflicts
2015-02-20 23:17:04 +01:00
twinaphex 9dcbd97a5b Split up rpng encode code into separate file 2015-02-20 22:59:24 +01:00
twinaphex 2ac62e0cd3 Restore original rpng.c 2015-02-20 22:49:49 +01:00
twinaphex 14fb2f6418 Cleanup original rpng.c 2015-02-20 21:51:32 +01:00
twinaphex 2e61afcab8 use rpng_nbio.c now - try to cover PNG_CHUNK_PLTE as well 2015-02-20 21:35:06 +01:00
twinaphex d07cb93057 Some more cleanups 2015-02-20 21:26:57 +01:00
twinaphex 33c818cf81 (RPNG) Make imlib2 optional 2015-02-20 21:10:32 +01:00
twinaphex 1f2db14c2d (rpng_nbio.c) Cleanups 2015-02-20 21:05:07 +01:00
twinaphex 6b9bf2c100 Some more progress on rpng_nbio.c 2015-02-20 18:49:51 +01:00
twinaphex 102c815db1 (rpng) Add nbio_stdio.c to test Makefile 2015-02-20 16:36:52 +01:00
twinaphex a3c5142040 Split up rpng_nbio.c test code to separate file 2015-02-20 16:36:00 +01:00
twinaphex 7d55de8278 Don't define NONBLOCKING_TEST by default 2015-02-20 03:19:39 +01:00
twinaphex 0bb5e0c7fd Cleanups 2015-02-20 03:18:06 +01:00
twinaphex a227a99c6c Move header code outside of load_image_argb_init 2015-02-20 03:12:27 +01:00
twinaphex d32593adc4 (nbio.h) Add header guards 2015-02-20 03:06:55 +01:00
twinaphex deb282af4d (rpng) Add stub code for nonblocking 2015-02-20 02:34:17 +01:00
twinaphex 4d631cba30 Update 2015-02-20 02:10:05 +01:00
unknown 391e9bc150 moved file I/O out of `rpng_load_image_argb_init` 2015-02-19 19:54:20 -05:00
unknown 857d0b1009 `rpng_load_image_argb_init` should write file size to ssize_t, not long. 2015-02-19 19:36:17 -05:00
unknown 429eb3d1d5 `bool rpng_load_image_argb_init` should be a static function. 2015-02-19 16:24:28 -05:00
unknown 4429819ee7 removed unused `path` parameter to `rpng_load_image_argb`
We already have a pointer to FILE of an opened file stream, so why would we need a file path string for loading one if we already had one loaded supplied to this func?
2015-02-19 16:24:03 -05:00
twinaphex 8da734c921 (png/rpng.c) Cleanup 2015-02-19 18:13:28 +01:00
twinaphex af91764fc8 Simplify rpng_load_image_iterate 2015-02-19 17:28:17 +01:00
twinaphex f382aceb28 Add log for when file loading fails 2015-02-19 17:11:37 +01:00
twinaphex 58af552945 rpng_load_image_argb - simplify 2015-02-19 16:35:49 +01:00
twinaphex 67d83baa33 (rpng) Refactor file_increment_ptr 2015-02-19 16:23:23 +01:00
twinaphex 90214163a4 Call file_increment_ptr only once 2015-02-19 16:21:12 +01:00
twinaphex fe8577b173 (rpng) Cleanups 2015-02-19 15:36:10 +01:00
twinaphex 57a04df37f Create rpng_load_image_argb_init 2015-02-19 15:33:27 +01:00
twinaphex a4c3097cdb Create rpng_load_image_argb_process 2015-02-19 15:25:12 +01:00
twinaphex d125fd0d0b Create rpng_image_load_iterate 2015-02-19 15:15:13 +01:00
twinaphex fee00be453 (rpng) Refactor #2 2015-02-19 15:01:08 +01:00
twinaphex 64ebcfba2b (rpng) Refactor some code 2015-02-19 14:47:26 +01:00
twinaphex e519e2f2bb (rpng) Cleanups 2015-02-19 06:36:13 +01:00
twinaphex 0ea6dc0445 (MPNG) Updates 2015-02-19 04:13:58 +01:00
twinaphex 9c8dc6c437 (MPNG) Update 2015-02-19 03:33:01 +01:00
twinaphex 542bbd3ee9 Compile in mpng 2015-02-19 03:30:12 +01:00
twinaphex 2596e1c0f6 (mpng) Cleanups 2015-02-19 02:53:47 +01:00
twinaphex 6bb81b59d5 (mpng_decode.c) Style nits 2015-02-19 02:46:41 +01:00
twinaphex a33016d457 Renamed libretro-sdk to libretro-common 2015-02-19 00:04:03 +01:00