Commit Graph

698 Commits

Author SHA1 Message Date
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