Commit Graph

831 Commits

Author SHA1 Message Date
twinaphex fa469c4dcc Create dir_is_empty 2016-09-30 07:06:27 +02:00
twinaphex 6ee7b733aa Move global->name to paths.c 2016-09-30 06:11:11 +02:00
twinaphex 1266c0609a Create path_is_empty 2016-09-30 04:43:16 +02:00
twinaphex 228886062b Create path_clear 2016-09-30 04:31:19 +02:00
twinaphex 9384875ab0 Don't use HAVE_NETPLAY any more 2016-09-29 21:07:10 +02:00
twinaphex d6b9c4f17a Prevent some Coverity warnings 2016-09-29 19:24:18 +02:00
twinaphex cae92ed91d (tasks) Cleanups 2016-09-29 12:02:45 +02:00
twinaphex dc915713dd Simplify task_push_overlay_load_default 2016-09-29 11:46:37 +02:00
twinaphex d79c28f13b task_overlay.c - cleanups 2016-09-29 11:35:22 +02:00
twinaphex c8dc941c42 iso_get_serial - cleanup 2016-09-29 11:10:52 +02:00
twinaphex a304b42f73 (task_database.c) Cleanup 2016-09-29 11:07:56 +02:00
twinaphex 1842e35b8d Cleanups 2016-09-29 11:03:59 +02:00
twinaphex cfe91125db Create database_info_get_current_element_name 2016-09-29 10:59:50 +02:00
twinaphex b286703a81 Cleanup task_database_handler 2016-09-29 10:55:50 +02:00
twinaphex 7e1639f33b Create database_info_set_type 2016-09-29 10:43:38 +02:00
twinaphex fc3c17547e Use database_info_get_type 2016-09-29 10:41:30 +02:00
twinaphex 24f34431ee Header include cleanups 2016-09-29 10:37:31 +02:00
twinaphex 3d098839ca Update path_get 2016-09-29 08:46:41 +02:00
twinaphex 329f6ad612 Update path_get 2016-09-29 08:31:41 +02:00
twinaphex be81edad84 Create path_get 2016-09-29 08:23:41 +02:00
twinaphex b8a1052b73 Update path_set 2016-09-29 07:40:14 +02:00
twinaphex 570d9c2164 Change global_name_base variable name to name_base variable 2016-09-29 07:12:03 +02:00
twinaphex 89505fa011 Get rid of global->patch 2016-09-29 05:46:31 +02:00
twinaphex 90af64769d Get rid of global->sram 2016-09-28 07:27:39 +02:00
twinaphex 5bce79369a Get rid of global->sram.use, turn it into static boolean
variable inside rarch_ctl
2016-09-28 07:17:34 +02:00
Twinaphex 94b0dd36ab remove unused variable 2016-09-25 15:51:46 +02:00
twinaphex a1488ae34f Move subsystem path to paths.c 2016-09-25 15:49:09 +02:00
twinaphex b3ec735e75 Silence some more scan-build warnings 2016-09-25 15:25:20 +02:00
Brad Parker af98ee1c8a Add CRC calculation function that works with archives with or without a path inside (first file is used if no path)
Add all archive's contents to database scan list when scanning files and directories

Allow scanning a single file that is an archive

Remove unnecessary prototypes from archive_file.h

Simplify retrieving of CRCs from archives when scanning
2016-09-25 00:15:05 -04:00
twinaphex 3f35e10014 Solve some warnings pointed out by scan-build 2016-09-25 05:55:55 +02:00
twinaphex 4e3c9987f5 Prevent null pointer dereference / logically dead code / other misc. warnings 2016-09-23 16:03:37 +02:00
twinaphex 2d11ea71cc Move runloop_fullpath to paths.c 2016-09-23 03:39:44 +02:00
twinaphex e799defcb8 Cleanup 2016-09-23 02:50:29 +02:00
twinaphex 9db91a92c3 Get rid of unused typedef 2016-09-23 02:49:25 +02:00
twinaphex 8fd94e4aab Move variables around 2016-09-23 02:48:10 +02:00
twinaphex 4a1f593689 Get rid of unused typedef 2016-09-23 02:47:05 +02:00
twinaphex 019ea8a294 remove header include 2016-09-23 02:21:39 +02:00
twinaphex 040a1b8ba9 Move additional_path_allocs to load_content 2016-09-23 02:19:20 +02:00
twinaphex fc3cf2ebb6 Simplify function in task_content 2016-09-23 02:14:43 +02:00
twinaphex 5d59871c05 Prevent null pointer dereference 2016-09-23 02:11:51 +02:00
twinaphex a1971c5657 Grab system pointer inside functions instead of passing it around 2016-09-23 02:10:57 +02:00
Brad Parker d493273bcf use first extracted file if one is not specified and !need_fullpath and !block_extract 2016-09-22 16:03:31 -04:00
Brad Parker f8d51c2f86 only load compressed content if the path contains the file to extract 2016-09-22 12:52:34 -04:00
twinaphex 2c29e599e8 Revert this code back to what it was 2016-09-22 16:28:45 +02:00
twinaphex 693a9660f3 Prevent null pointer dereference 2016-09-22 16:10:51 +02:00
twinaphex 4db42db980 content_flush_save_blocks - cleanup 2016-09-22 14:40:07 +02:00
twinaphex dad9a079c7 Rework content_flush_save_blocks/content_allocate_save_blocks 2016-09-22 14:39:13 +02:00
twinaphex 99d24d9954 Cleanup 2016-09-21 04:19:59 +02:00
twinaphex 0ec5d9aba7 Simplify task_content.c 2016-09-21 04:09:24 +02:00
twinaphex 7edc0d9ee9 Simplify load_content_into_memory 2016-09-21 04:03:31 +02:00
twinaphex 55517dbc12 Prevent warning 2016-09-21 02:17:32 +02:00
Brad Parker b7735520f2 fix scanning of archive files 2016-09-20 15:40:29 -04:00
Brad Parker 6ac73c5655 use generic crc32 to scan files with 2016-09-20 13:34:56 -04:00
twinaphex 8b67551799 Turn dump_to_file_desprate into static function 2016-09-20 04:08:55 +02:00
twinaphex 0c86536bdc task_image.c - get rid of ifdefs 2016-09-20 04:05:16 +02:00
twinaphex c6ab19e59c read_content_file - Improve this a little bit 2016-09-20 03:21:26 +02:00
Brad Parker 605011ffe2 use generic crc32 2016-09-19 21:18:49 -04:00
Brad Parker 992b87321a more archive paths 2016-09-19 21:06:23 -04:00
twinaphex c7a739b2bd C89_BUILD fix 2016-09-20 03:01:20 +02:00
Brad Parker d49add014c forgot more archive paths 2016-09-19 20:58:52 -04:00
Brad Parker 137968c001 treat .apk files as .zip, set archive_path any time we need to decompress a file 2016-09-19 18:38:33 -04:00
twinaphex 1e5d4198de Add HAVE_CONFNIG_H - task_save.c 2016-09-19 19:27:19 +02:00
twinaphex bfeb0111f8 Fix C89_BUILD errors 2016-09-19 18:29:10 +02:00
Twinaphex 1205b12e15 remove unused variables 2016-09-19 04:23:53 +02:00
twinaphex c133b03a63 Move task_save_files to task_save.c 2016-09-19 04:22:02 +02:00
twinaphex 8469235005 global->savefiles only accessed now from task_save.c 2016-09-19 04:18:40 +02:00
twinaphex 2277428f52 Move more global->savefiles usage to task_save.c 2016-09-19 04:09:27 +02:00
twinaphex f91a8eacdb Move event_load_files to task_save.c 2016-09-19 04:05:44 +02:00
twinaphex 11ced5d438 relocate HAVE_CONFIG_H ifdef 2016-09-19 03:41:55 +02:00
twinaphex 2ecef082f8 Cleanups 2016-09-19 03:36:55 +02:00
Brad Parker 2a75b88d89 file_archive_extract_first_file can choose any file now 2016-09-18 21:22:13 -04:00
twinaphex bb6bc9bd6d Merge task_save_ram/task_save_state 2016-09-19 02:57:23 +02:00
twinaphex 13d9e7c761 Deduplicate some code in task_save_ram.c/task_save_state.c 2016-09-19 02:44:00 +02:00
twinaphex 73c09f1d27 Cleanup 2016-09-19 01:12:39 +02:00
twinaphex 4106ff7f19 Reduce HAVE_COMPRESSION ifdefs 2016-09-19 00:56:58 +02:00
twinaphex 118a90b800 Move dir_check_defaults to dirs.c 2016-09-19 00:56:00 +02:00
twinaphex 534dca9ed1 Get rid of HAVE_COMPRESSION ifdef 2016-09-19 00:50:35 +02:00
Brad Parker 050ab56038 set archive path before extracting 2016-09-18 16:05:58 -04:00
twinaphex 6544b0bcd7 Get rid of HAVE_LIBRETRODB ifdefs 2016-09-18 21:50:39 +02:00
Brad Parker a7ffead8f6 fix more memory corruption 2016-09-18 15:20:27 -04:00
Brad Parker dc4760f5a6 fix another wrong type 2016-09-18 14:39:37 -04:00
Brad Parker 530f8ae107 fix memory corruption due to wrong userdata type 2016-09-18 14:32:29 -04:00
twinaphex 975e0f2247 C89_BUILD fix 2016-09-18 19:03:31 +02:00
Brad Parker 4fadd4a110 fix uninitialized use 2016-09-18 12:49:44 -04:00
Brad Parker dbbd49f9f9 merge with master, remove alignment test code 2016-09-18 12:44:00 -04:00
Brad Parker f13bce4e50 - use the detected stream backend's crc32 function
- remove zlib/7zip ifdef from archive_file.c, task_content.c and task_database.c
- don't re-compute CRC from one stored in archive
2016-09-18 12:31:24 -04:00
twinaphex c2e2d41452 C89_BUILD fixes 2016-09-18 18:28:33 +02:00
Brad Parker ffefe0ccac fix broken PR 2016-09-18 10:38:15 -04:00
Brad Parker 7c29fd6c33 create 7z archive backend, enables scanning of 7z content 2016-09-18 10:31:21 -04:00
Higor Eurípedes 824ded963b (task_content.c) Remove trailing whitespace 2016-09-17 21:22:49 -03:00
Higor Eurípedes e27a85d335 (task_content.c) Fix possible double free()
content_zip_file_decompressed_handle() didn't set the handler's data
member to NULL after freeing on error. That causes problem when the function fails and
content_zip_file_decompressed() tries to free it afterwards.
2016-09-17 21:20:27 -03:00
twinaphex 5c97d5b46b Move global->name.base to paths.c 2016-09-17 19:41:27 +02:00
twinaphex b775ee303c Use dir_is_savefile_empty/dir_is_savestate_empty 2016-09-17 15:01:32 +02:00
twinaphex 413d14ad49 Start using dirs functions 2016-09-17 14:57:53 +02:00
twinaphex 075599e818 Start using path_ functions for accessing and modifying global->path.config 2016-09-17 13:14:14 +02:00
twinaphex ec45dbaf0c Move retroarch_path_is_media_type to paths.c 2016-09-17 12:56:19 +02:00
twinaphex b89def5d8f Rename config_get/config_set functions 2016-09-17 12:51:44 +02:00
twinaphex 5aebdb7484 Mov code to paths.c 2016-09-17 12:35:29 +02:00
twinaphex 4caee1ca5f Get rid of one ifdef 2016-09-17 00:22:55 +02:00
Francisco José García García 912d26ec26 Wrong ifdef 2016-09-12 19:17:21 +02:00
twinaphex 49d5210256 Should make Start Core work on statically linked RA now 2016-09-12 08:37:40 +02:00
Francisco José García García b5111d4654 Fix Typo 2016-09-12 01:14:12 +02:00
Francisco José García García b8391e4cc2 Allow "Load Content" when RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME = true 2016-09-12 01:10:35 +02:00
twinaphex b93ef046a7 Header include cleanups 2016-09-11 16:31:23 +02:00
twinaphex 51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex dc0666555f Cleanups 2016-09-08 14:17:38 +02:00
twinaphex c3ba0ba4e9 Revert "Refactor core_system_info_* functions"
This reverts commit f637805c9e.
2016-09-06 08:38:26 +02:00
twinaphex f637805c9e Refactor core_system_info_* functions 2016-09-06 07:08:38 +02:00
twinaphex 82d82110ae Merge system.h with core.h 2016-09-06 06:11:54 +02:00
twinaphex 93ed23d46f Warning fix 2016-09-06 01:08:05 +02:00
twinaphex 075aea2289 Header include cleanups 2016-09-06 00:56:00 +02:00
twinaphex acd4dd527b Header include cleanups 2016-09-05 18:31:32 +02:00
Twinaphex 5f3d384a9c Merge pull request #3483 from bparker06/magic_len
bin/cue magic number is 17 bytes instead of 16
2016-09-01 05:54:56 +02:00
Brad Parker 1a9e0ca6a8 bin/cue magic number is 17 bytes instead of 16 2016-08-31 23:53:28 -04:00
twinaphex 4f577f1932 Get rid of some header includes 2016-09-01 05:36:52 +02:00
twinaphex f38ce959e4 Remove some header includes 2016-09-01 05:30:07 +02:00
twinaphex cef2d57629 Cleanups 2016-09-01 04:59:56 +02:00
twinaphex 0959f8173a Cleanups 2016-09-01 04:57:04 +02:00
Alcaro cad2eee9e0 Fix some PS3 derps 2016-08-27 13:54:02 +02:00
twinaphex 95de19320d Cleanup 2016-08-27 02:43:06 +02:00
twinaphex f851440a6b Some C89 fixes 2016-08-27 02:35:21 +02:00
Twinaphex 7edf762ac6 Merge pull request #3426 from bparker06/hash_filename
correctly handle content paths containing a hash (#), fixes issue #3273
2016-08-26 17:20:43 +02:00
Brad Parker 89f9b096e7 style cleanup and fix typos 2016-08-25 21:40:37 -04:00
Brad Parker 097f326298 simplify delimiting of compressed archive filenames 2016-08-25 16:18:29 -04:00
Brad Parker 5275c0a45d correctly handle content paths containing a hash (#), fixes issue #3273 2016-08-24 16:54:10 -04:00
twinaphex 82fecdbc70 (Vita) silence some warnings 2016-08-24 14:04:22 +02:00
Francisco José García García 5bd2364575 (VITA) Fix screenshots and some debug options 2016-08-23 18:17:46 +02:00
meleu 01abbe3d4d screenshot filename "game name-yymmdd-hhmmss.ext"
replaced fill_dated_filename() by fill_str_dated_filename() to add the game name to the screenshot.
2016-08-19 08:53:14 -03:00
twinaphex fda2495021 Get rid of HAVE_ZLIB_DEFLATE - implicitly enable it 2016-08-02 15:34:48 +02:00
twinaphex ef7ce5beee Create RARCH_OVERRIDE_SETTING_VERBOSITY 2016-08-01 20:54:16 +02:00
twinaphex ba32586d1a Rewrite has_set.libretro 2016-08-01 20:47:19 +02:00
twinaphex 77b688ed42 Add HAVE_FFMPEG/HAVE_IMAGEVIEWER ifdefs 2016-07-31 14:22:56 +02:00
twinaphex 8dfa393e05 Add screenshot to image history list too 2016-07-31 01:20:00 +02:00
twinaphex 5a83139e15 Cleanup 2016-07-31 01:11:53 +02:00
twinaphex 5aa61dcb15 Successfully pushes movies/music/image files now to proper history list 2016-07-30 23:50:29 +02:00
twinaphex 286bf213d1 Change name to movieplayer_video 2016-07-30 23:21:30 +02:00
twinaphex 7c7fc07674 Change core name to ffmpeg_video 2016-07-30 23:21:04 +02:00
twinaphex 8417a5e176 Start writing to separate playlists 2016-07-30 22:57:32 +02:00
twinaphex 8b706ad805 Start creating new history files for music/video/image 2016-07-30 22:47:43 +02:00
twinaphex 04c9db254e Start preparing playlist code 2016-07-30 21:27:40 +02:00
twinaphex d926961b43 Pass mode argument to task_load_content 2016-07-30 21:19:47 +02:00
twinaphex 191c2ec1fd Cleanup 2016-07-28 20:42:45 +02:00
twinaphex 4f617071db Add Start Video Processor menu entry 2016-07-28 20:35:05 +02:00
twinaphex bd88b9d1d2 (Wii) Fix warnings / unused variables 2016-07-24 11:32:45 +02:00
twinaphex 2be127c04a Start wrapping settings->path.libretro 2016-07-24 11:12:26 +02:00
twinaphex 3a10dff94f task_image.c - go through file_path_str 2016-07-23 11:28:24 +02:00
twinaphex 282dbf0b38 (PS3) Should get playlist entries working again - now we need to
propagate the core path to the playlist correctly
2016-07-23 07:47:05 +02:00
Sebastien Ronsse 2f23781cfd task content: Display OSD loading message prior to loading content 2016-07-23 11:12:06 +10:00
twinaphex e93e3626dd (task_content.c) Messages should be flushed before putting on queue 2016-07-19 18:36:50 +02:00
twinaphex 5678d4fd34 Add onscreen message when this happens 2016-07-19 06:16:58 +02:00